Home
last modified time | relevance | path

Searched refs:chip (Results 151 – 175 of 3385) sorted by relevance

12345678910>>...136

/openbmc/linux/drivers/iio/light/
H A Dtsl2583.c222 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in tsl2583_get_lux()
232 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
273 chip->als_time_scale; in tsl2583_get_lux()
318 dev_err(&chip->client->dev, in tsl2583_als_calibrate()
326 dev_err(&chip->client->dev, in tsl2583_als_calibrate()
331 dev_err(&chip->client->dev, in tsl2583_als_calibrate()
346 dev_err(&chip->client->dev, in tsl2583_als_calibrate()
355 dev_err(&chip->client->dev, in tsl2583_als_calibrate()
815 struct tsl2583_chip *chip; in tsl2583_probe() local
830 chip->client = clientp; in tsl2583_probe()
[all …]
H A Dtsl2772.c450 if (chip->als_cur_info.als_ch0 >= chip->als_saturation) { in tsl2772_get_lux()
517 switch (chip->id) { in tsl2772_get_prox()
625 if (chip->pdata && chip->pdata->platform_default_settings) in tsl2772_defaults()
626 memcpy(&chip->settings, chip->pdata->platform_default_settings, in tsl2772_defaults()
633 if (chip->pdata && chip->pdata->platform_lux_table[0].ch0 != 0) in tsl2772_defaults()
701 regulator_bulk_disable(ARRAY_SIZE(chip->supplies), chip->supplies); in tsl2772_disable_regulators_action()
711 chip->tsl2772_config[TSL2772_ALS_TIME] = chip->settings.als_time; in tsl2772_chip_on()
712 chip->tsl2772_config[TSL2772_PRX_TIME] = chip->settings.prox_time; in tsl2772_chip_on()
713 chip->tsl2772_config[TSL2772_WAIT_TIME] = chip->settings.wait_time; in tsl2772_chip_on()
1787 chip); in tsl2772_probe()
[all …]
H A Disl29028.c140 ret = isl29028_set_proxim_sampling(chip, chip->prox_sampling_int, in isl29028_enable_proximity()
190 ret = isl29028_set_als_scale(chip, chip->lux_scale); in isl29028_set_als_ir_mode()
230 chip->als_ir_mode = mode; in isl29028_set_als_ir_mode()
269 if (!chip->enable_prox) { in isl29028_read_proxim()
274 chip->enable_prox = true; in isl29028_read_proxim()
364 mutex_lock(&chip->lock); in isl29028_write_raw()
432 mutex_lock(&chip->lock); in isl29028_read_raw()
468 *val = chip->lux_scale; in isl29028_read_raw()
582 mutex_init(&chip->lock); in isl29028_probe()
595 chip->lux_scale = 2000; in isl29028_probe()
[all …]
/openbmc/linux/sound/pci/
H A Dmaestro3.c1011 snd_m3_outw(chip, in snd_m3_inc_timer_users()
1030 snd_m3_outw(chip, in snd_m3_dec_timer_users()
1549 if (!chip->master_switch || !chip->master_volume) in snd_m3_update_hw_volume()
1841 err = snd_pcm_new(chip->card, chip->card->driver, device, in snd_m3_pcm()
1852 chip->pcm = pcm; in snd_m3_pcm()
2054 chip->master_switch = snd_ctl_find_id_mixer(chip->card, in snd_m3_mixer()
2056 chip->master_volume = snd_ctl_find_id_mixer(chip->card, in snd_m3_mixer()
2458 snprintf(chip->phys, sizeof(chip->phys), "pci-%s/input0", in snd_m3_input_register()
2516 chip->pci = pci; in snd_m3_create()
2517 chip->irq = -1; in snd_m3_create()
[all …]
H A Dals4000.c411 snd_sbdsp_command(chip, playback_cmd(chip).dsp_cmd); in snd_als4000_playback_prepare()
412 snd_sbdsp_command(chip, playback_cmd(chip).format); in snd_als4000_playback_prepare()
415 snd_sbdsp_command(chip, playback_cmd(chip).dma_off); in snd_als4000_playback_prepare()
464 snd_sbdsp_command(chip, playback_cmd(chip).dma_on); in snd_als4000_playback_trigger()
468 snd_sbdsp_command(chip, playback_cmd(chip).dma_off); in snd_als4000_playback_trigger()
678 chip->pcm = pcm; in snd_als4000_pcm()
870 &chip); in __snd_card_als4000_probe()
873 acard->chip = chip; in __snd_card_als4000_probe()
883 card->shortname, chip->alt_port, chip->irq); in __snd_card_als4000_probe()
944 struct snd_sb *chip = acard->chip; in snd_als4000_suspend() local
[all …]
H A Dvia82xx_modem.c678 snd_via82xx_codec_ready(chip, chip->ac97_secondary); in snd_via82xx_set_table_ptr()
681 snd_via82xx_codec_ready(chip, chip->ac97_secondary); in snd_via82xx_set_table_ptr()
822 chip->devs[idx].port = chip->port + reg_offset; in init_viadev()
884 err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus); in snd_via82xx_mixer_new()
888 chip->ac97_bus->clock = chip->ac97_clock; in snd_via82xx_mixer_new()
921 snd_card_ro_proc_new(chip->card, "via82xx", chip, in snd_via82xx_proc_init()
1023 snd_via82xx_channel_reset(chip, &chip->devs[i]); in snd_via82xx_suspend()
1039 snd_via82xx_channel_reset(chip, &chip->devs[i]); in snd_via82xx_resume()
1058 snd_via82xx_channel_reset(chip, &chip->devs[i]); in snd_via82xx_free()
1146 snd_via82xx_channel_reset(chip, &chip->devs[i]); in __snd_via82xx_probe()
[all …]
/openbmc/linux/drivers/pwm/
H A Dpwm-samsung.c191 clk = (chan < 2) ? chip->tclk0 : chip->tclk1; in pwm_samsung_calc_tin()
198 dev_warn(chip->chip.dev, in pwm_samsung_calc_tin()
203 dev_dbg(chip->chip.dev, "tin parent at %lu\n", rate); in pwm_samsung_calc_tin()
522 struct device_node *np = chip->chip.dev->of_node; in pwm_samsung_parse_dt()
536 dev_err(chip->chip.dev, in pwm_samsung_parse_dt()
564 chip->chip.dev = &pdev->dev; in pwm_samsung_probe()
565 chip->chip.ops = &pwm_samsung_ops; in pwm_samsung_probe()
566 chip->chip.npwm = SAMSUNG_PWM_NUM; in pwm_samsung_probe()
609 ret = pwmchip_add(&chip->chip); in pwm_samsung_probe()
628 pwmchip_remove(&chip->chip); in pwm_samsung_remove()
[all …]
/openbmc/linux/sound/ppc/
H A Dburgundy.c49 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
51 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
53 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
55 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
566 return (in_le32(&chip->awacs->codec_stat) & chip->hp_stat_mask) ? 1 : 0; in snd_pmac_burgundy_detect_headphone()
571 if (chip->auto_mute) { in snd_pmac_burgundy_update_automute()
590 snd_pmac_burgundy_wcb(chip, in snd_pmac_burgundy_update_automute()
687 err = snd_ctl_add(chip->card, chip->master_sw_ctl); in snd_pmac_burgundy_init()
693 err = snd_ctl_add(chip->card, chip->master_sw_ctl); in snd_pmac_burgundy_init()
699 err = snd_ctl_add(chip->card, chip->master_sw_ctl); in snd_pmac_burgundy_init()
[all …]
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpci_rt1711h.c152 if (chip->src_en == src) in rt1711h_set_vbus()
161 chip->src_en = src; in rt1711h_set_vbus()
267 if (!chip->tcpci) in rt1711h_irq()
322 if (ret != chip->did) { in rt1711h_check_revision()
333 struct rt1711h_chip *chip; in rt1711h_probe() local
335 chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); in rt1711h_probe()
336 if (!chip) in rt1711h_probe()
352 chip->dev = &client->dev; in rt1711h_probe()
365 if (IS_ERR(chip->vbus)) in rt1711h_probe()
372 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-lp5523.c397 struct lp55xx_chip *chip = led->chip; in show_engine_mode() local
419 struct lp55xx_chip *chip = led->chip; in store_engine_mode() local
487 struct lp55xx_chip *chip = led->chip; in show_engine_leds() local
531 struct lp55xx_chip *chip = led->chip; in store_engine_leds() local
564 struct lp55xx_chip *chip = led->chip; in store_engine_load() local
586 struct lp55xx_chip *chip = led->chip; in lp5523_selftest() local
692 struct lp55xx_chip *chip = led->chip; in show_master_fader() local
714 struct lp55xx_chip *chip = led->chip; in store_master_fader() local
743 struct lp55xx_chip *chip = led->chip; in show_master_fader_leds() local
774 struct lp55xx_chip *chip = led->chip; in store_master_fader_leds() local
[all …]
H A Dleds-lm355x.c165 switch (chip->type) { in lm355x_chip_init()
203 ret = regmap_read(chip->regmap, preg[REG_FLAG].regno, &chip->last_flag); in lm355x_control()
234 dev_info(chip->dev, in lm355x_control()
263 dev_info(chip->dev, in lm355x_control()
315 mutex_lock(&chip->lock); in lm355x_torch_brightness_set()
330 mutex_lock(&chip->lock); in lm355x_strobe_brightness_set()
345 mutex_lock(&chip->lock); in lm355x_indicator_brightness_set()
419 if (!chip) in lm355x_probe()
422 chip->dev = &client->dev; in lm355x_probe()
434 chip->pdata = pdata; in lm355x_probe()
[all …]
H A Dleds-lp5521.c353 struct lp55xx_chip *chip = led->chip; in lp5521_multicolor_brightness() local
372 struct lp55xx_chip *chip = led->chip; in lp5521_led_brightness() local
388 struct lp55xx_chip *chip = led->chip; in show_engine_mode() local
410 struct lp55xx_chip *chip = led->chip; in store_engine_mode() local
442 struct lp55xx_chip *chip = led->chip; in store_engine_load() local
464 struct lp55xx_chip *chip = led->chip; in lp5521_selftest() local
527 chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); in lp5521_probe()
528 if (!chip) in lp5521_probe()
536 chip); in lp5521_probe()
550 chip->cl = client; in lp5521_probe()
[all …]
H A Dleds-lm36274.c89 if (chip->num_leds <= 0) { in lm36274_parse_dt()
95 chip->led_sources, chip->num_leds); in lm36274_parse_dt()
111 struct lm36274 *chip; in lm36274_probe() local
114 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); in lm36274_probe()
115 if (!chip) in lm36274_probe()
118 chip->pdev = pdev; in lm36274_probe()
119 chip->dev = &pdev->dev; in lm36274_probe()
120 chip->regmap = lmu->regmap; in lm36274_probe()
129 ret = lm36274_init(chip); in lm36274_probe()
136 chip->lmu_data.regmap = chip->regmap; in lm36274_probe()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand_spl.c47 if (chip->dev_ready(mtd)) in mxs_nand_command()
64 chip->select_chip(mtd, -1); in mxs_flash_full_ident()
103 chip->onfi_version = 0; in mxs_flash_onfi_ident()
105 if (chip->read_byte(mtd) != 'O' || chip->read_byte(mtd) != 'N' || in mxs_flash_onfi_ident()
106 chip->read_byte(mtd) != 'F' || chip->read_byte(mtd) != 'I') { in mxs_flash_onfi_ident()
123 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in mxs_flash_onfi_ident()
124 chip->badblockbits = 8; in mxs_flash_onfi_ident()
171 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in is_badblock()
210 struct nand_chip *chip; in nand_spl_load_image() local
215 chip = mtd_to_nand(mtd); in nand_spl_load_image()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dtvaudio.c321 struct CHIPSTATE *chip = from_timer(chip, t, wt); in chip_thread_wake() local
345 if (chip->radio) in chip_thread()
1789 chip->radio = 1; in tvaudio_s_radio()
1806 if (chip->muted) in tvaudio_s_routing()
1820 if (chip->radio) in tvaudio_s_tuner()
1953 chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); in tvaudio_probe()
1954 if (!chip) in tvaudio_probe()
1956 sd = &chip->sd; in tvaudio_probe()
2009 chip->volume = v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
2013 chip->balance = v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
[all …]
/openbmc/linux/sound/pci/lola/
H A Dlola_proc.c49 struct lola *chip, int nid) in print_clock_widget() argument
89 struct lola *chip, int nid) in print_mixer_widget() argument
111 chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); in lola_proc_codec_read()
144 &chip->debug_res, in lola_proc_codec_rw_write()
145 &chip->debug_res_ex); in lola_proc_codec_rw_write()
153 snd_iprintf(buffer, "0x%x 0x%x\n", chip->debug_res, chip->debug_res_ex); in lola_proc_codec_rw_read()
182 lola_dsd_read(chip, i, STS)); in lola_proc_regs_read()
186 lola_dsd_read(chip, i, CTL)); in lola_proc_regs_read()
198 snd_card_ro_proc_new(chip->card, "codec", chip, lola_proc_codec_read); in lola_proc_debug_new()
199 snd_card_rw_proc_new(chip->card, "codec_rw", chip, in lola_proc_debug_new()
[all …]
/openbmc/linux/drivers/char/tpm/
H A Dtpm_tis_i2c_cr50.c73 struct tpm_chip *chip = tpm_info; in tpm_cr50_i2c_int_handler() local
205 tpm_cr50_i2c_enable_tpm_irq(chip); in tpm_cr50_i2c_read()
352 stop = jiffies + chip->timeout_a; in tpm_cr50_request_locality()
419 stop = jiffies + chip->timeout_b; in tpm_cr50_i2c_get_burst_and_status()
468 dev_err(&chip->dev, in tpm_cr50_i2c_tis_recv()
684 struct tpm_chip *chip; in tpm_cr50_i2c_probe() local
693 if (IS_ERR(chip)) in tpm_cr50_i2c_probe()
694 return PTR_ERR(chip); in tpm_cr50_i2c_probe()
754 return tpm_chip_register(chip); in tpm_cr50_i2c_probe()
770 if (!chip) { in tpm_cr50_i2c_remove()
[all …]
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_macronix.c182 chip->parameters.model); in macronix_nand_fix_broken_get_timings()
207 nand_deselect_target(chip); in mxic_nand_lock()
223 nand_deselect_target(chip); in mxic_nand_unlock()
242 nand_deselect_target(chip); in macronix_nand_block_protection_support()
275 chip->legacy.cmdfunc(chip, MXIC_CMD_POWER_DOWN, -1, -1); in nand_power_down_op()
289 nand_deselect_target(chip); in mxic_nand_suspend()
305 nand_power_down_op(chip); in mxic_nand_resume()
308 nand_deselect_target(chip); in mxic_nand_resume()
321 chip->parameters.model); in macronix_nand_deep_power_down_support()
477 mtd = nand_to_mtd(chip); in macronix_nand_setup_otp()
[all …]
H A Dpasemi_nand.c30 struct nand_chip chip; member
61 struct pasemi_ddata *ddata = container_of(chip, struct pasemi_ddata, chip); in pasemi_hwcontrol()
78 struct pasemi_ddata *ddata = container_of(chip, struct pasemi_ddata, chip); in pasemi_device_ready()
102 struct nand_chip *chip; in pasemi_nand_probe() local
122 chip = &ddata->chip; in pasemi_nand_probe()
135 chip->legacy.IO_ADDR_W = chip->legacy.IO_ADDR_R; in pasemi_nand_probe()
173 err = nand_scan(chip, 1); in pasemi_nand_probe()
189 nand_cleanup(chip); in pasemi_nand_probe()
205 struct nand_chip *chip; in pasemi_nand_remove() local
207 chip = &ddata->chip; in pasemi_nand_remove()
[all …]
/openbmc/linux/drivers/mfd/
H A Dmt6397-irq.c138 chip->int_con[0], chip->wake_mask[0]); in mt6397_irq_pm_notifier()
140 chip->int_con[1], chip->wake_mask[1]); in mt6397_irq_pm_notifier()
146 chip->int_con[0], chip->irq_masks_cur[0]); in mt6397_irq_pm_notifier()
148 chip->int_con[1], chip->irq_masks_cur[1]); in mt6397_irq_pm_notifier()
187 dev_err(chip->dev, "unsupported chip: 0x%x\n", chip->chip_id); in mt6397_irq_init()
192 regmap_write(chip->regmap, chip->int_con[0], 0x0); in mt6397_irq_init()
193 regmap_write(chip->regmap, chip->int_con[1], 0x0); in mt6397_irq_init()
196 chip->irq_domain = irq_domain_add_linear(chip->dev->of_node, in mt6397_irq_init()
199 chip); in mt6397_irq_init()
205 ret = devm_request_threaded_irq(chip->dev, chip->irq, NULL, in mt6397_irq_init()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-sprd.c36 struct gpio_chip chip; member
123 gpiochip_disable_irq(chip, offset); in sprd_gpio_irq_mask()
140 gpiochip_enable_irq(chip, offset); in sprd_gpio_irq_unmask()
240 sprd_gpio->chip.ngpio = SPRD_GPIO_NR; in sprd_gpio_probe()
241 sprd_gpio->chip.base = -1; in sprd_gpio_probe()
242 sprd_gpio->chip.parent = &pdev->dev; in sprd_gpio_probe()
243 sprd_gpio->chip.request = sprd_gpio_request; in sprd_gpio_probe()
244 sprd_gpio->chip.free = sprd_gpio_free; in sprd_gpio_probe()
245 sprd_gpio->chip.get = sprd_gpio_get; in sprd_gpio_probe()
246 sprd_gpio->chip.set = sprd_gpio_set; in sprd_gpio_probe()
[all …]
H A Dgpio-sifive.c48 trigger = (chip->irq_state & BIT(offset)) ? chip->trigger[offset] : 0; in sifive_gpio_set_ie()
189 chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); in sifive_gpio_probe()
190 if (!chip) in sifive_gpio_probe()
199 chip->regs = devm_regmap_init_mmio(dev, chip->base, in sifive_gpio_probe()
201 if (IS_ERR(chip->regs)) in sifive_gpio_probe()
238 chip->irq_state = 0; in sifive_gpio_probe()
240 chip->gc.base = -1; in sifive_gpio_probe()
241 chip->gc.ngpio = ngpio; in sifive_gpio_probe()
243 chip->gc.parent = dev; in sifive_gpio_probe()
245 girq = &chip->gc.irq; in sifive_gpio_probe()
[all …]
/openbmc/linux/drivers/staging/iio/addac/
H A Dadt7316.c1113 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1118 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1127 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1132 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1142 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1147 ret = chip->bus.read(chip->bus.client, in adt7316_show_ad()
1410 ret = chip->bus.read(chip->bus.client, in adt7316_show_DAC()
1416 ret = chip->bus.read(chip->bus.client, in adt7316_show_DAC()
1463 ret = chip->bus.write(chip->bus.client, in adt7316_store_DAC()
2187 ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, chip->config1); in adt7316_probe()
[all …]
/openbmc/linux/sound/pci/oxygen/
H A Doxygen.h80 const char *chip; member
81 void (*init)(struct oxygen *chip);
83 int (*mixer_init)(struct oxygen *chip);
84 void (*cleanup)(struct oxygen *chip);
85 void (*suspend)(struct oxygen *chip);
86 void (*resume)(struct oxygen *chip);
89 void (*set_dac_params)(struct oxygen *chip,
98 void (*gpio_changed)(struct oxygen *chip);
99 void (*uart_input)(struct oxygen *chip);
100 void (*ac97_switch)(struct oxygen *chip,
[all …]
/openbmc/linux/sound/pci/echoaudio/
H A Ddarla24_dsp.c41 dev_err(chip->card->dev, in init_hw()
48 chip->bad_board = true; in init_hw()
52 chip->asic_loaded = true; in init_hw()
56 err = load_firmware(chip); in init_hw()
59 chip->bad_board = false; in init_hw()
132 dev_err(chip->card->dev, in set_sample_rate()
138 if (wait_handshake(chip)) in set_sample_rate()
141 dev_dbg(chip->card->dev, in set_sample_rate()
143 chip->sample_rate = rate; in set_sample_rate()
151 clear_handshake(chip); in set_sample_rate()
[all …]

12345678910>>...136