/linux-6.1.9/drivers/bus/ |
D | ti-sysc.c | 57 struct sysc *ddata; member 158 static void sysc_parse_dts_quirks(struct sysc *ddata, struct device_node *np, 160 static int sysc_reset(struct sysc *ddata); 162 static void sysc_write(struct sysc *ddata, int offset, u32 value) in sysc_write() argument 164 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write() 165 writew_relaxed(value & 0xffff, ddata->module_va + offset); in sysc_write() 168 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_write() 169 offset == ddata->offsets[SYSC_REVISION]) { in sysc_write() 172 writew_relaxed(hi, ddata->module_va + offset + 4); in sysc_write() 178 writel_relaxed(value, ddata->module_va + offset); in sysc_write() [all …]
|
/linux-6.1.9/drivers/phy/motorola/ |
D | phy-mapphone-mdm6600.c | 110 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() 127 if (!ddata->enabled) in phy_mdm6600_power_on() 130 error = pinctrl_pm_select_default_state(ddata->dev); in phy_mdm6600_power_on() 132 dev_warn(ddata->dev, "%s: error with default_state: %i\n", in phy_mdm6600_power_on() 146 struct phy_mdm6600 *ddata = phy_get_drvdata(x); in phy_mdm6600_power_off() local 147 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_off() [all …]
|
D | phy-cpcap-usb.c | 132 static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata) in cpcap_usb_vbus_valid() argument 136 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 140 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid() 168 static int cpcap_phy_get_ints_state(struct cpcap_phy_ddata *ddata, in cpcap_phy_get_ints_state() argument 173 error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); in cpcap_phy_get_ints_state() 181 error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); in cpcap_phy_get_ints_state() 190 error = regmap_read(ddata->reg, CPCAP_REG_INTS4, &val); in cpcap_phy_get_ints_state() 200 static int cpcap_usb_set_uart_mode(struct cpcap_phy_ddata *ddata); 201 static int cpcap_usb_set_usb_mode(struct cpcap_phy_ddata *ddata); 203 static void cpcap_usb_try_musb_mailbox(struct cpcap_phy_ddata *ddata, in cpcap_usb_try_musb_mailbox() argument [all …]
|
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-dsi-cm.c | 84 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 …]
|
D | panel-sony-acx565akm.c | 105 static void acx565akm_transfer(struct panel_drv_data *ddata, int cmd, in acx565akm_transfer() argument 112 BUG_ON(ddata->spi == NULL); in acx565akm_transfer() 150 r = spi_sync(ddata->spi, &m); in acx565akm_transfer() 152 dev_dbg(&ddata->spi->dev, "spi_sync %d\n", r); in acx565akm_transfer() 155 static inline void acx565akm_cmd(struct panel_drv_data *ddata, int cmd) in acx565akm_cmd() argument 157 acx565akm_transfer(ddata, cmd, NULL, 0, NULL, 0); in acx565akm_cmd() 160 static inline void acx565akm_write(struct panel_drv_data *ddata, in acx565akm_write() argument 163 acx565akm_transfer(ddata, reg, buf, len, NULL, 0); in acx565akm_write() 166 static inline void acx565akm_read(struct panel_drv_data *ddata, in acx565akm_read() argument 169 acx565akm_transfer(ddata, reg, NULL, 0, buf, len); in acx565akm_read() [all …]
|
D | panel-tpo-td028ttec1.c | 55 static int jbt_ret_write_0(struct panel_drv_data *ddata, u8 reg) in jbt_ret_write_0() argument 60 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0() 63 dev_err(&ddata->spi_dev->dev, in jbt_ret_write_0() 69 static int jbt_reg_write_1(struct panel_drv_data *ddata, u8 reg, u8 data) in jbt_reg_write_1() argument 76 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1() 79 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_1() 85 static int jbt_reg_write_2(struct panel_drv_data *ddata, u8 reg, u16 data) in jbt_reg_write_2() argument 94 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_2() 98 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_2() 160 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_connect() local [all …]
|
D | panel-tpo-td043mtea1.c | 153 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror() local 155 ddata->hmirror = enable; in tpo_td043_set_hmirror() 156 return tpo_td043_write_mirror(ddata->spi, ddata->hmirror, in tpo_td043_set_hmirror() 157 ddata->vmirror); in tpo_td043_set_hmirror() 162 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror() local 164 return ddata->hmirror; in tpo_td043_get_hmirror() 170 struct panel_drv_data *ddata = dev_get_drvdata(dev); in tpo_td043_vmirror_show() local 172 return sysfs_emit(buf, "%d\n", ddata->vmirror); in tpo_td043_vmirror_show() 178 struct panel_drv_data *ddata = dev_get_drvdata(dev); in tpo_td043_vmirror_store() local 188 ret = tpo_td043_write_mirror(ddata->spi, ddata->hmirror, val); in tpo_td043_vmirror_store() [all …]
|
D | panel-sharp-ls037v7dw01.c | 60 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_connect() local 61 struct omap_dss_device *in = ddata->in; in sharp_ls_connect() 71 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_disconnect() local 72 struct omap_dss_device *in = ddata->in; in sharp_ls_disconnect() 82 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_enable() local 83 struct omap_dss_device *in = ddata->in; in sharp_ls_enable() 92 if (ddata->data_lines) in sharp_ls_enable() 93 in->ops.dpi->set_data_lines(in, ddata->data_lines); in sharp_ls_enable() 94 in->ops.dpi->set_timings(in, &ddata->videomode); in sharp_ls_enable() 96 if (ddata->vcc) { in sharp_ls_enable() [all …]
|
D | connector-hdmi.c | 51 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_connect() local 52 struct omap_dss_device *in = ddata->in; in hdmic_connect() 54 dev_dbg(ddata->dev, "connect\n"); in hdmic_connect() 64 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disconnect() local 65 struct omap_dss_device *in = ddata->in; in hdmic_disconnect() 67 dev_dbg(ddata->dev, "disconnect\n"); in hdmic_disconnect() 77 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_enable() local 78 struct omap_dss_device *in = ddata->in; in hdmic_enable() 81 dev_dbg(ddata->dev, "enable\n"); in hdmic_enable() 89 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable() [all …]
|
D | panel-dpi.c | 38 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_connect() local 39 struct omap_dss_device *in = ddata->in; in panel_dpi_connect() 49 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disconnect() local 50 struct omap_dss_device *in = ddata->in; in panel_dpi_disconnect() 60 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_enable() local 61 struct omap_dss_device *in = ddata->in; in panel_dpi_enable() 70 if (ddata->data_lines) in panel_dpi_enable() 71 in->ops.dpi->set_data_lines(in, ddata->data_lines); in panel_dpi_enable() 72 in->ops.dpi->set_timings(in, &ddata->videomode); in panel_dpi_enable() 78 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable() [all …]
|
D | connector-analog-tv.c | 48 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_connect() local 49 struct omap_dss_device *in = ddata->in; in tvc_connect() 51 dev_dbg(ddata->dev, "connect\n"); in tvc_connect() 61 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect() local 62 struct omap_dss_device *in = ddata->in; in tvc_disconnect() 64 dev_dbg(ddata->dev, "disconnect\n"); in tvc_disconnect() 74 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_enable() local 75 struct omap_dss_device *in = ddata->in; in tvc_enable() 78 dev_dbg(ddata->dev, "enable\n"); in tvc_enable() 86 in->ops.atv->set_timings(in, &ddata->timings); in tvc_enable() [all …]
|
D | encoder-tpd12s015.c | 35 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 …]
|
D | panel-lgphilips-lb035q02.c | 119 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_connect() local 120 struct omap_dss_device *in = ddata->in; in lb035q02_connect() 130 init_lb035q02_panel(ddata->spi); in lb035q02_connect() 137 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_disconnect() local 138 struct omap_dss_device *in = ddata->in; in lb035q02_disconnect() 148 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_enable() local 149 struct omap_dss_device *in = ddata->in; in lb035q02_enable() 158 if (ddata->data_lines) in lb035q02_enable() 159 in->ops.dpi->set_data_lines(in, ddata->data_lines); in lb035q02_enable() 160 in->ops.dpi->set_timings(in, &ddata->videomode); in lb035q02_enable() [all …]
|
D | encoder-tfp410.c | 32 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect() local 33 struct omap_dss_device *in = ddata->in; in tfp410_connect() 52 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect() local 53 struct omap_dss_device *in = ddata->in; in tfp410_disconnect() 66 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect() 71 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable() local 72 struct omap_dss_device *in = ddata->in; in tfp410_enable() 81 in->ops.dpi->set_timings(in, &ddata->timings); in tfp410_enable() 82 if (ddata->data_lines) in tfp410_enable() 83 in->ops.dpi->set_data_lines(in, ddata->data_lines); in tfp410_enable() [all …]
|
D | panel-nec-nl8048hl11.c | 118 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_connect() local 119 struct omap_dss_device *in = ddata->in; in nec_8048_connect() 129 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_disconnect() local 130 struct omap_dss_device *in = ddata->in; in nec_8048_disconnect() 140 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_enable() local 141 struct omap_dss_device *in = ddata->in; in nec_8048_enable() 150 if (ddata->data_lines) in nec_8048_enable() 151 in->ops.dpi->set_data_lines(in, ddata->data_lines); in nec_8048_enable() 152 in->ops.dpi->set_timings(in, &ddata->videomode); in nec_8048_enable() 158 if (gpio_is_valid(ddata->res_gpio)) in nec_8048_enable() [all …]
|
/linux-6.1.9/drivers/gpu/drm/panel/ |
D | panel-dsi-cm.c | 77 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.1.9/drivers/power/supply/ |
D | cpcap-charger.c | 176 static int cpcap_charger_get_charge_voltage(struct cpcap_charger_ddata *ddata) in cpcap_charger_get_charge_voltage() argument 181 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage() 184 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage() 192 static int cpcap_charger_get_charge_current(struct cpcap_charger_ddata *ddata) in cpcap_charger_get_charge_current() argument 197 channel = ddata->channels[CPCAP_CHARGER_IIO_CHRG_CURRENT]; in cpcap_charger_get_charge_current() 200 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_current() 212 struct cpcap_charger_ddata *ddata = dev_get_drvdata(psy->dev.parent); in cpcap_charger_get_property() local 216 val->intval = ddata->status; in cpcap_charger_get_property() 219 val->intval = ddata->limit_current; in cpcap_charger_get_property() 222 val->intval = ddata->voltage; in cpcap_charger_get_property() [all …]
|
D | cpcap-battery.c | 147 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.1.9/drivers/gpio/ |
D | gpio-siox.c | 30 struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); in gpio_siox_set_data() local 32 mutex_lock(&ddata->lock); in gpio_siox_set_data() 33 buf[0] = ddata->setdata[0]; in gpio_siox_set_data() 34 mutex_unlock(&ddata->lock); in gpio_siox_set_data() 41 struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); in gpio_siox_get_data() local 45 mutex_lock(&ddata->lock); in gpio_siox_get_data() 47 raw_spin_lock_irq(&ddata->irqlock); in gpio_siox_get_data() 53 ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); in gpio_siox_get_data() 54 u32 irq_type = ddata->irq_type[offset]; in gpio_siox_get_data() 59 ddata->irq_status |= 1 << offset; in gpio_siox_get_data() [all …]
|
/linux-6.1.9/drivers/char/hw_random/ |
D | omap3-rom-rng.c | 40 struct omap_rom_rng *ddata; in omap3_rom_rng_read() local 44 ddata = (struct omap_rom_rng *)rng->priv; in omap3_rom_rng_read() 46 r = pm_runtime_get_sync(ddata->dev); in omap3_rom_rng_read() 48 pm_runtime_put_noidle(ddata->dev); in omap3_rom_rng_read() 54 r = ddata->rom_rng_call(ptr, 4, RNG_GEN_HW); in omap3_rom_rng_read() 60 pm_runtime_mark_last_busy(ddata->dev); in omap3_rom_rng_read() 61 pm_runtime_put_autosuspend(ddata->dev); in omap3_rom_rng_read() 68 struct omap_rom_rng *ddata; in omap_rom_rng_runtime_suspend() local 71 ddata = dev_get_drvdata(dev); in omap_rom_rng_runtime_suspend() 73 r = ddata->rom_rng_call(0, 0, RNG_RESET); in omap_rom_rng_runtime_suspend() [all …]
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-sifive.c | 61 struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); in pwm_sifive_request() local 63 mutex_lock(&ddata->lock); in pwm_sifive_request() 64 ddata->user_count++; in pwm_sifive_request() 65 mutex_unlock(&ddata->lock); in pwm_sifive_request() 72 struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); in pwm_sifive_free() local 74 mutex_lock(&ddata->lock); in pwm_sifive_free() 75 ddata->user_count--; in pwm_sifive_free() 76 mutex_unlock(&ddata->lock); in pwm_sifive_free() 80 static void pwm_sifive_update_clock(struct pwm_sifive_ddata *ddata, in pwm_sifive_update_clock() argument 94 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock() [all …]
|
/linux-6.1.9/drivers/watchdog/ |
D | mpc8xxx_wdt.c | 72 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.1.9/drivers/remoteproc/ |
D | st_remoteproc.c | 78 struct st_rproc *ddata = rproc->priv; in st_rproc_kick() local 86 ret = mbox_send_message(ddata->mbox_chan[vqid * MBOX_MAX + MBOX_TX], in st_rproc_kick() 165 struct st_rproc *ddata = rproc->priv; in st_rproc_start() local 168 regmap_update_bits(ddata->boot_base, ddata->boot_offset, in st_rproc_start() 169 ddata->config->bootaddr_mask, rproc->bootaddr); in st_rproc_start() 171 err = clk_enable(ddata->clk); in st_rproc_start() 177 if (ddata->config->sw_reset) { in st_rproc_start() 178 err = reset_control_deassert(ddata->sw_reset); in st_rproc_start() 185 if (ddata->config->pwr_reset) { in st_rproc_start() 186 err = reset_control_deassert(ddata->pwr_reset); in st_rproc_start() [all …]
|
/linux-6.1.9/drivers/mfd/ |
D | ene-kb3930.c | 44 static void kb3930_off(struct kb3930 *ddata, int off_mode) in kb3930_off() argument 46 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_OFF_MODE], in kb3930_off() 57 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 0); in kb3930_off() 59 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 1); in kb3930_off() 87 struct kb3930 *ddata = context; in kb3930_ec_ram_reg_write() local 89 return i2c_smbus_write_word_data(ddata->client, EC_RAM_OUT, in kb3930_ec_ram_reg_write() 96 struct kb3930 *ddata = context; in kb3930_ec_ram_reg_read() local 99 ret = i2c_smbus_write_word_data(ddata->client, EC_RAM_IN, reg); in kb3930_ec_ram_reg_read() 103 ret = i2c_smbus_read_word_data(ddata->client, EC_DATA_IN); in kb3930_ec_ram_reg_read() 126 struct kb3930 *ddata; in kb3930_probe() local [all …]
|
D | atmel-flexcom.c | 41 struct atmel_flexcom *ddata; in atmel_flexcom_probe() local 44 ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); in atmel_flexcom_probe() 45 if (!ddata) in atmel_flexcom_probe() 48 platform_set_drvdata(pdev, ddata); in atmel_flexcom_probe() 50 err = of_property_read_u32(np, "atmel,flexcom-mode", &ddata->opmode); in atmel_flexcom_probe() 54 if (ddata->opmode < ATMEL_FLEXCOM_MODE_USART || in atmel_flexcom_probe() 55 ddata->opmode > ATMEL_FLEXCOM_MODE_TWI) in atmel_flexcom_probe() 59 ddata->base = devm_ioremap_resource(&pdev->dev, res); in atmel_flexcom_probe() 60 if (IS_ERR(ddata->base)) in atmel_flexcom_probe() 61 return PTR_ERR(ddata->base); in atmel_flexcom_probe() [all …]
|