/drivers/i2c/busses/ |
D | i2c-mv64xxx.c | 173 mv64xxx_i2c_prepare_for_io(struct mv64xxx_i2c_data *drv_data, in mv64xxx_i2c_prepare_for_io() argument 178 drv_data->cntl_bits = MV64XXX_I2C_REG_CONTROL_ACK | in mv64xxx_i2c_prepare_for_io() 185 drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; in mv64xxx_i2c_prepare_for_io() 186 drv_data->addr2 = (u32)msg->addr & 0xff; in mv64xxx_i2c_prepare_for_io() 188 drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; in mv64xxx_i2c_prepare_for_io() 189 drv_data->addr2 = 0; in mv64xxx_i2c_prepare_for_io() 203 mv64xxx_i2c_hw_init(struct mv64xxx_i2c_data *drv_data) in mv64xxx_i2c_hw_init() argument 205 if (drv_data->offload_enabled) { in mv64xxx_i2c_hw_init() 206 writel(0, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_CONTROL); in mv64xxx_i2c_hw_init() 207 writel(0, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_TIMING); in mv64xxx_i2c_hw_init() [all …]
|
/drivers/spi/ |
D | spi-pxa2xx.c | 171 *lpss_get_config(const struct driver_data *drv_data) in lpss_get_config() argument 173 return &lpss_platforms[drv_data->ssp_type - LPSS_LPT_SSP]; in lpss_get_config() 176 static bool is_lpss_ssp(const struct driver_data *drv_data) in is_lpss_ssp() argument 178 switch (drv_data->ssp_type) { in is_lpss_ssp() 191 static bool is_quark_x1000_ssp(const struct driver_data *drv_data) in is_quark_x1000_ssp() argument 193 return drv_data->ssp_type == QUARK_X1000_SSP; in is_quark_x1000_ssp() 196 static bool is_mmp2_ssp(const struct driver_data *drv_data) in is_mmp2_ssp() argument 198 return drv_data->ssp_type == MMP2_SSP; in is_mmp2_ssp() 201 static u32 pxa2xx_spi_get_ssrc1_change_mask(const struct driver_data *drv_data) in pxa2xx_spi_get_ssrc1_change_mask() argument 203 switch (drv_data->ssp_type) { in pxa2xx_spi_get_ssrc1_change_mask() [all …]
|
D | spi-pxa2xx-dma.c | 20 static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data, in pxa2xx_spi_dma_transfer_complete() argument 23 struct spi_message *msg = drv_data->controller->cur_msg; in pxa2xx_spi_dma_transfer_complete() 31 if (atomic_dec_and_test(&drv_data->dma_running)) { in pxa2xx_spi_dma_transfer_complete() 38 u32 status = pxa2xx_spi_read(drv_data, SSSR) in pxa2xx_spi_dma_transfer_complete() 39 & drv_data->mask_sr; in pxa2xx_spi_dma_transfer_complete() 44 pxa2xx_spi_write(drv_data, SSCR1, in pxa2xx_spi_dma_transfer_complete() 45 pxa2xx_spi_read(drv_data, SSCR1) in pxa2xx_spi_dma_transfer_complete() 46 & ~drv_data->dma_cr1); in pxa2xx_spi_dma_transfer_complete() 47 write_SSSR_CS(drv_data, drv_data->clear_sr); in pxa2xx_spi_dma_transfer_complete() 48 if (!pxa25x_ssp_comp(drv_data)) in pxa2xx_spi_dma_transfer_complete() [all …]
|
D | spi-pxa2xx.h | 55 int (*write)(struct driver_data *drv_data); 56 int (*read)(struct driver_data *drv_data); 57 irqreturn_t (*transfer_handler)(struct driver_data *drv_data); 85 int (*write)(struct driver_data *drv_data); 86 int (*read)(struct driver_data *drv_data); 90 static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, in pxa2xx_spi_read() argument 93 return __raw_readl(drv_data->ioaddr + reg); in pxa2xx_spi_read() 96 static inline void pxa2xx_spi_write(const struct driver_data *drv_data, in pxa2xx_spi_write() argument 99 __raw_writel(val, drv_data->ioaddr + reg); in pxa2xx_spi_write() 104 static inline int pxa25x_ssp_comp(struct driver_data *drv_data) in pxa25x_ssp_comp() argument [all …]
|
/drivers/nfc/nfcmrvl/ |
D | usb.c | 54 static int nfcmrvl_inc_tx(struct nfcmrvl_usb_drv_data *drv_data) in nfcmrvl_inc_tx() argument 59 spin_lock_irqsave(&drv_data->txlock, flags); in nfcmrvl_inc_tx() 60 rv = test_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); in nfcmrvl_inc_tx() 62 drv_data->tx_in_flight++; in nfcmrvl_inc_tx() 63 spin_unlock_irqrestore(&drv_data->txlock, flags); in nfcmrvl_inc_tx() 70 struct nfcmrvl_usb_drv_data *drv_data = urb->context; in nfcmrvl_bulk_complete() local 74 dev_dbg(&drv_data->udev->dev, "urb %p status %d count %d\n", in nfcmrvl_bulk_complete() 77 if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) in nfcmrvl_bulk_complete() 81 skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, in nfcmrvl_bulk_complete() 84 nfc_err(&drv_data->udev->dev, "failed to alloc mem\n"); in nfcmrvl_bulk_complete() [all …]
|
D | spi.c | 43 struct nfcmrvl_spi_drv_data *drv_data = drv_data_ptr; in nfcmrvl_spi_int_irq_thread_fn() local 50 if (test_and_clear_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags)) { in nfcmrvl_spi_int_irq_thread_fn() 51 complete(&drv_data->handshake_completion); in nfcmrvl_spi_int_irq_thread_fn() 57 skb = nci_spi_read(drv_data->nci_spi); in nfcmrvl_spi_int_irq_thread_fn() 59 nfc_err(&drv_data->spi->dev, "failed to read spi packet"); in nfcmrvl_spi_int_irq_thread_fn() 63 if (nfcmrvl_nci_recv_frame(drv_data->priv, skb) < 0) in nfcmrvl_spi_int_irq_thread_fn() 64 nfc_err(&drv_data->spi->dev, "corrupted RX packet"); in nfcmrvl_spi_int_irq_thread_fn() 82 struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; in nfcmrvl_spi_nci_send() local 86 reinit_completion(&drv_data->handshake_completion); in nfcmrvl_spi_nci_send() 87 set_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags); in nfcmrvl_spi_nci_send() [all …]
|
D | i2c.c | 39 static int nfcmrvl_i2c_read(struct nfcmrvl_i2c_drv_data *drv_data, in nfcmrvl_i2c_read() argument 46 ret = i2c_master_recv(drv_data->i2c, (u8 *)&nci_hdr, NCI_CTRL_HDR_SIZE); in nfcmrvl_i2c_read() 48 nfc_err(&drv_data->i2c->dev, "cannot read NCI header\n"); in nfcmrvl_i2c_read() 53 nfc_err(&drv_data->i2c->dev, "invalid packet payload size\n"); in nfcmrvl_i2c_read() 57 *skb = nci_skb_alloc(drv_data->priv->ndev, in nfcmrvl_i2c_read() 67 ret = i2c_master_recv(drv_data->i2c, in nfcmrvl_i2c_read() 72 nfc_err(&drv_data->i2c->dev, in nfcmrvl_i2c_read() 85 struct nfcmrvl_i2c_drv_data *drv_data = drv_data_ptr; in nfcmrvl_i2c_int_irq_thread_fn() local 89 if (!drv_data->priv) in nfcmrvl_i2c_int_irq_thread_fn() 92 if (test_bit(NFCMRVL_PHY_ERROR, &drv_data->priv->flags)) in nfcmrvl_i2c_int_irq_thread_fn() [all …]
|
D | uart.c | 48 struct nci_uart *nu = priv->drv_data; in nfcmrvl_uart_nci_send() 56 struct nci_uart *nu = priv->drv_data; in nfcmrvl_uart_nci_update_config() 142 nu->drv_data = priv; in nfcmrvl_nci_uart_open() 150 nfcmrvl_nci_unregister_dev((struct nfcmrvl_private *)nu->drv_data); in nfcmrvl_nci_uart_close() 155 return nfcmrvl_nci_recv_frame((struct nfcmrvl_private *)nu->drv_data, in nfcmrvl_nci_uart_recv() 161 struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; in nfcmrvl_nci_uart_tx_start() 175 struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; in nfcmrvl_nci_uart_tx_done()
|
/drivers/ata/ |
D | pata_ep93xx.c | 262 static u16 ep93xx_pata_read(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read() argument 266 void __iomem *base = drv_data->ide_base; in ep93xx_pata_read() 267 const struct ata_timing *t = &drv_data->t; in ep93xx_pata_read() 278 ep93xx_pata_rw_end(base, addr, drv_data->iordy, t0, t2, t2i); in ep93xx_pata_read() 283 static u16 ep93xx_pata_read_reg(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read_reg() argument 286 return ep93xx_pata_read(drv_data, addr, true); in ep93xx_pata_read_reg() 290 static u16 ep93xx_pata_read_data(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read_data() argument 293 return ep93xx_pata_read(drv_data, addr, false); in ep93xx_pata_read_data() 296 static void ep93xx_pata_write(struct ep93xx_pata_data *drv_data, in ep93xx_pata_write() argument 300 void __iomem *base = drv_data->ide_base; in ep93xx_pata_write() [all …]
|
D | ahci_st.c | 57 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets() local 60 if (drv_data->pwr) { in st_ahci_deassert_resets() 61 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets() 68 if (drv_data->sw_rst) { in st_ahci_deassert_resets() 69 err = reset_control_deassert(drv_data->sw_rst); in st_ahci_deassert_resets() 76 if (drv_data->pwr_rst) { in st_ahci_deassert_resets() 77 err = reset_control_deassert(drv_data->pwr_rst); in st_ahci_deassert_resets() 90 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() local 94 if (drv_data->pwr) { in st_ahci_host_stop() 95 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop() [all …]
|
/drivers/soc/qcom/ |
D | llcc-qcom.c | 132 static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; variable 147 if (IS_ERR(drv_data)) in llcc_slice_getd() 148 return ERR_CAST(drv_data); in llcc_slice_getd() 150 cfg = drv_data->cfg; in llcc_slice_getd() 151 sz = drv_data->cfg_size; in llcc_slice_getd() 190 if (IS_ERR(drv_data)) in llcc_update_act_ctrl() 191 return PTR_ERR(drv_data); in llcc_update_act_ctrl() 198 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl() 205 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl() 210 ret = regmap_read_poll_timeout(drv_data->bcast_regmap, status_reg, in llcc_update_act_ctrl() [all …]
|
/drivers/crypto/chelsio/ |
D | chcr_core.c | 29 static struct chcr_driver_data drv_data; variable 83 mutex_lock(&drv_data.drv_mutex); in assign_chcr_device() 84 if (!list_empty(&drv_data.act_dev)) { in assign_chcr_device() 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() 91 list_next_entry(drv_data.last_dev, entry); in assign_chcr_device() 93 mutex_unlock(&drv_data.drv_mutex); in assign_chcr_device() 104 mutex_lock(&drv_data.drv_mutex); in chcr_dev_add() [all …]
|
/drivers/watchdog/ |
D | menf21bmc_wdt.c | 60 struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); in menf21bmc_wdt_start() local 62 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_ON); in menf21bmc_wdt_start() 67 struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); in menf21bmc_wdt_stop() local 69 return i2c_smbus_write_byte_data(drv_data->i2c_client, in menf21bmc_wdt_stop() 77 struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); in menf21bmc_wdt_settimeout() local 84 ret = i2c_smbus_write_word_data(drv_data->i2c_client, in menf21bmc_wdt_settimeout() 96 struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); in menf21bmc_wdt_ping() local 98 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_TRIG); in menf21bmc_wdt_ping() 118 struct menf21bmc_wdt *drv_data; in menf21bmc_wdt_probe() local 121 drv_data = devm_kzalloc(dev, sizeof(struct menf21bmc_wdt), GFP_KERNEL); in menf21bmc_wdt_probe() [all …]
|
/drivers/hid/ |
D | hid-steelseries.c | 142 struct steelseries_srws1_data *drv_data = hid_get_drvdata(hid); in steelseries_srws1_led_all_set_brightness() local 144 if (!drv_data) { in steelseries_srws1_led_all_set_brightness() 150 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness() 152 drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; in steelseries_srws1_led_all_set_brightness() 154 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_all_set_brightness() 161 struct steelseries_srws1_data *drv_data; in steelseries_srws1_led_all_get_brightness() local 163 drv_data = hid_get_drvdata(hid); in steelseries_srws1_led_all_get_brightness() 165 if (!drv_data) { in steelseries_srws1_led_all_get_brightness() 170 return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; in steelseries_srws1_led_all_get_brightness() 178 struct steelseries_srws1_data *drv_data = hid_get_drvdata(hid); in steelseries_srws1_led_set_brightness() local [all …]
|
D | hid-lg4ff.c | 301 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) in lg4ff_adjust_input_event() argument 303 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_adjust_input_event() 327 u8 *rd, int size, struct lg_drv_data *drv_data) in lg4ff_raw_event() argument 330 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_raw_event() 410 struct lg_drv_data *drv_data; in lg4ff_play() local 415 drv_data = hid_get_drvdata(hid); in lg4ff_play() 416 if (!drv_data) { in lg4ff_play() 421 entry = drv_data->device_props; in lg4ff_play() 474 struct lg_drv_data *drv_data; in lg4ff_set_autocenter_default() local 477 drv_data = hid_get_drvdata(hid); in lg4ff_set_autocenter_default() [all …]
|
D | hid-lg.c | 433 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_report_fixup() local 435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup() 442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup() 664 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapping() local 675 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping() 685 if ((drv_data->quirks & LG_IGNORE_DOUBLED_WHEEL) && in lg_input_mapping() 689 if ((drv_data->quirks & LG_EXPANDED_KEYMAP) && in lg_input_mapping() 705 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapped() local 707 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped() 711 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped() [all …]
|
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() 185 drv_data->device_type = plantronics_device_type(hdev); in plantronics_probe() [all …]
|
/drivers/hwmon/ |
D | menf21bmc_hwmon.c | 56 struct menf21bmc_hwmon *drv_data = dev_get_drvdata(dev); in menf21bmc_hwmon_update() local 57 struct menf21bmc_hwmon *data_ret = drv_data; in menf21bmc_hwmon_update() 59 if (time_after(jiffies, drv_data->last_update + HZ) in menf21bmc_hwmon_update() 60 || !drv_data->valid) { in menf21bmc_hwmon_update() 62 val = i2c_smbus_read_word_data(drv_data->i2c_client, 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() 77 static int menf21bmc_hwmon_get_volt_limits(struct menf21bmc_hwmon *drv_data) in menf21bmc_hwmon_get_volt_limits() argument 82 val = i2c_smbus_read_word_data(drv_data->i2c_client, in menf21bmc_hwmon_get_volt_limits() [all …]
|
/drivers/clk/ |
D | clk-max77686.c | 150 struct max77686_clk_driver_data *drv_data = data; in of_clk_max77686_get() local 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() 205 drv_data->max_clk_data = devm_kcalloc(dev, num_clks, in max77686_clk_probe() [all …]
|
/drivers/phy/rockchip/ |
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() 247 if (drv_data->hsfreq_ranges[i].range_h >= data_rate_mbps) { in rk_dphy_configure() 248 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure() 265 ret = clk_bulk_enable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_on() 279 clk_bulk_disable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_off() 287 return clk_bulk_prepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_init() 294 clk_bulk_unprepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_exit() [all …]
|
/drivers/pinctrl/uniphier/ |
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 …]
|
/drivers/misc/ |
D | pti.c | 77 static struct pti_dev *drv_data; variable 114 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture() 306 mc = get_id(drv_data->ia_app, MAX_APP_IDS, in pti_request_masterchannel() 311 mc = get_id(drv_data->ia_os, MAX_OS_IDS, in pti_request_masterchannel() 316 mc = get_id(drv_data->ia_modem, MAX_MODEM_IDS, in pti_request_masterchannel() 348 drv_data->ia_app[i] &= ~(0x80>>(channel & 0x7)); in pti_release_masterchannel() 351 drv_data->ia_os[i] &= ~(0x80>>(channel & 0x7)); in pti_release_masterchannel() 354 drv_data->ia_modem[i] &= ~(0x80>>(channel & 0x7)); in pti_release_masterchannel() 817 drv_data = kzalloc(sizeof(*drv_data), GFP_KERNEL); in pti_pci_probe() 818 if (drv_data == NULL) { in pti_pci_probe() [all …]
|
/drivers/rtc/ |
D | rtc-max77686.c | 94 const struct max77686_rtc_driver_data *drv_data; member 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() 333 unsigned long delay = info->drv_data->delay; in max77686_rtc_update() 341 info->drv_data->map[REG_RTC_UPDATE0], in max77686_rtc_update() 367 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_read_time() 394 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_set_time() 413 const unsigned int *map = info->drv_data->map; in max77686_rtc_read_alarm() 433 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_read_alarm() [all …]
|
/drivers/mmc/host/ |
D | dw_mmc-pltfm.c | 26 const struct dw_mci_drv_data *drv_data) in dw_mci_pltfm_register() argument 39 host->drv_data = drv_data; in dw_mci_pltfm_register() 76 const struct dw_mci_drv_data *drv_data = NULL; in dw_mci_pltfm_probe() local 81 drv_data = match->data; in dw_mci_pltfm_probe() 84 return dw_mci_pltfm_register(pdev, drv_data); in dw_mci_pltfm_probe()
|
/drivers/scsi/ufs/ |
D | ufs-exynos.c | 203 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; in exynosauto_ufs_drv_init() 315 u32 val = ufs->drv_data->uic_attr->pa_dbg_option_suite; in exynos7_ufs_pre_link() 488 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; in exynos_ufs_set_pwm_clk_div() 497 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; in exynos_ufs_calc_pwm_clk_div() 539 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; in exynos_ufs_specify_phy_time_attr() 581 ufs->drv_data->uic_attr->rx_filler_enable); in exynos_ufs_config_phy_time_attr() 617 ufs->drv_data->uic_attr->tx_min_activatetime); in exynos_ufs_config_phy_time_attr() 626 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; in exynos_ufs_config_phy_cap_attr() 790 if (ufs->drv_data->pre_pwr_change) in exynos_ufs_pre_pwr_mode() 791 ufs->drv_data->pre_pwr_change(ufs, dev_req_params); in exynos_ufs_pre_pwr_mode() [all …]
|