Home
last modified time | relevance | path

Searched refs:drv_data (Results 1 – 25 of 237) sorted by relevance

12345678910

/openbmc/linux/drivers/i2c/busses/
H A Di2c-mv64xxx.c271 if (drv_data->send_stop || drv_data->aborting) { in mv64xxx_i2c_fsm()
335 drv_data->state, status, drv_data->msg->addr, in mv64xxx_i2c_fsm()
346 drv_data->msg = drv_data->msgs; in mv64xxx_i2c_send_start()
348 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
377 drv_data->send_stop = drv_data->num_msgs == 1; in mv64xxx_i2c_do_action()
407 drv_data->msg->buf[drv_data->byte_posn++] = in mv64xxx_i2c_do_action()
414 drv_data->msg->buf[drv_data->byte_posn++] = in mv64xxx_i2c_do_action()
564 !drv_data->block, drv_data->adapter.timeout); in mv64xxx_i2c_wait_for_completion()
580 !drv_data->block, drv_data->adapter.timeout); in mv64xxx_i2c_wait_for_completion()
1078 free_irq(drv_data->irq, drv_data); in mv64xxx_i2c_probe()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-pxa2xx.c494 || (drv_data->tx == drv_data->tx_end)) in null_writer()
512 return drv_data->rx == drv_data->rx_end; in null_reader()
518 || (drv_data->tx == drv_data->tx_end)) in u8_writer()
540 || (drv_data->tx == drv_data->tx_end)) in u16_writer()
562 || (drv_data->tx == drv_data->tx_end)) in u32_writer()
658 if (drv_data->read(drv_data)) { in interrupt_transfer()
666 if (drv_data->read(drv_data)) { in interrupt_transfer()
670 } while (drv_data->write(drv_data)); in interrupt_transfer()
672 if (drv_data->read(drv_data)) { in interrupt_transfer()
677 if (drv_data->tx == drv_data->tx_end) { in interrupt_transfer()
[all …]
H A Dspi-pxa2xx-dma.c38 error = read_SSSR_bits(drv_data, drv_data->mask_sr) & SSSR_ROR; in pxa2xx_spi_dma_transfer_complete()
41 clear_SSCR1_bits(drv_data, drv_data->dma_cr1); in pxa2xx_spi_dma_transfer_complete()
42 write_SSSR_CS(drv_data, drv_data->clear_sr); in pxa2xx_spi_dma_transfer_complete()
43 if (!pxa25x_ssp_comp(drv_data)) in pxa2xx_spi_dma_transfer_complete()
44 pxa2xx_spi_write(drv_data, SSTO, 0); in pxa2xx_spi_dma_transfer_complete()
48 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_dma_transfer_complete()
74 switch (drv_data->n_bytes) { in pxa2xx_spi_dma_prepare_one()
95 chan = drv_data->controller->dma_tx; in pxa2xx_spi_dma_prepare_one()
102 chan = drv_data->controller->dma_rx; in pxa2xx_spi_dma_prepare_one()
119 status = read_SSSR_bits(drv_data, drv_data->mask_sr); in pxa2xx_spi_dma_transfer()
[all …]
H A Dspi-pxa2xx.h49 int (*write)(struct driver_data *drv_data);
50 int (*read)(struct driver_data *drv_data);
73 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read()
78 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write()
85 switch (drv_data->ssp_type) { in pxa25x_ssp_comp()
97 pxa2xx_spi_write(drv_data, SSCR1, pxa2xx_spi_read(drv_data, SSCR1) & ~bits); in clear_SSCR1_bits()
102 return pxa2xx_spi_read(drv_data, SSSR) & bits; in read_SSSR_bits()
107 if (drv_data->ssp_type == CE4100_SSP || in write_SSSR_CS()
108 drv_data->ssp_type == QUARK_X1000_SSP) in write_SSSR_CS()
109 val |= read_SSSR_bits(drv_data, SSSR_ALT_FRM_MASK); in write_SSSR_CS()
[all …]
/openbmc/linux/drivers/nfc/nfcmrvl/
H A Dusb.c152 struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; in nfcmrvl_tx_complete() local
168 struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; in nfcmrvl_usb_nci_open() local
199 struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; in nfcmrvl_usb_nci_close() local
223 struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; in nfcmrvl_usb_nci_send() local
301 drv_data = devm_kzalloc(&intf->dev, sizeof(*drv_data), GFP_KERNEL); in nfcmrvl_probe()
302 if (!drv_data) in nfcmrvl_probe()
319 if (!drv_data->bulk_tx_ep || !drv_data->bulk_rx_ep) in nfcmrvl_probe()
322 drv_data->udev = udev; in nfcmrvl_probe()
323 drv_data->intf = intf; in nfcmrvl_probe()
337 drv_data->priv = priv; in nfcmrvl_probe()
[all …]
H A Dspi.c68 struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; in nfcmrvl_spi_nci_send() local
82 err = nci_spi_send(drv_data->nci_spi, &drv_data->handshake_completion, in nfcmrvl_spi_nci_send()
93 struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; in nfcmrvl_spi_nci_update_config() local
134 drv_data = devm_kzalloc(&spi->dev, sizeof(*drv_data), GFP_KERNEL); in nfcmrvl_spi_probe()
135 if (!drv_data) in nfcmrvl_spi_probe()
138 drv_data->spi = spi; in nfcmrvl_spi_probe()
139 drv_data->priv = NULL; in nfcmrvl_spi_probe()
161 drv_data, &spi_ops, in nfcmrvl_spi_probe()
162 &drv_data->spi->dev, in nfcmrvl_spi_probe()
164 if (IS_ERR(drv_data->priv)) in nfcmrvl_spi_probe()
[all …]
H A Di2c.c70 if (!drv_data->priv) in nfcmrvl_i2c_int_irq_thread_fn()
96 struct nfcmrvl_i2c_drv_data *drv_data = priv->drv_data; in nfcmrvl_i2c_nci_open() local
98 if (!drv_data) in nfcmrvl_i2c_nci_open()
112 struct nfcmrvl_i2c_drv_data *drv_data = priv->drv_data; in nfcmrvl_i2c_nci_send() local
131 nfc_err(drv_data->dev, in nfcmrvl_i2c_nci_send()
198 drv_data = devm_kzalloc(&client->dev, sizeof(*drv_data), GFP_KERNEL); in nfcmrvl_i2c_probe()
199 if (!drv_data) in nfcmrvl_i2c_probe()
202 drv_data->i2c = client; in nfcmrvl_i2c_probe()
204 drv_data->priv = NULL; in nfcmrvl_i2c_probe()
229 drv_data, &i2c_ops, in nfcmrvl_i2c_probe()
[all …]
/openbmc/linux/sound/soc/xilinx/
H A Dxlnx_i2s.c46 drv_data->sysclk = 0; in xlnx_i2s_set_sclkout_div()
58 drv_data->sysclk = freq; in xlnx_i2s_set_sysclk()
67 drv_data->ratnum.num = freq / (bits_per_sample * drv_data->channels) / 2; in xlnx_i2s_set_sysclk()
71 drv_data->rate_constraints.rats = &drv_data->ratnum; in xlnx_i2s_set_sysclk()
82 if (drv_data->sysclk) in xlnx_i2s_startup()
179 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in xlnx_i2s_probe()
180 if (!drv_data) in xlnx_i2s_probe()
214 drv_data->dai_drv.playback.channels_min = drv_data->channels; in xlnx_i2s_probe()
215 drv_data->dai_drv.playback.channels_max = drv_data->channels; in xlnx_i2s_probe()
222 drv_data->dai_drv.capture.channels_min = drv_data->channels; in xlnx_i2s_probe()
[all …]
/openbmc/linux/drivers/ata/
H A Dpata_ep93xx.c349 ata_timing_merge(&t, &drv_data->t, &drv_data->t, in ep93xx_pata_set_piomode()
630 if (drv_data->dma_rx_channel) { in ep93xx_pata_release_dma()
634 if (drv_data->dma_tx_channel) { in ep93xx_pata_release_dma()
668 if (!drv_data->dma_rx_channel) in ep93xx_pata_dma_init()
711 ? drv_data->dma_tx_channel : drv_data->dma_rx_channel; in ep93xx_pata_dma_start()
947 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in ep93xx_pata_probe()
948 if (!drv_data) { in ep93xx_pata_probe()
953 drv_data->pdev = pdev; in ep93xx_pata_probe()
954 drv_data->ide_base = ide_base; in ep93xx_pata_probe()
968 host->private_data = drv_data; in ep93xx_pata_probe()
[all …]
H A Dahci_st.c60 if (drv_data->pwr) { in st_ahci_deassert_resets()
68 if (drv_data->sw_rst) { in st_ahci_deassert_resets()
76 if (drv_data->pwr_rst) { in st_ahci_deassert_resets()
94 if (drv_data->pwr) { in st_ahci_host_stop()
109 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets()
111 drv_data->pwr = NULL; in st_ahci_probe_resets()
117 drv_data->sw_rst = NULL; in st_ahci_probe_resets()
123 drv_data->pwr_rst = NULL; in st_ahci_probe_resets()
151 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in st_ahci_probe()
152 if (!drv_data) in st_ahci_probe()
[all …]
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_core.c85 u_ctx = drv_data.last_dev; in assign_chcr_device()
86 if (list_is_last(&drv_data.last_dev->entry, &drv_data.act_dev)) in assign_chcr_device()
87 drv_data.last_dev = list_first_entry(&drv_data.act_dev, in assign_chcr_device()
90 drv_data.last_dev = in assign_chcr_device()
106 if (!drv_data.last_dev) in chcr_dev_add()
107 drv_data.last_dev = u_ctx; in chcr_dev_add()
132 if (list_is_last(&drv_data.last_dev->entry, &drv_data.act_dev)) in chcr_dev_move()
133 drv_data.last_dev = list_first_entry(&drv_data.act_dev, in chcr_dev_move()
136 drv_data.last_dev = in chcr_dev_move()
141 drv_data.last_dev = NULL; in chcr_dev_move()
[all …]
/openbmc/linux/drivers/watchdog/
H A Dmenf21bmc_wdt.c118 struct menf21bmc_wdt *drv_data; in menf21bmc_wdt_probe() local
122 if (!drv_data) in menf21bmc_wdt_probe()
125 drv_data->wdt.ops = &menf21bmc_wdt_ops; in menf21bmc_wdt_probe()
126 drv_data->wdt.info = &menf21bmc_wdt_info; in menf21bmc_wdt_probe()
127 drv_data->wdt.min_timeout = BMC_WD_TIMEOUT_MIN; in menf21bmc_wdt_probe()
128 drv_data->wdt.max_timeout = BMC_WD_TIMEOUT_MAX; in menf21bmc_wdt_probe()
129 drv_data->wdt.parent = dev; in menf21bmc_wdt_probe()
130 drv_data->i2c_client = i2c_client; in menf21bmc_wdt_probe()
145 watchdog_set_drvdata(&drv_data->wdt, drv_data); in menf21bmc_wdt_probe()
146 platform_set_drvdata(pdev, drv_data); in menf21bmc_wdt_probe()
[all …]
H A Dmax77620_wdt.c48 const struct max77620_variant *drv_data; member
76 return regmap_update_bits(wdt->rmap, wdt->drv_data->reg_cnfg_glbl2, in max77620_wdt_start()
84 return regmap_update_bits(wdt->rmap, wdt->drv_data->reg_cnfg_glbl2, in max77620_wdt_stop()
93 wdt->drv_data->wdtc_mask, 0x1); in max77620_wdt_ping()
131 ret = regmap_update_bits(wdt->rmap, wdt->drv_data->reg_cnfg_glbl3, in max77620_wdt_set_timeout()
132 wdt->drv_data->wdtc_mask, 0x1); in max77620_wdt_set_timeout()
136 ret = regmap_update_bits(wdt->rmap, wdt->drv_data->reg_cnfg_glbl2, in max77620_wdt_set_timeout()
191 wdt->drv_data->bit_wd_rst_wk, in max77620_wdt_probe()
192 wdt->drv_data->bit_wd_rst_wk); in max77620_wdt_probe()
200 wdt->drv_data->cnfg_glbl2_cfg_bits, in max77620_wdt_probe()
[all …]
/openbmc/linux/drivers/soc/qcom/
H A Dllcc-qcom.c537 if (IS_ERR(drv_data)) in llcc_slice_getd()
540 cfg = drv_data->cfg; in llcc_slice_getd()
541 sz = drv_data->cfg_size; in llcc_slice_getd()
581 if (IS_ERR(drv_data)) in llcc_update_act_ctrl()
635 if (IS_ERR(drv_data)) in llcc_slice_activate()
675 if (IS_ERR(drv_data)) in llcc_slice_deactivate()
899 sz = drv_data->cfg_size; in qcom_llcc_cfg_program()
949 if (!IS_ERR(drv_data)) in qcom_llcc_probe()
952 drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); in qcom_llcc_probe()
953 if (!drv_data) { in qcom_llcc_probe()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dmenf21bmc_hwmon.c60 || !drv_data->valid) { in menf21bmc_hwmon_update()
68 drv_data->in_val[i] = val; in menf21bmc_hwmon_update()
70 drv_data->last_update = jiffies; in menf21bmc_hwmon_update()
71 drv_data->valid = true; in menf21bmc_hwmon_update()
87 drv_data->in_min[i] = val; in menf21bmc_hwmon_get_volt_limits()
94 drv_data->in_max[i] = val; in menf21bmc_hwmon_get_volt_limits()
113 if (IS_ERR(drv_data)) in in_show()
114 return PTR_ERR(drv_data); in in_show()
191 struct menf21bmc_hwmon *drv_data; in menf21bmc_hwmon_probe() local
197 if (!drv_data) in menf21bmc_hwmon_probe()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-steelseries.c164 if (!drv_data) { in steelseries_srws1_led_all_set_brightness()
170 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness()
185 if (!drv_data) { in steelseries_srws1_led_all_get_brightness()
201 if (!drv_data) { in steelseries_srws1_led_set_brightness()
231 if (!drv_data) { in steelseries_srws1_led_get_brightness()
255 if (drv_data == NULL) { in steelseries_srws1_probe()
280 drv_data->led_state = 0; in steelseries_srws1_probe()
324 drv_data->led[i] = led; in steelseries_srws1_probe()
345 kfree(drv_data); in steelseries_srws1_probe()
356 if (drv_data) { in steelseries_srws1_remove()
[all …]
H A Dhid-plantronics.c59 struct plt_drv_data *drv_data = hid_get_drvdata(hdev); in plantronics_input_mapping() local
60 unsigned long plt_type = drv_data->device_type; in plantronics_input_mapping()
135 prev_ts = drv_data->last_volume_key_ts; in plantronics_event()
140 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
150 prev_ts = drv_data->last_volume_key_ts; in plantronics_event()
155 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
189 struct plt_drv_data *drv_data; in plantronics_probe() local
192 drv_data = devm_kzalloc(&hdev->dev, sizeof(*drv_data), GFP_KERNEL); in plantronics_probe()
193 if (!drv_data) in plantronics_probe()
203 drv_data->quirks = id->driver_data; in plantronics_probe()
[all …]
H A Dhid-lg4ff.c416 if (!drv_data) { in lg4ff_play()
478 if (!drv_data) { in lg4ff_set_autocenter_default()
558 if (!drv_data) { in lg4ff_set_autocenter_ffex()
592 if (!drv_data) { in lg4ff_set_range_g25()
628 if (!drv_data) { in lg4ff_set_range_dfp()
772 if (!drv_data) { in lg4ff_switch_compatibility_mode()
807 if (!drv_data) { in lg4ff_alternate_modes_show()
858 if (!drv_data) { in lg4ff_alternate_modes_store()
948 if (!drv_data) { in lg4ff_combine_show()
972 if (!drv_data) { in lg4ff_combine_store()
[all …]
H A Dhid-lg.c732 if (drv_data->quirks & LG_FF4) { in lg_event()
744 if (drv_data->quirks & LG_FF4) in lg_raw_event()
755 struct lg_drv_data *drv_data; in lg_probe() local
772 if (!drv_data) { in lg_probe()
776 drv_data->quirks = id->driver_data; in lg_probe()
780 if (drv_data->quirks & LG_NOGET) in lg_probe()
829 if (drv_data->quirks & LG_FF) in lg_probe()
831 else if (drv_data->quirks & LG_FF2) in lg_probe()
846 kfree(drv_data); in lg_probe()
853 if (drv_data->quirks & LG_FF4) in lg_remove()
[all …]
/openbmc/linux/drivers/phy/rockchip/
H A Dphy-rockchip-inno-csidphy.c137 const struct dphy_drv_data *drv_data; member
145 const struct dphy_drv_data *drv_data = priv->drv_data; in write_grf_reg() local
179 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_ths_settle() local
192 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_configure() local
210 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rockchip_inno_csidphy_configure()
225 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_power_on() local
241 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_on()
253 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_on()
294 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_power_off() local
301 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_off()
[all …]
H A Dphy-rockchip-dphy-rx0.c153 const struct rk_dphy_drv_data *drv_data; member
162 const struct dphy_reg *reg = &priv->drv_data->regs[index]; in rk_dphy_write_grf()
229 const struct rk_dphy_drv_data *drv_data = priv->drv_data; in rk_dphy_configure() local
245 for (i = 0; i < drv_data->num_hsfreq_ranges; i++) { in rk_dphy_configure()
247 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure()
278 clk_bulk_disable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_off()
327 const struct rk_dphy_drv_data *drv_data; in rk_dphy_probe() local
348 drv_data = of_device_get_match_data(dev); in rk_dphy_probe()
349 priv->drv_data = drv_data; in rk_dphy_probe()
354 for (i = 0; i < drv_data->num_clks; i++) in rk_dphy_probe()
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-max77686.c153 if (idx >= drv_data->num_clks) { in of_clk_max77686_get()
158 return &drv_data->max_clk_data[idx].hw; in of_clk_max77686_get()
166 struct max77686_clk_driver_data *drv_data; in max77686_clk_probe() local
171 drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); in max77686_clk_probe()
172 if (!drv_data) in max77686_clk_probe()
181 drv_data->chip = id->driver_data; in max77686_clk_probe()
183 switch (drv_data->chip) { in max77686_clk_probe()
204 drv_data->num_clks = num_clks; in max77686_clk_probe()
208 if (!drv_data->max_clk_data) in max77686_clk_probe()
249 drv_data); in max77686_clk_probe()
[all …]
/openbmc/linux/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier.h96 static inline unsigned int uniphier_pin_get_iectrl(void *drv_data) in uniphier_pin_get_iectrl() argument
98 return ((unsigned long)drv_data >> UNIPHIER_PIN_IECTRL_SHIFT) & in uniphier_pin_get_iectrl()
102 static inline unsigned int uniphier_pin_get_drvctrl(void *drv_data) in uniphier_pin_get_drvctrl() argument
104 return ((unsigned long)drv_data >> UNIPHIER_PIN_DRVCTRL_SHIFT) & in uniphier_pin_get_drvctrl()
108 static inline unsigned int uniphier_pin_get_drv_type(void *drv_data) in uniphier_pin_get_drv_type() argument
110 return ((unsigned long)drv_data >> UNIPHIER_PIN_DRV_TYPE_SHIFT) & in uniphier_pin_get_drv_type()
114 static inline unsigned int uniphier_pin_get_pupdctrl(void *drv_data) in uniphier_pin_get_pupdctrl() argument
116 return ((unsigned long)drv_data >> UNIPHIER_PIN_PUPDCTRL_SHIFT) & in uniphier_pin_get_pupdctrl()
120 static inline unsigned int uniphier_pin_get_pull_dir(void *drv_data) in uniphier_pin_get_pull_dir() argument
122 return ((unsigned long)drv_data >> UNIPHIER_PIN_PULL_DIR_SHIFT) & in uniphier_pin_get_pull_dir()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-max77686.c296 u8 mask = info->drv_data->mask; in max77686_rtc_data_to_tm()
314 if (!info->drv_data->alarm_enable_reg) in max77686_rtc_data_to_tm()
328 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_tm_to_data()
410 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_set_time()
449 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_read_alarm()
510 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_stop_alarm()
560 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_start_alarm()
615 info->drv_data->map[REG_ALARM1_SEC], in max77686_rtc_set_alarm()
718 info->drv_data->rtc_i2c_addr); in max77686_init_rtc_regmap()
725 info->drv_data->regmap_config); in max77686_init_rtc_regmap()
[all …]
/openbmc/linux/sound/soc/amd/acp/
H A Dacp-mach-common.c1337 if (drv_data->hs_cpu_id) in acp_sofdsp_dai_links_create()
1339 if (drv_data->amp_cpu_id) in acp_sofdsp_dai_links_create()
1341 if (drv_data->dmic_cpu_id) in acp_sofdsp_dai_links_create()
1359 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create()
1396 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create()
1431 if (!drv_data->amp_codec_id) { in acp_sofdsp_dai_links_create()
1522 if (drv_data->hs_cpu_id) in acp_legacy_dai_links_create()
1524 if (drv_data->amp_cpu_id) in acp_legacy_dai_links_create()
1526 if (drv_data->dmic_cpu_id) in acp_legacy_dai_links_create()
1542 if (!drv_data->hs_codec_id) { in acp_legacy_dai_links_create()
[all …]

12345678910