Home
last modified time | relevance | path

Searched refs:ddata (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.12.1/drivers/bus/
Dti-sysc.c69 struct sysc *ddata; member
170 static void sysc_parse_dts_quirks(struct sysc *ddata, struct device_node *np,
172 static int sysc_reset(struct sysc *ddata);
174 static void sysc_write(struct sysc *ddata, int offset, u32 value) in sysc_write() argument
176 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write()
177 writew_relaxed(value & 0xffff, ddata->module_va + offset); in sysc_write()
180 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_write()
181 offset == ddata->offsets[SYSC_REVISION]) { in sysc_write()
184 writew_relaxed(hi, ddata->module_va + offset + 4); in sysc_write()
190 writel_relaxed(value, ddata->module_va + offset); in sysc_write()
[all …]
/linux-6.12.1/drivers/phy/motorola/
Dphy-mapphone-mdm6600.c110 struct phy_mdm6600 *ddata = phy_get_drvdata(x); in phy_mdm6600_init() local
111 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_init()
113 if (!ddata->enabled) in phy_mdm6600_init()
123 struct phy_mdm6600 *ddata = phy_get_drvdata(x); in phy_mdm6600_power_on() local
124 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_on()
126 if (!ddata->enabled) in phy_mdm6600_power_on()
140 struct phy_mdm6600 *ddata = phy_get_drvdata(x); in phy_mdm6600_power_off() local
141 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_off()
144 if (!ddata->enabled) in phy_mdm6600_power_off()
151 dev_warn(ddata->dev, "%s: phy_pm_runtime_get: %i\n", in phy_mdm6600_power_off()
[all …]
Dphy-cpcap-usb.c131 static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata) in cpcap_usb_vbus_valid() argument
135 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
139 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
167 static int cpcap_phy_get_ints_state(struct cpcap_phy_ddata *ddata, in cpcap_phy_get_ints_state() argument
172 error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); in cpcap_phy_get_ints_state()
180 error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); in cpcap_phy_get_ints_state()
189 error = regmap_read(ddata->reg, CPCAP_REG_INTS4, &val); in cpcap_phy_get_ints_state()
199 static int cpcap_usb_set_uart_mode(struct cpcap_phy_ddata *ddata);
200 static int cpcap_usb_set_usb_mode(struct cpcap_phy_ddata *ddata);
202 static void cpcap_usb_try_musb_mailbox(struct cpcap_phy_ddata *ddata, in cpcap_usb_try_musb_mailbox() argument
[all …]
/linux-6.12.1/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-dsi-cm.c84 static int _dsicm_enable_te(struct panel_drv_data *ddata, bool enable);
86 static int dsicm_panel_reset(struct panel_drv_data *ddata);
90 static void hw_guard_start(struct panel_drv_data *ddata, int guard_msec) in hw_guard_start() argument
92 ddata->hw_guard_wait = msecs_to_jiffies(guard_msec); in hw_guard_start()
93 ddata->hw_guard_end = jiffies + ddata->hw_guard_wait; in hw_guard_start()
96 static void hw_guard_wait(struct panel_drv_data *ddata) in hw_guard_wait() argument
98 unsigned long wait = ddata->hw_guard_end - jiffies; in hw_guard_wait()
100 if ((long)wait > 0 && time_before_eq(wait, ddata->hw_guard_wait)) { in hw_guard_wait()
106 static int dsicm_dcs_read_1(struct panel_drv_data *ddata, u8 dcs_cmd, u8 *data) in dsicm_dcs_read_1() argument
108 struct omap_dss_device *in = ddata->in; in dsicm_dcs_read_1()
[all …]
Dpanel-sony-acx565akm.c104 static void acx565akm_transfer(struct panel_drv_data *ddata, int cmd, in acx565akm_transfer() argument
111 BUG_ON(ddata->spi == NULL); in acx565akm_transfer()
149 r = spi_sync(ddata->spi, &m); in acx565akm_transfer()
151 dev_dbg(&ddata->spi->dev, "spi_sync %d\n", r); in acx565akm_transfer()
154 static inline void acx565akm_cmd(struct panel_drv_data *ddata, int cmd) in acx565akm_cmd() argument
156 acx565akm_transfer(ddata, cmd, NULL, 0, NULL, 0); in acx565akm_cmd()
159 static inline void acx565akm_write(struct panel_drv_data *ddata, in acx565akm_write() argument
162 acx565akm_transfer(ddata, reg, buf, len, NULL, 0); in acx565akm_write()
165 static inline void acx565akm_read(struct panel_drv_data *ddata, in acx565akm_read() argument
168 acx565akm_transfer(ddata, reg, NULL, 0, buf, len); in acx565akm_read()
[all …]
Dpanel-tpo-td028ttec1.c54 static int jbt_ret_write_0(struct panel_drv_data *ddata, u8 reg) in jbt_ret_write_0() argument
59 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0()
62 dev_err(&ddata->spi_dev->dev, in jbt_ret_write_0()
68 static int jbt_reg_write_1(struct panel_drv_data *ddata, u8 reg, u8 data) in jbt_reg_write_1() argument
75 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1()
78 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_1()
84 static int jbt_reg_write_2(struct panel_drv_data *ddata, u8 reg, u16 data) in jbt_reg_write_2() argument
93 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_2()
97 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_2()
159 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_connect() local
[all …]
Dpanel-tpo-td043mtea1.c152 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror() local
154 ddata->hmirror = enable; in tpo_td043_set_hmirror()
155 return tpo_td043_write_mirror(ddata->spi, ddata->hmirror, in tpo_td043_set_hmirror()
156 ddata->vmirror); in tpo_td043_set_hmirror()
161 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror() local
163 return ddata->hmirror; in tpo_td043_get_hmirror()
169 struct panel_drv_data *ddata = dev_get_drvdata(dev); in tpo_td043_vmirror_show() local
171 return sysfs_emit(buf, "%d\n", ddata->vmirror); in tpo_td043_vmirror_show()
177 struct panel_drv_data *ddata = dev_get_drvdata(dev); in tpo_td043_vmirror_store() local
187 ret = tpo_td043_write_mirror(ddata->spi, ddata->hmirror, val); in tpo_td043_vmirror_store()
[all …]
Dpanel-sharp-ls037v7dw01.c59 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_connect() local
60 struct omap_dss_device *in = ddata->in; in sharp_ls_connect()
70 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_disconnect() local
71 struct omap_dss_device *in = ddata->in; in sharp_ls_disconnect()
81 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_enable() local
82 struct omap_dss_device *in = ddata->in; in sharp_ls_enable()
91 if (ddata->data_lines) in sharp_ls_enable()
92 in->ops.dpi->set_data_lines(in, ddata->data_lines); in sharp_ls_enable()
93 in->ops.dpi->set_timings(in, &ddata->videomode); in sharp_ls_enable()
95 if (ddata->vcc) { in sharp_ls_enable()
[all …]
Dconnector-hdmi.c52 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_connect() local
53 struct omap_dss_device *in = ddata->in; in hdmic_connect()
55 dev_dbg(ddata->dev, "connect\n"); in hdmic_connect()
65 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disconnect() local
66 struct omap_dss_device *in = ddata->in; in hdmic_disconnect()
68 dev_dbg(ddata->dev, "disconnect\n"); in hdmic_disconnect()
78 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_enable() local
79 struct omap_dss_device *in = ddata->in; in hdmic_enable()
82 dev_dbg(ddata->dev, "enable\n"); in hdmic_enable()
90 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable()
[all …]
Dconnector-analog-tv.c47 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_connect() local
48 struct omap_dss_device *in = ddata->in; in tvc_connect()
50 dev_dbg(ddata->dev, "connect\n"); in tvc_connect()
60 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect() local
61 struct omap_dss_device *in = ddata->in; in tvc_disconnect()
63 dev_dbg(ddata->dev, "disconnect\n"); in tvc_disconnect()
73 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_enable() local
74 struct omap_dss_device *in = ddata->in; in tvc_enable()
77 dev_dbg(ddata->dev, "enable\n"); in tvc_enable()
85 in->ops.atv->set_timings(in, &ddata->timings); in tvc_enable()
[all …]
Dencoder-tfp410.c34 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect() local
35 struct omap_dss_device *in = ddata->in; in tfp410_connect()
54 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect() local
55 struct omap_dss_device *in = ddata->in; in tfp410_disconnect()
68 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
73 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable() local
74 struct omap_dss_device *in = ddata->in; in tfp410_enable()
83 in->ops.dpi->set_timings(in, &ddata->timings); in tfp410_enable()
84 if (ddata->data_lines) in tfp410_enable()
85 in->ops.dpi->set_data_lines(in, ddata->data_lines); in tfp410_enable()
[all …]
Dencoder-tpd12s015.c35 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_connect() local
36 struct omap_dss_device *in = ddata->in; in tpd_connect()
46 if (ddata->ct_cp_hpd_gpio) { in tpd_connect()
47 gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 1); in tpd_connect()
58 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_disconnect() local
59 struct omap_dss_device *in = ddata->in; in tpd_disconnect()
66 gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 0); in tpd_disconnect()
71 in->ops.hdmi->disconnect(in, &ddata->dssdev); in tpd_disconnect()
76 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_enable() local
77 struct omap_dss_device *in = ddata->in; in tpd_enable()
[all …]
Dpanel-dpi.c33 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_connect() local
34 struct omap_dss_device *in = ddata->in; in panel_dpi_connect()
44 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disconnect() local
45 struct omap_dss_device *in = ddata->in; in panel_dpi_disconnect()
55 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_enable() local
56 struct omap_dss_device *in = ddata->in; in panel_dpi_enable()
65 if (ddata->data_lines) in panel_dpi_enable()
66 in->ops.dpi->set_data_lines(in, ddata->data_lines); in panel_dpi_enable()
67 in->ops.dpi->set_timings(in, &ddata->videomode); in panel_dpi_enable()
73 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable()
[all …]
/linux-6.12.1/drivers/gpu/drm/panel/
Dpanel-dsi-cm.c77 static void dsicm_bl_power(struct panel_drv_data *ddata, bool enable) in dsicm_bl_power() argument
81 if (ddata->bldev) in dsicm_bl_power()
82 backlight = ddata->bldev; in dsicm_bl_power()
83 else if (ddata->extbldev) in dsicm_bl_power()
84 backlight = ddata->extbldev; in dsicm_bl_power()
94 static void hw_guard_start(struct panel_drv_data *ddata, int guard_msec) in hw_guard_start() argument
96 ddata->hw_guard_wait = msecs_to_jiffies(guard_msec); in hw_guard_start()
97 ddata->hw_guard_end = jiffies + ddata->hw_guard_wait; in hw_guard_start()
100 static void hw_guard_wait(struct panel_drv_data *ddata) in hw_guard_wait() argument
102 unsigned long wait = ddata->hw_guard_end - jiffies; in hw_guard_wait()
[all …]
/linux-6.12.1/drivers/power/supply/
Dcpcap-charger.c175 static int cpcap_charger_get_charge_voltage(struct cpcap_charger_ddata *ddata) in cpcap_charger_get_charge_voltage() argument
180 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage()
183 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage()
191 static int cpcap_charger_get_charge_current(struct cpcap_charger_ddata *ddata) in cpcap_charger_get_charge_current() argument
196 channel = ddata->channels[CPCAP_CHARGER_IIO_CHRG_CURRENT]; in cpcap_charger_get_charge_current()
199 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_current()
211 struct cpcap_charger_ddata *ddata = dev_get_drvdata(psy->dev.parent); in cpcap_charger_get_property() local
215 val->intval = ddata->status; in cpcap_charger_get_property()
218 val->intval = ddata->limit_current; in cpcap_charger_get_property()
221 val->intval = ddata->voltage; in cpcap_charger_get_property()
[all …]
Dcpcap-battery.c147 cpcap_battery_get_state(struct cpcap_battery_ddata *ddata, in cpcap_battery_get_state() argument
153 return &ddata->state[state]; in cpcap_battery_get_state()
157 cpcap_battery_latest(struct cpcap_battery_ddata *ddata) in cpcap_battery_latest() argument
159 return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_LATEST); in cpcap_battery_latest()
163 cpcap_battery_previous(struct cpcap_battery_ddata *ddata) in cpcap_battery_previous() argument
165 return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_PREVIOUS); in cpcap_battery_previous()
169 cpcap_battery_get_empty(struct cpcap_battery_ddata *ddata) in cpcap_battery_get_empty() argument
171 return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_EMPTY); in cpcap_battery_get_empty()
175 cpcap_battery_get_full(struct cpcap_battery_ddata *ddata) in cpcap_battery_get_full() argument
177 return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_FULL); in cpcap_battery_get_full()
[all …]
/linux-6.12.1/drivers/char/hw_random/
Domap3-rom-rng.c39 struct omap_rom_rng *ddata; in omap3_rom_rng_read() local
43 ddata = (struct omap_rom_rng *)rng->priv; in omap3_rom_rng_read()
45 r = pm_runtime_get_sync(ddata->dev); in omap3_rom_rng_read()
47 pm_runtime_put_noidle(ddata->dev); in omap3_rom_rng_read()
53 r = ddata->rom_rng_call(ptr, 4, RNG_GEN_HW); in omap3_rom_rng_read()
59 pm_runtime_mark_last_busy(ddata->dev); in omap3_rom_rng_read()
60 pm_runtime_put_autosuspend(ddata->dev); in omap3_rom_rng_read()
67 struct omap_rom_rng *ddata; in omap_rom_rng_runtime_suspend() local
70 ddata = dev_get_drvdata(dev); in omap_rom_rng_runtime_suspend()
72 r = ddata->rom_rng_call(0, 0, RNG_RESET); in omap_rom_rng_runtime_suspend()
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-siox.c29 struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); in gpio_siox_set_data() local
31 mutex_lock(&ddata->lock); in gpio_siox_set_data()
32 buf[0] = ddata->setdata[0]; in gpio_siox_set_data()
33 mutex_unlock(&ddata->lock); in gpio_siox_set_data()
40 struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); in gpio_siox_get_data() local
44 mutex_lock(&ddata->lock); in gpio_siox_get_data()
46 raw_spin_lock_irq(&ddata->irqlock); in gpio_siox_get_data()
52 ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); in gpio_siox_get_data()
53 u32 irq_type = ddata->irq_type[offset]; in gpio_siox_get_data()
58 ddata->irq_status |= 1 << offset; in gpio_siox_get_data()
[all …]
/linux-6.12.1/drivers/pwm/
Dpwm-sifive.c62 struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); in pwm_sifive_request() local
64 mutex_lock(&ddata->lock); in pwm_sifive_request()
65 ddata->user_count++; in pwm_sifive_request()
66 mutex_unlock(&ddata->lock); in pwm_sifive_request()
73 struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); in pwm_sifive_free() local
75 mutex_lock(&ddata->lock); in pwm_sifive_free()
76 ddata->user_count--; in pwm_sifive_free()
77 mutex_unlock(&ddata->lock); in pwm_sifive_free()
81 static void pwm_sifive_update_clock(struct pwm_sifive_ddata *ddata, in pwm_sifive_update_clock() argument
95 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock()
[all …]
/linux-6.12.1/drivers/remoteproc/
Dst_remoteproc.c77 struct st_rproc *ddata = rproc->priv; in st_rproc_kick() local
85 ret = mbox_send_message(ddata->mbox_chan[vqid * MBOX_MAX + MBOX_TX], in st_rproc_kick()
167 struct st_rproc *ddata = rproc->priv; in st_rproc_start() local
170 regmap_update_bits(ddata->boot_base, ddata->boot_offset, in st_rproc_start()
171 ddata->config->bootaddr_mask, rproc->bootaddr); in st_rproc_start()
173 err = clk_enable(ddata->clk); in st_rproc_start()
179 if (ddata->config->sw_reset) { in st_rproc_start()
180 err = reset_control_deassert(ddata->sw_reset); in st_rproc_start()
187 if (ddata->config->pwr_reset) { in st_rproc_start()
188 err = reset_control_deassert(ddata->pwr_reset); in st_rproc_start()
[all …]
Dstm32_rproc.c99 struct stm32_rproc *ddata = rproc->priv; in stm32_rproc_pa_to_da() local
102 for (i = 0; i < ddata->nb_rmems; i++) { in stm32_rproc_pa_to_da()
103 p_mem = &ddata->rmems[i]; in stm32_rproc_pa_to_da()
146 struct stm32_rproc *ddata) in stm32_rproc_of_memory_translations() argument
190 ddata->rmems = p_mems; in stm32_rproc_of_memory_translations()
191 ddata->nb_rmems = cnt; in stm32_rproc_of_memory_translations()
200 struct stm32_rproc *ddata = rproc->priv; in stm32_rproc_mbox_idx() local
203 for (i = 0; i < ARRAY_SIZE(ddata->mb); i++) { in stm32_rproc_mbox_idx()
204 if (!strncmp(ddata->mb[i].name, name, strlen(name))) in stm32_rproc_mbox_idx()
311 struct stm32_rproc *ddata = rproc->priv; in stm32_rproc_mb_callback() local
[all …]
/linux-6.12.1/drivers/watchdog/
Dmpc8xxx_wdt.c72 static void mpc8xxx_wdt_keepalive(struct mpc8xxx_wdt_ddata *ddata) in mpc8xxx_wdt_keepalive() argument
75 spin_lock(&ddata->lock); in mpc8xxx_wdt_keepalive()
76 out_be16(&ddata->base->swsrr, 0x556c); in mpc8xxx_wdt_keepalive()
77 out_be16(&ddata->base->swsrr, 0xaa39); in mpc8xxx_wdt_keepalive()
78 spin_unlock(&ddata->lock); in mpc8xxx_wdt_keepalive()
83 struct mpc8xxx_wdt_ddata *ddata = in mpc8xxx_wdt_start() local
85 u32 tmp = in_be32(&ddata->base->swcrr); in mpc8xxx_wdt_start()
89 tmp |= SWCRR_SWEN | SWCRR_SWPR | (ddata->swtc << 16); in mpc8xxx_wdt_start()
94 out_be32(&ddata->base->swcrr, tmp); in mpc8xxx_wdt_start()
96 tmp = in_be32(&ddata->base->swcrr); in mpc8xxx_wdt_start()
[all …]
/linux-6.12.1/drivers/mfd/
Dstm32-timers.c55 struct stm32_timers *ddata = dev_get_drvdata(dev); in stm32_timers_dma_burst_read() local
57 struct regmap *regmap = ddata->regmap; in stm32_timers_dma_burst_read()
58 struct stm32_timers_dma *dma = &ddata->dma; in stm32_timers_dma_burst_read()
160 static void stm32_timers_get_arr_size(struct stm32_timers *ddata) in stm32_timers_get_arr_size() argument
165 regmap_read(ddata->regmap, TIM_ARR, &arr); in stm32_timers_get_arr_size()
171 regmap_write(ddata->regmap, TIM_ARR, ~0L); in stm32_timers_get_arr_size()
172 regmap_read(ddata->regmap, TIM_ARR, &ddata->max_arr); in stm32_timers_get_arr_size()
173 regmap_write(ddata->regmap, TIM_ARR, arr); in stm32_timers_get_arr_size()
177 struct stm32_timers *ddata) in stm32_timers_dma_probe() argument
183 init_completion(&ddata->dma.completion); in stm32_timers_dma_probe()
[all …]
Datmel-flexcom.c40 struct atmel_flexcom *ddata; in atmel_flexcom_probe() local
43 ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); in atmel_flexcom_probe()
44 if (!ddata) in atmel_flexcom_probe()
47 platform_set_drvdata(pdev, ddata); in atmel_flexcom_probe()
49 err = of_property_read_u32(np, "atmel,flexcom-mode", &ddata->opmode); in atmel_flexcom_probe()
53 if (ddata->opmode < ATMEL_FLEXCOM_MODE_USART || in atmel_flexcom_probe()
54 ddata->opmode > ATMEL_FLEXCOM_MODE_TWI) in atmel_flexcom_probe()
57 ddata->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in atmel_flexcom_probe()
58 if (IS_ERR(ddata->base)) in atmel_flexcom_probe()
59 return PTR_ERR(ddata->base); in atmel_flexcom_probe()
[all …]
/linux-6.12.1/drivers/w1/masters/
Dw1-gpio.c28 struct w1_gpio_ddata *ddata = data; in w1_gpio_set_pullup() local
31 ddata->pullup_duration = delay; in w1_gpio_set_pullup()
33 if (ddata->pullup_duration) { in w1_gpio_set_pullup()
38 gpiod_set_raw_value(ddata->gpiod, 1); in w1_gpio_set_pullup()
39 msleep(ddata->pullup_duration); in w1_gpio_set_pullup()
44 gpiod_set_value(ddata->gpiod, 1); in w1_gpio_set_pullup()
46 ddata->pullup_duration = 0; in w1_gpio_set_pullup()
54 struct w1_gpio_ddata *ddata = data; in w1_gpio_write_bit() local
56 gpiod_set_value(ddata->gpiod, bit); in w1_gpio_write_bit()
61 struct w1_gpio_ddata *ddata = data; in w1_gpio_read_bit() local
[all …]

1234