Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/drivers/i2c/busses/
Di2c-mv64xxx.c177 mv64xxx_i2c_prepare_for_io(struct mv64xxx_i2c_data *drv_data, in mv64xxx_i2c_prepare_for_io() argument
182 drv_data->cntl_bits = MV64XXX_I2C_REG_CONTROL_ACK | in mv64xxx_i2c_prepare_for_io()
185 if (!drv_data->atomic) in mv64xxx_i2c_prepare_for_io()
186 drv_data->cntl_bits |= MV64XXX_I2C_REG_CONTROL_INTEN; in mv64xxx_i2c_prepare_for_io()
192 drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; in mv64xxx_i2c_prepare_for_io()
193 drv_data->addr2 = (u32)msg->addr & 0xff; in mv64xxx_i2c_prepare_for_io()
195 drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; in mv64xxx_i2c_prepare_for_io()
196 drv_data->addr2 = 0; in mv64xxx_i2c_prepare_for_io()
210 mv64xxx_i2c_hw_init(struct mv64xxx_i2c_data *drv_data) in mv64xxx_i2c_hw_init() argument
212 if (drv_data->offload_enabled) { in mv64xxx_i2c_hw_init()
[all …]
/linux-6.1.9/drivers/nfc/nfcmrvl/
Dusb.c43 static int nfcmrvl_inc_tx(struct nfcmrvl_usb_drv_data *drv_data) in nfcmrvl_inc_tx() argument
48 spin_lock_irqsave(&drv_data->txlock, flags); in nfcmrvl_inc_tx()
49 rv = test_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); in nfcmrvl_inc_tx()
51 drv_data->tx_in_flight++; in nfcmrvl_inc_tx()
52 spin_unlock_irqrestore(&drv_data->txlock, flags); in nfcmrvl_inc_tx()
59 struct nfcmrvl_usb_drv_data *drv_data = urb->context; in nfcmrvl_bulk_complete() local
62 dev_dbg(&drv_data->udev->dev, "urb %p status %d count %d\n", in nfcmrvl_bulk_complete()
65 if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) in nfcmrvl_bulk_complete()
71 skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, in nfcmrvl_bulk_complete()
74 nfc_err(&drv_data->udev->dev, "failed to alloc mem\n"); in nfcmrvl_bulk_complete()
[all …]
Dspi.c29 struct nfcmrvl_spi_drv_data *drv_data = drv_data_ptr; in nfcmrvl_spi_int_irq_thread_fn() local
36 if (test_and_clear_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags)) { in nfcmrvl_spi_int_irq_thread_fn()
37 complete(&drv_data->handshake_completion); in nfcmrvl_spi_int_irq_thread_fn()
43 skb = nci_spi_read(drv_data->nci_spi); in nfcmrvl_spi_int_irq_thread_fn()
45 nfc_err(&drv_data->spi->dev, "failed to read spi packet"); in nfcmrvl_spi_int_irq_thread_fn()
49 if (nfcmrvl_nci_recv_frame(drv_data->priv, skb) < 0) in nfcmrvl_spi_int_irq_thread_fn()
50 nfc_err(&drv_data->spi->dev, "corrupted RX packet"); in nfcmrvl_spi_int_irq_thread_fn()
68 struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; in nfcmrvl_spi_nci_send() local
72 reinit_completion(&drv_data->handshake_completion); in nfcmrvl_spi_nci_send()
73 set_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags); in nfcmrvl_spi_nci_send()
[all …]
Di2c.c25 static int nfcmrvl_i2c_read(struct nfcmrvl_i2c_drv_data *drv_data, in nfcmrvl_i2c_read() argument
32 ret = i2c_master_recv(drv_data->i2c, (u8 *)&nci_hdr, NCI_CTRL_HDR_SIZE); in nfcmrvl_i2c_read()
34 nfc_err(&drv_data->i2c->dev, "cannot read NCI header\n"); in nfcmrvl_i2c_read()
38 *skb = nci_skb_alloc(drv_data->priv->ndev, in nfcmrvl_i2c_read()
48 ret = i2c_master_recv(drv_data->i2c, in nfcmrvl_i2c_read()
53 nfc_err(&drv_data->i2c->dev, in nfcmrvl_i2c_read()
66 struct nfcmrvl_i2c_drv_data *drv_data = drv_data_ptr; in nfcmrvl_i2c_int_irq_thread_fn() local
70 if (!drv_data->priv) in nfcmrvl_i2c_int_irq_thread_fn()
73 if (test_bit(NFCMRVL_PHY_ERROR, &drv_data->priv->flags)) in nfcmrvl_i2c_int_irq_thread_fn()
76 ret = nfcmrvl_i2c_read(drv_data, &skb); in nfcmrvl_i2c_int_irq_thread_fn()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-pxa2xx.c172 *lpss_get_config(const struct driver_data *drv_data) in lpss_get_config() argument
174 return &lpss_platforms[drv_data->ssp_type - LPSS_LPT_SSP]; in lpss_get_config()
177 static bool is_lpss_ssp(const struct driver_data *drv_data) in is_lpss_ssp() argument
179 switch (drv_data->ssp_type) { in is_lpss_ssp()
192 static bool is_quark_x1000_ssp(const struct driver_data *drv_data) in is_quark_x1000_ssp() argument
194 return drv_data->ssp_type == QUARK_X1000_SSP; in is_quark_x1000_ssp()
197 static bool is_mmp2_ssp(const struct driver_data *drv_data) in is_mmp2_ssp() argument
199 return drv_data->ssp_type == MMP2_SSP; in is_mmp2_ssp()
202 static bool is_mrfld_ssp(const struct driver_data *drv_data) in is_mrfld_ssp() argument
204 return drv_data->ssp_type == MRFLD_SSP; in is_mrfld_ssp()
[all …]
Dspi-pxa2xx-dma.c20 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 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()
52 spi_finalize_current_transfer(drv_data->controller); in pxa2xx_spi_dma_transfer_complete()
[all …]
Dspi-pxa2xx.h49 int (*write)(struct driver_data *drv_data);
50 int (*read)(struct driver_data *drv_data);
51 irqreturn_t (*transfer_handler)(struct driver_data *drv_data);
71 static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, u32 reg) in pxa2xx_spi_read() argument
73 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read()
76 static inline void pxa2xx_spi_write(const struct driver_data *drv_data, u32 reg, u32 val) in pxa2xx_spi_write() argument
78 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write()
83 static inline int pxa25x_ssp_comp(const struct driver_data *drv_data) in pxa25x_ssp_comp() argument
85 switch (drv_data->ssp_type) { in pxa25x_ssp_comp()
95 static inline void clear_SSCR1_bits(const struct driver_data *drv_data, u32 bits) in clear_SSCR1_bits() argument
[all …]
/linux-6.1.9/sound/soc/xilinx/
Dxlnx_i2s.c41 struct xlnx_i2s_drv_data *drv_data = snd_soc_dai_get_drvdata(cpu_dai); in xlnx_i2s_set_sclkout_div() local
46 drv_data->sysclk = 0; in xlnx_i2s_set_sclkout_div()
48 writel(div, drv_data->base + I2S_I2STIM_OFFSET); in xlnx_i2s_set_sclkout_div()
56 struct xlnx_i2s_drv_data *drv_data = snd_soc_dai_get_drvdata(dai); in xlnx_i2s_set_sysclk() local
58 drv_data->sysclk = freq; in xlnx_i2s_set_sysclk()
62 if (drv_data->is_32bit_lrclk) in xlnx_i2s_set_sysclk()
65 bits_per_sample = drv_data->data_width; in xlnx_i2s_set_sysclk()
67 drv_data->ratnum.num = freq / (bits_per_sample * drv_data->channels) / 2; in xlnx_i2s_set_sysclk()
68 drv_data->ratnum.den_step = 1; in xlnx_i2s_set_sysclk()
69 drv_data->ratnum.den_min = 1; in xlnx_i2s_set_sysclk()
[all …]
/linux-6.1.9/drivers/ata/
Dpata_ep93xx.c262 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 …]
Dahci_st.c57 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 …]
/linux-6.1.9/drivers/crypto/chelsio/
Dchcr_core.c29 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 …]
/linux-6.1.9/drivers/watchdog/
Dmenf21bmc_wdt.c60 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 …]
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()
92 return regmap_update_bits(wdt->rmap, wdt->drv_data->reg_cnfg_glbl3, in max77620_wdt_ping()
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()
172 wdt->drv_data = (const struct max77620_variant *) id->driver_data; in max77620_wdt_probe()
190 ret = regmap_update_bits(wdt->rmap, wdt->drv_data->reg_onoff_cnfg2, in max77620_wdt_probe()
[all …]
/linux-6.1.9/drivers/hid/
Dhid-steelseries.c142 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 …]
Dhid-lg4ff.c301 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 …]
Dhid-lg.c433 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()
648 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapping() local
655 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
665 if ((drv_data->quirks & LG_IGNORE_DOUBLED_WHEEL) && in lg_input_mapping()
669 if ((drv_data->quirks & LG_EXPANDED_KEYMAP) && in lg_input_mapping()
685 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapped() local
687 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
691 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
[all …]
Dhid-plantronics.c57 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 …]
/linux-6.1.9/drivers/soc/qcom/
Dllcc-qcom.c446 static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; variable
461 if (IS_ERR(drv_data)) in llcc_slice_getd()
462 return ERR_CAST(drv_data); in llcc_slice_getd()
464 cfg = drv_data->cfg; in llcc_slice_getd()
465 sz = drv_data->cfg_size; in llcc_slice_getd()
504 if (IS_ERR(drv_data)) in llcc_update_act_ctrl()
505 return PTR_ERR(drv_data); in llcc_update_act_ctrl()
512 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl()
519 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl()
524 ret = regmap_read_poll_timeout(drv_data->bcast_regmap, status_reg, in llcc_update_act_ctrl()
[all …]
/linux-6.1.9/drivers/hwmon/
Dmenf21bmc_hwmon.c56 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 …]
/linux-6.1.9/drivers/phy/rockchip/
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
146 const struct dphy_reg *reg = &drv_data->grf_regs[index]; in write_grf_reg()
179 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_ths_settle() local
182 val = readl(priv->phy_base + drv_data->ths_settle_offset + offset); in rockchip_inno_csidphy_ths_settle()
185 writel(val, priv->phy_base + drv_data->ths_settle_offset + offset); in rockchip_inno_csidphy_ths_settle()
192 const struct dphy_drv_data *drv_data = priv->drv_data; in rockchip_inno_csidphy_configure() local
208 for (i = 0; i < drv_data->num_hsfreq_ranges; i++) { in rockchip_inno_csidphy_configure()
209 if (drv_data->hsfreq_ranges[i].range_h >= data_rate_mbps) { in rockchip_inno_csidphy_configure()
210 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rockchip_inno_csidphy_configure()
[all …]
Dphy-rockchip-dphy-rx0.c154 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 …]
/linux-6.1.9/drivers/clk/
Dclk-max77686.c150 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 …]
/linux-6.1.9/drivers/pinctrl/uniphier/
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 …]
/linux-6.1.9/sound/soc/amd/acp/
Dacp-mach-common.c577 struct acp_card_drvdata *drv_data = card->drvdata; in acp_sofdsp_dai_links_create() local
580 if (drv_data->hs_cpu_id) in acp_sofdsp_dai_links_create()
582 if (drv_data->amp_cpu_id) in acp_sofdsp_dai_links_create()
584 if (drv_data->dmic_cpu_id) in acp_sofdsp_dai_links_create()
591 if (drv_data->hs_cpu_id == I2S_SP) { in acp_sofdsp_dai_links_create()
602 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create()
607 if (drv_data->hs_codec_id == RT5682) { in acp_sofdsp_dai_links_create()
613 if (drv_data->hs_codec_id == RT5682S) { in acp_sofdsp_dai_links_create()
622 if (drv_data->hs_cpu_id == I2S_HS) { in acp_sofdsp_dai_links_create()
633 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create()
[all …]
/linux-6.1.9/drivers/soc/mediatek/
Dmtk-mmsys.c31 .drv_data = {
44 .drv_data = {
55 .drv_data = {
66 .drv_data = {
79 .drv_data = {
93 .drv_data = {
107 .drv_data = {
121 .drv_data = {
135 .drv_data = {
154 .drv_data = {
[all …]

123456789