Home
last modified time | relevance | path

Searched refs:chip (Results 226 – 250 of 3385) sorted by relevance

12345678910>>...136

/openbmc/linux/drivers/leds/
H A Dleds-aw200xx.c107 struct aw200xx *chip; member
140 struct aw200xx *chip = led->chip; in dim_store() local
185 struct aw200xx *chip = led->chip; in aw200xx_brightness_set() local
375 chip->display_rows > chip->cdef->display_size_rows_max) { in aw200xx_probe_fw()
394 chip->num_leds--; in aw200xx_probe_fw()
401 chip->num_leds--; in aw200xx_probe_fw()
413 chip->num_leds--; in aw200xx_probe_fw()
422 led->chip = chip; in aw200xx_probe_fw()
506 chip = devm_kzalloc(&client->dev, struct_size(chip, leds, count), in aw200xx_probe()
508 if (!chip) in aw200xx_probe()
[all …]
/openbmc/linux/drivers/char/tpm/
H A Dtpm1-cmd.c352 if (tpm1_startup(chip)) in tpm1_get_timeouts()
381 chip->ops->update_timeouts(chip, timeout_eff); in tpm1_get_timeouts()
383 if (!chip->timeout_adjusted) { in tpm1_get_timeouts()
404 if (chip->timeout_adjusted) { in tpm1_get_timeouts()
423 chip->duration[TPM_SHORT] = in tpm1_get_timeouts()
425 chip->duration[TPM_MEDIUM] = in tpm1_get_timeouts()
427 chip->duration[TPM_LONG] = in tpm1_get_timeouts()
436 chip->ops->update_durations(chip, durations); in tpm1_get_timeouts()
711 rc = tpm1_do_selftest(chip); in tpm1_auto_startup()
802 chip->allocated_banks = kcalloc(1, sizeof(*chip->allocated_banks), in tpm1_get_pcr_allocation()
[all …]
H A Dtpm_i2c_nuvoton.c129 dev_err(&chip->dev, in i2c_nuvoton_ready()
242 dev_err(&chip->dev, in i2c_nuvoton_recv_data()
251 dev_err(&chip->dev, in i2c_nuvoton_recv_data()
292 chip, chip->timeout_c, &priv->read_queue); in i2c_nuvoton_recv()
340 i2c_nuvoton_ready(chip); in i2c_nuvoton_recv()
363 i2c_nuvoton_ready(chip); in i2c_nuvoton_send()
375 chip); in i2c_nuvoton_send()
529 struct tpm_chip *chip; in i2c_nuvoton_probe() local
542 if (IS_ERR(chip)) in i2c_nuvoton_probe()
543 return PTR_ERR(chip); in i2c_nuvoton_probe()
[all …]
/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_rf_al7230b.c77 if (chip->new_phy_layout) { in zd1211b_al7230b_finalize()
90 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_init_hw() local
195 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_init_hw() local
277 if (chip->new_phy_layout) in zd1211b_al7230b_init_hw()
310 return zd1211b_al7230b_finalize(chip); in zd1211b_al7230b_init_hw()
317 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_set_channel() local
338 r = zd_rfwrite_cr_locked(chip, 0x3c9000); in zd1211_al7230b_set_channel()
349 r = zd_rfwritev_cr_locked(chip, rv, 2); in zd1211_al7230b_set_channel()
392 r = zd_rfwritev_cr_locked(chip, rv, 2); in zd1211b_al7230b_set_channel()
404 return zd1211b_al7230b_finalize(chip); in zd1211b_al7230b_set_channel()
[all …]
/openbmc/linux/drivers/pinctrl/renesas/
H A Dgpio.c40 return chip->pfc; in gpio_to_pfc()
58 void __iomem *mem = address - chip->mem->phys + chip->mem->virt; in gpio_read_data_reg()
67 void __iomem *mem = address - chip->mem->phys + chip->mem->virt; in gpio_write_data_reg()
106 chip->regs = devm_kcalloc(pfc->dev, i, sizeof(*chip->regs), in gpio_setup_data_regs()
113 chip->regs[i].shadow = gpio_read_data_reg(chip, dreg); in gpio_setup_data_regs()
299 chip = devm_kzalloc(pfc->dev, sizeof(*chip), GFP_KERNEL); in sh_pfc_add_gpiochip()
303 chip->mem = mem; in sh_pfc_add_gpiochip()
304 chip->pfc = pfc; in sh_pfc_add_gpiochip()
315 chip->gpio_chip.label, chip->gpio_chip.base, in sh_pfc_add_gpiochip()
316 chip->gpio_chip.base + chip->gpio_chip.ngpio - 1); in sh_pfc_add_gpiochip()
[all …]
/openbmc/linux/sound/usb/
H A Dclock.c101 ret = snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), in uac_clock_selector_get_val()
119 ret = snd_usb_ctl_msg(chip->dev, usb_sndctrlpipe(chip->dev, 0), in uac_clock_selector_set_val()
129 usb_audio_err(chip, in uac_clock_selector_set_val()
140 usb_audio_err(chip, in uac_clock_selector_set_val()
268 usb_audio_warn(chip, in __uac_clock_find_source()
280 usb_audio_err(chip, in __uac_clock_find_source()
304 if (!chip->autoclock) in __uac_clock_find_source()
312 usb_audio_err(chip, in __uac_clock_find_source()
362 usb_audio_info(chip, in __uac_clock_find_source()
567 usb_audio_err(chip, in set_sample_rate_v2v3()
[all …]
/openbmc/linux/sound/mips/
H A Dsgio2audio.c591 chip->channel[ch].pos = 0; in snd_sgio2audio_pcm_prepare()
687 pcm->private_data = chip; in snd_sgio2audio_new_pcm()
702 pcm->private_data = chip; in snd_sgio2audio_new_pcm()
769 chip->ring_base, chip->ring_base_dma); in snd_sgio2audio_free()
772 kfree(chip); in snd_sgio2audio_free()
800 chip = kzalloc(sizeof(*chip), GFP_KERNEL); in snd_sgio2audio_create()
801 if (chip == NULL) in snd_sgio2audio_create()
804 chip->card = card; in snd_sgio2audio_create()
812 kfree(chip); in snd_sgio2audio_create()
850 chip->ad1843.chip = chip; in snd_sgio2audio_create()
[all …]
/openbmc/linux/drivers/mfd/
H A D88pm800.c246 dev_warn(chip->dev, in device_gpadc_init()
382 regmap_add_irq_chip(chip->regmap, chip->irq, flags, -1, in device_irq_init_800()
383 chip->regmap_irq_chip, &chip->irq_data); in device_irq_init_800()
391 regmap_del_irq_chip(chip->irq, chip->irq_data); in device_irq_exit_800()
412 subchip = chip->subchip; in pm800_pages_init()
428 dev_err(chip->dev, in pm800_pages_init()
447 dev_err(chip->dev, in pm800_pages_init()
461 subchip = chip->subchip; in pm800_pages_exit()
533 struct pm80x_chip *chip; in pm800_probe() local
577 pm800_pages_exit(chip); in pm800_probe()
[all …]
H A D88pm80x.c53 struct pm80x_chip *chip; in pm80x_init() local
58 chip = in pm80x_init()
60 if (!chip) in pm80x_init()
71 chip->client = client; in pm80x_init()
72 chip->regmap = map; in pm80x_init()
74 chip->irq = client->irq; in pm80x_init()
77 i2c_set_clientdata(chip->client, chip); in pm80x_init()
93 dev_err(chip->dev, in pm80x_init()
107 g_pm80x_chip = chip; in pm80x_init()
136 if (chip && chip->wu_flag) in pm80x_suspend()
[all …]
/openbmc/linux/drivers/power/supply/
H A Drt9471.c302 mutex_lock(&chip->var_lock); in rt9471_get_usb_type()
312 mutex_lock(&chip->var_lock); in rt9471_get_usb_type_current()
462 mutex_lock(&chip->var_lock); in rt9471_detach_handler()
464 chip->psy_usb_curr = 0; in rt9471_detach_handler()
519 mutex_lock(&chip->var_lock); in rt9471_bc12_done_handler()
719 cfg.drv_data = chip; in rt9471_register_psy()
838 struct rt9471_chip *chip; in rt9471_probe() local
843 chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); in rt9471_probe()
844 if (!chip) in rt9471_probe()
847 chip->dev = dev; in rt9471_probe()
[all …]
/openbmc/linux/drivers/mtd/nand/raw/
H A Dplat_nand.c18 struct nand_chip chip; member
51 if (pdata->chip.nr_chips < 1) { in plat_nand_probe()
71 mtd = nand_to_mtd(&data->chip); in plat_nand_probe()
81 data->chip.legacy.chip_delay = pdata->chip.chip_delay; in plat_nand_probe()
82 data->chip.options |= pdata->chip.options; in plat_nand_probe()
83 data->chip.bbt_options |= pdata->chip.bbt_options; in plat_nand_probe()
102 err = nand_scan(&data->chip, pdata->chip.nr_chips); in plat_nand_probe()
109 pdata->chip.partitions, in plat_nand_probe()
115 nand_cleanup(&data->chip); in plat_nand_probe()
129 struct nand_chip *chip = &data->chip; in plat_nand_remove() local
[all …]
/openbmc/linux/sound/pci/cs46xx/
H A Ddsp_spos_scb_lib.c27 struct snd_cs46xx *chip; member
62 struct snd_cs46xx *chip = scb_info->chip; in cs46xx_dsp_proc_scb_info_read() local
66 mutex_lock(&chip->spos_mutex); in cs46xx_dsp_proc_scb_info_read()
180 _dsp_unlink_scb (chip,scb); in cs46xx_dsp_remove_scb()
219 struct snd_cs46xx *chip = scb_info->chip; in cs46xx_dsp_proc_free_scb_desc() local
221 dev_dbg(chip->card->dev, in cs46xx_dsp_proc_free_scb_desc()
253 scb_info->chip = chip; in cs46xx_dsp_proc_register_scb_desc()
300 dev_dbg(chip->card->dev, in _dsp_create_generic_scb()
303 dev_dbg(chip->card->dev, in _dsp_create_generic_scb()
306 dev_dbg(chip->card->dev, in _dsp_create_generic_scb()
[all …]
/openbmc/linux/drivers/media/usb/usbtv/
H A Dusbtv-audio.c70 chip->snd_substream = substream; in snd_usbtv_pcm_open()
92 chip->snd_buffer_pos = 0; in snd_usbtv_prepare()
93 chip->snd_period_pos = 0; in snd_usbtv_prepare()
211 usb_fill_bulk_urb(chip->snd_bulk_urb, chip->udev, pipe, in usbtv_audio_start()
225 chip->snd_bulk_urb = NULL; in usbtv_audio_start()
244 if (chip->snd_bulk_urb) { in usbtv_audio_stop()
248 chip->snd_bulk_urb = NULL; in usbtv_audio_stop()
272 if (!chip->snd) in snd_usbtv_trigger()
276 usbtv_audio_start(chip); in snd_usbtv_trigger()
278 usbtv_audio_stop(chip); in snd_usbtv_trigger()
[all …]
/openbmc/u-boot/drivers/net/
H A Dftmac110.c144 chip->lnkup = 0; in ftmac110_phyqry()
150 if (!chip->lnkup) in ftmac110_phyqry()
249 chip->imr = 0; in ftmac110_reset()
286 if (!chip->lnkup) in ftmac110_send()
296 txd = &chip->txd[chip->txd_idx]; in ftmac110_send()
320 chip->txd_idx = (chip->txd_idx + 1) % CFG_TXDES_NUM; in ftmac110_send()
333 if (!chip->lnkup) in ftmac110_recv()
337 rxd = &chip->rxd[chip->rxd_idx]; in ftmac110_recv()
358 chip->rxd_idx = (chip->rxd_idx + 1) % CFG_RXDES_NUM; in ftmac110_recv()
432 if (!chip->txd) in ftmac110_initialize()
[all …]
/openbmc/linux/sound/pci/lx6464es/
H A Dlx_core.h59 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port);
82 unsigned long lx_plx_reg_read(struct lx6464es *chip, int port);
83 void lx_plx_reg_write(struct lx6464es *chip, int port, u32 data);
97 int lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version);
99 int lx_dsp_set_granularity(struct lx6464es *chip, u32 gran);
100 int lx_dsp_read_async_events(struct lx6464es *chip, u32 *data);
101 int lx_dsp_get_mac(struct lx6464es *chip);
126 int lx_stream_set_state(struct lx6464es *chip, u32 pipe,
133 return lx_stream_set_state(chip, pipe, is_capture, SSTATE_RUN); in lx_stream_start()
170 void lx_irq_enable(struct lx6464es *chip);
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dina2xx-adc.c205 *val = chip->avg; in ina2xx_read_raw()
415 chip->range_vbus = 32; in ina219_set_vbus_range_denom()
417 chip->range_vbus = 16; in ina219_set_vbus_range_denom()
767 chip->scan.chan[i++] = val; in ina2xx_work_buffer()
855 chip->task = task; in ina2xx_buffer_enable()
864 if (chip->task) { in ina2xx_buffer_disable()
865 kthread_stop(chip->task); in ina2xx_buffer_disable()
866 chip->task = NULL; in ina2xx_buffer_disable()
965 chip = iio_priv(indio_dev); in ina2xx_probe()
971 if (IS_ERR(chip->regmap)) { in ina2xx_probe()
[all …]
H A Dqcom-spmi-rradc.c263 dev_err(chip->dev, in rradc_read()
270 ret = regmap_bulk_read(chip->regmap, chip->base + addr, buf, in rradc_read()
278 ret = regmap_bulk_read(chip->regmap, chip->base + addr, in rradc_read()
361 ret = regmap_update_bits(chip->regmap, chip->base + RR_ADC_LOG, in rradc_enable_continuous_mode()
368 ret = regmap_update_bits(chip->regmap, chip->base + RR_ADC_LOG, in rradc_enable_continuous_mode()
377 ret = regmap_update_bits(chip->regmap, chip->base + RR_ADC_CTL, in rradc_enable_continuous_mode()
392 ret = regmap_update_bits(chip->regmap, chip->base + RR_ADC_CTL, in rradc_disable_continuous_mode()
472 regmap_update_bits(chip->regmap, chip->base + chan->trigger_addr, in rradc_read_status_in_cont_mode()
507 regmap_update_bits(chip->regmap, chip->base + RR_ADC_BATT_ID_CTRL, in rradc_prepare_batt_id_conversion()
944 chip->dev = dev; in rradc_probe()
[all …]
/openbmc/linux/sound/pci/echoaudio/
H A Dindigo_express_dsp.c33 if (wait_handshake(chip)) in set_sample_rate()
64 dev_dbg(chip->card->dev, in set_sample_rate()
67 chip->sample_rate = rate; in set_sample_rate()
68 clear_handshake(chip); in set_sample_rate()
83 output >= num_busses_out(chip))) in set_vmixer_gain()
86 if (wait_handshake(chip)) in set_vmixer_gain()
89 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
91 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
93 dev_dbg(chip->card->dev, in set_vmixer_gain()
103 if (wait_handshake(chip)) in update_vmixer_level()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-mm-lantiq.c47 __raw_writew(chip->shadow, chip->mmchip.regs); in ltq_mm_apply()
65 chip->shadow |= (1 << offset); in ltq_mm_set()
68 ltq_mm_apply(chip); in ltq_mm_set()
92 struct ltq_mm *chip = in ltq_mm_save_regs() local
98 ltq_mm_apply(chip); in ltq_mm_save_regs()
103 struct ltq_mm *chip; in ltq_mm_probe() local
106 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); in ltq_mm_probe()
107 if (!chip) in ltq_mm_probe()
112 chip->mmchip.gc.ngpio = 16; in ltq_mm_probe()
119 chip->shadow = shadow; in ltq_mm_probe()
[all …]
H A Dgpio-sama5d2-piobu.c48 struct gpio_chip chip; member
62 chip); in sama5d2_piobu_setup_pin()
84 chip); in sama5d2_piobu_write_value()
99 chip); in sama5d2_piobu_read_value()
192 piobu->chip.label = pdev->name; in sama5d2_piobu_probe()
193 piobu->chip.parent = &pdev->dev; in sama5d2_piobu_probe()
194 piobu->chip.owner = THIS_MODULE, in sama5d2_piobu_probe()
198 piobu->chip.get = sama5d2_piobu_get, in sama5d2_piobu_probe()
200 piobu->chip.base = -1, in sama5d2_piobu_probe()
201 piobu->chip.ngpio = PIOBU_NUM, in sama5d2_piobu_probe()
[all …]
H A Dgpio-hisi.c36 struct gpio_chip chip; member
47 container_of(chip, struct hisi_gpio, chip); in hisi_gpio_read_reg()
57 container_of(chip, struct hisi_gpio, chip); in hisi_gpio_write_reg()
81 hisi_gpio_set_debounce(chip, offset, config_arg); in hisi_gpio_set_config()
102 gpiochip_disable_irq(chip, irqd_to_hwirq(d)); in hisi_gpio_irq_set_mask()
109 gpiochip_enable_irq(chip, irqd_to_hwirq(d)); in hisi_gpio_irq_clr_mask()
209 struct gpio_chip *chip = &hisi_gpio->chip; in hisi_gpio_init_irq() local
210 struct gpio_irq_chip *girq_chip = &chip->irq; in hisi_gpio_init_irq()
305 hisi_gpio->chip.ngpio = hisi_gpio->line_num; in hisi_gpio_probe()
306 hisi_gpio->chip.bgpio_dir_unreadable = 1; in hisi_gpio_probe()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-ds1390.c77 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg()
79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg()
83 *data = chip->txrx_buf[0]; in ds1390_get_reg()
137 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time()
151 dt->tm_year = bcd2bin(chip->txrx_buf[6]) + ((chip->txrx_buf[5] & 0x80) ? 100 : 0); in ds1390_read_time()
184 struct ds1390 *chip; in ds1390_probe() local
191 chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL); in ds1390_probe()
192 if (!chip) in ds1390_probe()
195 spi_set_drvdata(spi, chip); in ds1390_probe()
208 if (IS_ERR(chip->rtc)) { in ds1390_probe()
[all …]
/openbmc/linux/include/linux/mtd/
H A Drawnand.h142 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument
1089 int (*exec_op)(struct nand_chip *chip,
1183 int (*suspend)(struct nand_chip *chip);
1342 return &chip->base.mtd; in nand_to_mtd()
1347 return chip->priv; in nand_get_controller_data()
1352 chip->priv = priv; in nand_set_controller_data()
1358 chip->manufacturer.priv = priv; in nand_set_manufacturer_data()
1363 return chip->manufacturer.priv; in nand_get_manufacturer_data()
1385 return chip->current_interface_config; in nand_get_interface_config()
1623 chip->pagecache.page = -1; in nand_get_data_buf()
[all …]
/openbmc/linux/sound/i2c/other/
H A Dak4113.c46 kfree(chip); in snd_ak4113_free()
67 chip = kzalloc(sizeof(*chip), GFP_KERNEL); in snd_ak4113_create()
68 if (chip == NULL) in snd_ak4113_create()
71 chip->card = card; in snd_ak4113_create()
72 chip->read = read; in snd_ak4113_create()
83 chip->rcs0 = reg_read(chip, AK4113_REG_RCS0) & ~(AK4113_QINT | in snd_ak4113_create()
85 chip->rcs1 = reg_read(chip, AK4113_REG_RCS1); in snd_ak4113_create()
86 chip->rcs2 = reg_read(chip, AK4113_REG_RCS2); in snd_ak4113_create()
106 reg_write(chip, reg, (chip->regmap[reg] & ~mask) | val); in snd_ak4113_reg_write()
121 reg_write(chip, reg, chip->regmap[reg]); in ak4113_init_regs()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Dmn88443x.c407 if (chip->clk_freq >= CLK_LOW && chip->clk_freq < CLK_DIRECT) { in mn88443x_t_set_freq()
420 chip->clk_freq, adckt, chip->if_freq); in mn88443x_t_set_freq()
562 mn88443x_s_sleep(chip); in mn88443x_sleep()
684 chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); in mn88443x_probe()
685 if (!chip) in mn88443x_probe()
692 if (!chip->spec) in mn88443x_probe()
703 &chip->if_freq); in mn88443x_probe()
726 chip->regmap_s = devm_regmap_init_i2c(chip->client_s, &regmap_config); in mn88443x_probe()
738 chip->regmap_t = devm_regmap_init_i2c(chip->client_t, &regmap_config); in mn88443x_probe()
744 chip->clk_freq = clk_get_rate(chip->mclk); in mn88443x_probe()
[all …]

12345678910>>...136