/linux/drivers/i2c/busses/ |
A D | i2c-mv64xxx.c | 267 if (drv_data->send_stop || drv_data->aborting) { in mv64xxx_i2c_fsm() 331 drv_data->state, status, drv_data->msg->addr, in mv64xxx_i2c_fsm() 342 drv_data->msg = drv_data->msgs; in mv64xxx_i2c_send_start() 344 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start() 373 drv_data->send_stop = drv_data->num_msgs == 1; in mv64xxx_i2c_do_action() 403 drv_data->msg->buf[drv_data->byte_posn++] = in mv64xxx_i2c_do_action() 410 drv_data->msg->buf[drv_data->byte_posn++] = in mv64xxx_i2c_do_action() 547 !drv_data->block, drv_data->adapter.timeout); in mv64xxx_i2c_wait_for_completion() 563 !drv_data->block, drv_data->adapter.timeout); in mv64xxx_i2c_wait_for_completion() 1027 free_irq(drv_data->irq, drv_data); in mv64xxx_i2c_probe() [all …]
|
/linux/drivers/nfc/nfcmrvl/ |
A D | usb.c | 152 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 …]
|
A D | spi.c | 68 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 …]
|
A D | i2c.c | 70 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 129 nfc_err(drv_data->dev, in nfcmrvl_i2c_nci_send() 192 drv_data = devm_kzalloc(&client->dev, sizeof(*drv_data), GFP_KERNEL); in nfcmrvl_i2c_probe() 193 if (!drv_data) in nfcmrvl_i2c_probe() 196 drv_data->i2c = client; in nfcmrvl_i2c_probe() 198 drv_data->priv = NULL; in nfcmrvl_i2c_probe() 223 drv_data, &i2c_ops, in nfcmrvl_i2c_probe() [all …]
|
/linux/drivers/spi/ |
A D | spi-pxa2xx.c | 508 || (drv_data->tx == drv_data->tx_end)) in null_writer() 526 return drv_data->rx == drv_data->rx_end; in null_reader() 532 || (drv_data->tx == drv_data->tx_end)) in u8_writer() 554 || (drv_data->tx == drv_data->tx_end)) in u16_writer() 576 || (drv_data->tx == drv_data->tx_end)) in u32_writer() 672 if (drv_data->read(drv_data)) { in interrupt_transfer() 680 if (drv_data->read(drv_data)) { in interrupt_transfer() 684 } while (drv_data->write(drv_data)); in interrupt_transfer() 686 if (drv_data->read(drv_data)) { in interrupt_transfer() 691 if (drv_data->tx == drv_data->tx_end) { in interrupt_transfer() [all …]
|
A D | spi-pxa2xx-dma.c | 38 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 …]
|
A D | spi-pxa2xx.h | 49 int (*write)(struct driver_data *drv_data); 50 int (*read)(struct driver_data *drv_data); 72 int (*write)(struct driver_data *drv_data); 73 int (*read)(struct driver_data *drv_data); 80 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read() 85 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write() 92 switch (drv_data->ssp_type) { in pxa25x_ssp_comp() 104 pxa2xx_spi_write(drv_data, SSCR1, pxa2xx_spi_read(drv_data, SSCR1) & ~bits); in clear_SSCR1_bits() 114 if (drv_data->ssp_type == CE4100_SSP || in write_SSSR_CS() 115 drv_data->ssp_type == QUARK_X1000_SSP) in write_SSSR_CS() [all …]
|
/linux/drivers/ata/ |
A D | pata_ep93xx.c | 348 ata_timing_merge(&t, &drv_data->t, &drv_data->t, in ep93xx_pata_set_piomode() 629 if (drv_data->dma_rx_channel) { in ep93xx_pata_release_dma() 633 if (drv_data->dma_tx_channel) { in ep93xx_pata_release_dma() 667 if (!drv_data->dma_rx_channel) in ep93xx_pata_dma_init() 710 ? drv_data->dma_tx_channel : drv_data->dma_rx_channel; in ep93xx_pata_dma_start() 942 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in ep93xx_pata_probe() 943 if (!drv_data) { in ep93xx_pata_probe() 948 drv_data->pdev = pdev; in ep93xx_pata_probe() 949 drv_data->ide_base = ide_base; in ep93xx_pata_probe() 963 host->private_data = drv_data; in ep93xx_pata_probe() [all …]
|
A D | ahci_st.c | 60 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() 152 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in st_ahci_probe() 153 if (!drv_data) in st_ahci_probe() [all …]
|
/linux/drivers/soc/qcom/ |
A D | llcc-qcom.c | 246 if (IS_ERR(drv_data)) in llcc_slice_getd() 249 cfg = drv_data->cfg; in llcc_slice_getd() 250 sz = drv_data->cfg_size; in llcc_slice_getd() 289 if (IS_ERR(drv_data)) in llcc_update_act_ctrl() 327 if (IS_ERR(drv_data)) in llcc_slice_activate() 367 if (IS_ERR(drv_data)) in llcc_slice_deactivate() 506 sz = drv_data->cfg_size; in qcom_llcc_cfg_program() 555 drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); in qcom_llcc_probe() 556 if (!drv_data) { in qcom_llcc_probe() 567 drv_data->bcast_regmap = in qcom_llcc_probe() [all …]
|
/linux/drivers/crypto/chelsio/ |
A D | chcr_core.c | 85 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 …]
|
/linux/drivers/watchdog/ |
A D | menf21bmc_wdt.c | 118 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 …]
|
/linux/drivers/hid/ |
A D | hid-steelseries.c | 144 if (!drv_data) { in steelseries_srws1_led_all_set_brightness() 150 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness() 165 if (!drv_data) { in steelseries_srws1_led_all_get_brightness() 181 if (!drv_data) { in steelseries_srws1_led_set_brightness() 211 if (!drv_data) { in steelseries_srws1_led_get_brightness() 235 if (drv_data == NULL) { in steelseries_srws1_probe() 260 drv_data->led_state = 0; in steelseries_srws1_probe() 304 drv_data->led[i] = led; in steelseries_srws1_probe() 325 kfree(drv_data); in steelseries_srws1_probe() 336 if (drv_data) { in steelseries_srws1_remove() [all …]
|
A D | hid-lg4ff.c | 416 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() 942 if (!drv_data) { in lg4ff_combine_show() 966 if (!drv_data) { in lg4ff_combine_store() [all …]
|
A D | hid-lg.c | 732 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 …]
|
A D | hid-plantronics.c | 57 struct plt_drv_data *drv_data = hid_get_drvdata(hdev); in plantronics_input_mapping() local 58 unsigned long plt_type = drv_data->device_type; in plantronics_input_mapping() 123 struct plt_drv_data *drv_data = hid_get_drvdata(hdev); in plantronics_event() local 125 if (drv_data->quirks & PLT_QUIRK_DOUBLE_VOLUME_KEYS) { in plantronics_event() 133 prev_ts = drv_data->last_volume_key_ts; in plantronics_event() 138 drv_data->last_volume_key_ts = cur_ts; in plantronics_event() 172 struct plt_drv_data *drv_data; in plantronics_probe() local 175 drv_data = devm_kzalloc(&hdev->dev, sizeof(*drv_data), GFP_KERNEL); in plantronics_probe() 176 if (!drv_data) in plantronics_probe() 186 drv_data->quirks = id->driver_data; in plantronics_probe() [all …]
|
/linux/drivers/hwmon/ |
A D | menf21bmc_hwmon.c | 60 || !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 …]
|
/linux/drivers/phy/rockchip/ |
A D | phy-rockchip-inno-csidphy.c | 126 const struct dphy_drv_data *drv_data; member 134 const struct dphy_drv_data *drv_data = priv->drv_data; in write_grf_reg() local 168 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_ths_settle() local 181 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_configure() local 199 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rockchip_inno_csidphy_configure() 214 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_power_on() local 230 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_on() 242 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_on() 283 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_power_off() local 290 if (drv_data->pwrctl_offset >= 0) in rockchip_inno_csidphy_power_off() [all …]
|
A D | phy-rockchip-dphy-rx0.c | 154 const struct rk_dphy_drv_data *drv_data; member 163 const struct dphy_reg *reg = &priv->drv_data->regs[index]; in rk_dphy_write_grf() 230 const struct rk_dphy_drv_data *drv_data = priv->drv_data; in rk_dphy_configure() local 246 for (i = 0; i < drv_data->num_hsfreq_ranges; i++) { in rk_dphy_configure() 248 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure() 279 clk_bulk_disable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_off() 328 const struct rk_dphy_drv_data *drv_data; in rk_dphy_probe() local 354 drv_data = of_id->data; in rk_dphy_probe() 355 priv->drv_data = drv_data; in rk_dphy_probe() 360 for (i = 0; i < drv_data->num_clks; i++) in rk_dphy_probe() [all …]
|
/linux/drivers/clk/ |
A D | clk-max77686.c | 153 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 …]
|
/linux/drivers/pinctrl/uniphier/ |
A D | pinctrl-uniphier.h | 96 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 …]
|
/linux/sound/soc/amd/acp/ |
A D | acp-mach-common.c | 424 if (drv_data->hs_cpu_id) in acp_sofdsp_dai_links_create() 426 if (drv_data->amp_cpu_id) in acp_sofdsp_dai_links_create() 428 if (drv_data->dmic_cpu_id) in acp_sofdsp_dai_links_create() 435 if (drv_data->hs_cpu_id == I2S_SP) { in acp_sofdsp_dai_links_create() 446 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create() 476 if (!drv_data->amp_codec_id) { in acp_sofdsp_dai_links_create() 526 if (drv_data->hs_cpu_id) in acp_legacy_dai_links_create() 528 if (drv_data->amp_cpu_id) in acp_legacy_dai_links_create() 530 if (drv_data->dmic_cpu_id) in acp_legacy_dai_links_create() 544 if (!drv_data->hs_codec_id) { in acp_legacy_dai_links_create() [all …]
|
/linux/drivers/rtc/ |
A D | rtc-max77686.c | 274 u8 mask = info->drv_data->mask; in max77686_rtc_data_to_tm() 298 if (!info->drv_data->alarm_enable_reg) in max77686_rtc_data_to_tm() 312 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_tm_to_data() 341 info->drv_data->map[REG_RTC_UPDATE0], in max77686_rtc_update() 394 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_set_time() 433 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_read_alarm() 494 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_stop_alarm() 544 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_start_alarm() 599 info->drv_data->map[REG_ALARM1_SEC], in max77686_rtc_set_alarm() 711 info->drv_data->regmap_config); in max77686_init_rtc_regmap() [all …]
|
/linux/drivers/mmc/host/ |
A D | dw_mmc-pltfm.c | 25 const struct dw_mci_drv_data *drv_data) in dw_mci_pltfm_register() argument 38 host->drv_data = drv_data; in dw_mci_pltfm_register() 75 const struct dw_mci_drv_data *drv_data = NULL; in dw_mci_pltfm_probe() local 80 drv_data = match->data; in dw_mci_pltfm_probe() 83 return dw_mci_pltfm_register(pdev, drv_data); in dw_mci_pltfm_probe()
|
/linux/drivers/scsi/ufs/ |
A D | ufs-exynos.c | 999 if (ufs->drv_data->pre_link) in exynos_ufs_pre_link() 1000 ufs->drv_data->pre_link(ufs); in exynos_ufs_pre_link() 1072 if (ufs->drv_data->post_link) in exynos_ufs_post_link() 1073 ufs->drv_data->post_link(ufs); in exynos_ufs_post_link() 1086 if (ufs->drv_data && ufs->drv_data->uic_attr) { in exynos_ufs_parse_dt() 1087 attr = ufs->drv_data->uic_attr; in exynos_ufs_parse_dt() 1123 ufs->opts = ufs->drv_data->opts; in exynos_ufs_priv_init() 1182 if (ufs->drv_data->drv_init) { in exynos_ufs_init() 1467 if (!ufs->drv_data) in exynosauto_ufs_vh_init() 1503 if (drv_data && drv_data->vops) in exynos_ufs_probe() [all …]
|