Home
last modified time | relevance | path

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

12345678910

/linux-6.12.1/drivers/i2c/busses/
Di2c-mv64xxx.c176 mv64xxx_i2c_prepare_for_io(struct mv64xxx_i2c_data *drv_data, in mv64xxx_i2c_prepare_for_io() argument
181 drv_data->cntl_bits = MV64XXX_I2C_REG_CONTROL_ACK | in mv64xxx_i2c_prepare_for_io()
184 if (!drv_data->atomic) in mv64xxx_i2c_prepare_for_io()
185 drv_data->cntl_bits |= MV64XXX_I2C_REG_CONTROL_INTEN; in mv64xxx_i2c_prepare_for_io()
191 drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; in mv64xxx_i2c_prepare_for_io()
192 drv_data->addr2 = (u32)msg->addr & 0xff; in mv64xxx_i2c_prepare_for_io()
194 drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; in mv64xxx_i2c_prepare_for_io()
195 drv_data->addr2 = 0; in mv64xxx_i2c_prepare_for_io()
209 mv64xxx_i2c_hw_init(struct mv64xxx_i2c_data *drv_data) in mv64xxx_i2c_hw_init() argument
211 if (drv_data->offload_enabled) { in mv64xxx_i2c_hw_init()
[all …]
/linux-6.12.1/drivers/spi/
Dspi-pxa2xx.c171 *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 bool is_mrfld_ssp(const struct driver_data *drv_data) in is_mrfld_ssp() argument
203 return drv_data->ssp_type == MRFLD_SSP; in is_mrfld_ssp()
[all …]
Dspi-pxa2xx-dma.c25 static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data, in pxa2xx_spi_dma_transfer_complete() argument
28 struct spi_message *msg = drv_data->controller->cur_msg; in pxa2xx_spi_dma_transfer_complete()
36 if (atomic_dec_and_test(&drv_data->dma_running)) { in pxa2xx_spi_dma_transfer_complete()
43 error = read_SSSR_bits(drv_data, drv_data->mask_sr) & SSSR_ROR; in pxa2xx_spi_dma_transfer_complete()
46 clear_SSCR1_bits(drv_data, 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()
49 pxa2xx_spi_write(drv_data, SSTO, 0); in pxa2xx_spi_dma_transfer_complete()
53 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_dma_transfer_complete()
57 spi_finalize_current_transfer(drv_data->controller); in pxa2xx_spi_dma_transfer_complete()
[all …]
Dspi-pxa2xx.h69 int (*write)(struct driver_data *drv_data);
70 int (*read)(struct driver_data *drv_data);
71 irqreturn_t (*transfer_handler)(struct driver_data *drv_data);
79 static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, u32 reg) in pxa2xx_spi_read() argument
81 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read()
84 static inline void pxa2xx_spi_write(const struct driver_data *drv_data, u32 reg, u32 val) in pxa2xx_spi_write() argument
86 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write()
91 static inline int pxa25x_ssp_comp(const struct driver_data *drv_data) in pxa25x_ssp_comp() argument
93 switch (drv_data->ssp_type) { in pxa25x_ssp_comp()
103 static inline void clear_SSCR1_bits(const struct driver_data *drv_data, u32 bits) in clear_SSCR1_bits() argument
[all …]
/linux-6.12.1/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.12.1/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.12.1/drivers/ata/
Dpata_ep93xx.c261 static u16 ep93xx_pata_read(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read() argument
265 void __iomem *base = drv_data->ide_base; in ep93xx_pata_read()
266 const struct ata_timing *t = &drv_data->t; in ep93xx_pata_read()
277 ep93xx_pata_rw_end(base, addr, drv_data->iordy, t0, t2, t2i); in ep93xx_pata_read()
282 static u16 ep93xx_pata_read_reg(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read_reg() argument
285 return ep93xx_pata_read(drv_data, addr, true); in ep93xx_pata_read_reg()
289 static u16 ep93xx_pata_read_data(struct ep93xx_pata_data *drv_data, in ep93xx_pata_read_data() argument
292 return ep93xx_pata_read(drv_data, addr, false); in ep93xx_pata_read_data()
295 static void ep93xx_pata_write(struct ep93xx_pata_data *drv_data, in ep93xx_pata_write() argument
299 void __iomem *base = drv_data->ide_base; in ep93xx_pata_write()
[all …]
Dahci_st.c56 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets() local
59 if (drv_data->pwr) { in st_ahci_deassert_resets()
60 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets()
67 if (drv_data->sw_rst) { in st_ahci_deassert_resets()
68 err = reset_control_deassert(drv_data->sw_rst); in st_ahci_deassert_resets()
75 if (drv_data->pwr_rst) { in st_ahci_deassert_resets()
76 err = reset_control_deassert(drv_data->pwr_rst); in st_ahci_deassert_resets()
89 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() local
93 if (drv_data->pwr) { in st_ahci_host_stop()
94 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop()
[all …]
/linux-6.12.1/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.12.1/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.12.1/drivers/soc/qcom/
Dllcc-qcom.c806 static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; variable
821 if (IS_ERR(drv_data)) in llcc_slice_getd()
822 return ERR_CAST(drv_data); in llcc_slice_getd()
824 cfg = drv_data->cfg; in llcc_slice_getd()
825 sz = drv_data->cfg_size; in llcc_slice_getd()
866 if (IS_ERR(drv_data)) in llcc_update_act_ctrl()
867 return PTR_ERR(drv_data); in llcc_update_act_ctrl()
875 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl()
882 ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, in llcc_update_act_ctrl()
887 if (drv_data->version >= LLCC_VERSION_4_1_0_0) { in llcc_update_act_ctrl()
[all …]
/linux-6.12.1/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.12.1/drivers/hid/
Dhid-steelseries.c162 struct steelseries_srws1_data *drv_data = hid_get_drvdata(hid); in steelseries_srws1_led_all_set_brightness() local
164 if (!drv_data) { in steelseries_srws1_led_all_set_brightness()
170 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness()
172 drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; in steelseries_srws1_led_all_set_brightness()
174 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_all_set_brightness()
181 struct steelseries_srws1_data *drv_data; in steelseries_srws1_led_all_get_brightness() local
183 drv_data = hid_get_drvdata(hid); in steelseries_srws1_led_all_get_brightness()
185 if (!drv_data) { in steelseries_srws1_led_all_get_brightness()
190 return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; in steelseries_srws1_led_all_get_brightness()
198 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-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()
125 struct plt_drv_data *drv_data = hid_get_drvdata(hdev); in plantronics_event() local
127 if (drv_data->quirks & PLT_QUIRK_DOUBLE_VOLUME_KEYS) { in plantronics_event()
135 prev_ts = drv_data->last_volume_key_ts; in plantronics_event()
140 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
142 if (drv_data->quirks & PLT_QUIRK_FOLLOWED_OPPOSITE_VOLUME_KEYS) { 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
[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 …]
/linux-6.12.1/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.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()
246 if (drv_data->hsfreq_ranges[i].range_h >= data_rate_mbps) { in rk_dphy_configure()
247 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure()
264 ret = clk_bulk_enable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_on()
278 clk_bulk_disable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_off()
286 return clk_bulk_prepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_init()
293 clk_bulk_unprepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_exit()
[all …]
/linux-6.12.1/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.12.1/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.12.1/drivers/rtc/
Drtc-max77686.c95 const struct max77686_rtc_driver_data *drv_data; member
296 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()
349 unsigned long delay = info->drv_data->delay; in max77686_rtc_update()
357 info->drv_data->map[REG_RTC_UPDATE0], in max77686_rtc_update()
383 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_read_time()
410 info->drv_data->map[REG_RTC_SEC], in max77686_rtc_set_time()
429 const unsigned int *map = info->drv_data->map; in max77686_rtc_read_alarm()
449 if (info->drv_data->alarm_enable_reg) { in max77686_rtc_read_alarm()
[all …]
/linux-6.12.1/sound/soc/amd/acp/
Dacp-mach-common.c1387 struct acp_card_drvdata *drv_data = card->drvdata; in acp_sofdsp_dai_links_create() local
1390 if (drv_data->hs_cpu_id) in acp_sofdsp_dai_links_create()
1392 if (drv_data->bt_cpu_id) in acp_sofdsp_dai_links_create()
1394 if (drv_data->amp_cpu_id) in acp_sofdsp_dai_links_create()
1396 if (drv_data->dmic_cpu_id) in acp_sofdsp_dai_links_create()
1403 if (drv_data->hs_cpu_id == I2S_SP) { in acp_sofdsp_dai_links_create()
1414 if (!drv_data->hs_codec_id) { in acp_sofdsp_dai_links_create()
1419 if (drv_data->hs_codec_id == RT5682) { in acp_sofdsp_dai_links_create()
1425 if (drv_data->hs_codec_id == RT5682S) { in acp_sofdsp_dai_links_create()
1431 if (drv_data->hs_codec_id == NAU8821) { in acp_sofdsp_dai_links_create()
[all …]

12345678910