Home
last modified time | relevance | path

Searched refs:devdata (Results 1 – 25 of 60) sorted by relevance

123

/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common.c53 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
61 return ((pin >> pctl->devdata->mode_shf) & pctl->devdata->port_mask) in mtk_get_port()
62 << pctl->devdata->port_shf; in mtk_get_port()
73 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
74 bit = BIT(offset & pctl->devdata->mode_mask); in mtk_pmx_gpio_set_direction()
76 if (pctl->devdata->spec_dir_set) in mtk_pmx_gpio_set_direction()
77 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
95 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
96 bit = BIT(offset & pctl->devdata->mode_mask); in mtk_gpio_set()
116 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
[all …]
H A Dpinctrl-mtk-common.h61 #define SET_ADDR(x, y) (x + (y->devdata->port_align))
62 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1))
250 const struct mtk_pinctrl_devdata *devdata,
253 const struct mtk_pinctrl_devdata *devdata,
292 const struct mtk_pinctrl_devdata *devdata; member
303 const struct mtk_pinctrl_devdata *devdata,
307 const struct mtk_pinctrl_devdata *devdata,
/linux/drivers/power/supply/
H A Dwm831x_backup.c116 struct wm831x_backup *devdata = dev_get_drvdata(psy->dev.parent); in wm831x_backup_get_prop() local
117 struct wm831x *wm831x = devdata->wm831x; in wm831x_backup_get_prop()
166 struct wm831x_backup *devdata; in wm831x_backup_probe() local
168 devdata = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_backup), in wm831x_backup_probe()
170 if (devdata == NULL) in wm831x_backup_probe()
173 devdata->wm831x = wm831x; in wm831x_backup_probe()
182 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
185 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
188 devdata->backup_desc.name = devdata->name; in wm831x_backup_probe()
189 devdata->backup_desc.type = POWER_SUPPLY_TYPE_BATTERY; in wm831x_backup_probe()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_bios.h238 const struct intel_bios_encoder_data *devdata);
241 const struct intel_bios_encoder_data *devdata,
258 bool intel_bios_encoder_supports_dvi(const struct intel_bios_encoder_data *devdata);
259 bool intel_bios_encoder_supports_hdmi(const struct intel_bios_encoder_data *devdata);
260 bool intel_bios_encoder_supports_dp(const struct intel_bios_encoder_data *devdata);
261 bool intel_bios_encoder_supports_edp(const struct intel_bios_encoder_data *devdata);
262 bool intel_bios_encoder_supports_typec_usb(const struct intel_bios_encoder_data *devdata);
263 bool intel_bios_encoder_supports_tbt(const struct intel_bios_encoder_data *devdata);
264 bool intel_bios_encoder_supports_dsi(const struct intel_bios_encoder_data *devdata);
265 bool intel_bios_encoder_supports_dp_dual_mode(const struct intel_bios_encoder_data *devdata);
[all...]
/linux/drivers/pinctrl/visconti/
H A Dpinctrl-common.c30 const struct visconti_pinctrl_devdata *devdata; member
42 const struct visconti_desc_pin *pin = &priv->devdata->pins[_pin]; in visconti_pin_config_set()
132 pins = priv->devdata->groups[selector].pins; in visconti_pin_config_group_set()
133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set()
159 return priv->devdata->nr_groups; in visconti_get_groups_count()
167 return priv->devdata->groups[selector].name; in visconti_get_group_name()
177 *pins = priv->devdata->groups[selector].pins; in visconti_get_group_pins()
178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins()
196 return priv->devdata->nr_functions; in visconti_get_functions_count()
204 return priv->devdata->functions[selector].name; in visconti_get_function_name()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-common-pseries.c135 static struct nx842_devdata __rcu *devdata; variable
331 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress()
462 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress()
549 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
551 if (devdata) { in nx842_OF_set_defaults()
552 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
553 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
554 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
575 static int nx842_OF_upd_status(struct nx842_devdata *devdata, in nx842_OF_upd_status() argument
584 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status()
[all …]
/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.h122 const struct gpmi_devdata *devdata; member
172 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
173 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
174 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
175 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
176 #define GPMI_IS_MX7D(x) ((x)->devdata->type == IS_MX7D)
177 #define GPMI_IS_MX8QXP(x) ((x)->devdata->type == IS_MX8QXP)
/linux/drivers/spi/
H A Dspi-orion.c97 const struct orion_spi_dev *devdata; member
142 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
145 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
149 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
226 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
310 if (orion_spi->devdata->is_errata_50mhz_ac) in orion_spi_setup_transfer()
646 const struct orion_spi_dev *devdata; in orion_spi_probe() local
687 devdata = device_get_match_data(&pdev->dev); in orion_spi_probe()
688 devdata = devdata ? devdata : &orion_spi_dev_data; in orion_spi_probe()
689 spi->devdata = devdata; in orion_spi_probe()
[all …]
/linux/drivers/reset/
H A Dreset-simple.c162 const struct reset_simple_devdata *devdata; in reset_simple_probe() local
168 devdata = of_device_get_match_data(dev); in reset_simple_probe()
185 if (devdata) { in reset_simple_probe()
186 reg_offset = devdata->reg_offset; in reset_simple_probe()
187 if (devdata->nr_resets) in reset_simple_probe()
188 data->rcdev.nr_resets = devdata->nr_resets; in reset_simple_probe()
189 data->active_low = devdata->active_low; in reset_simple_probe()
190 data->status_active_low = devdata->status_active_low; in reset_simple_probe()
H A Dreset-tps380x.c74 const struct tps380x_reset_devdata *devdata; in tps380x_reset_probe() local
77 devdata = device_get_match_data(dev); in tps380x_reset_probe()
78 if (!devdata) in tps380x_reset_probe()
90 tps380x->reset_ms = devdata->max_reset_ms; in tps380x_reset_probe()
/linux/drivers/gpu/drm/bridge/
H A Dfsl-ldb.c92 const struct fsl_ldb_devdata *devdata; member
207 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->ldb_ctrl, reg); in fsl_ldb_atomic_enable()
209 if (fsl_ldb->devdata->single_ctrl_reg) in fsl_ldb_atomic_enable()
215 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, reg); in fsl_ldb_atomic_enable()
223 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, reg); in fsl_ldb_atomic_enable()
232 if (fsl_ldb->devdata->lvds_en_bit) in fsl_ldb_atomic_disable()
234 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, in fsl_ldb_atomic_disable()
237 if (!fsl_ldb->devdata->single_ctrl_reg) in fsl_ldb_atomic_disable()
238 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, 0); in fsl_ldb_atomic_disable()
239 regmap_write(fsl_ldb->regmap, fsl_ldb->devdata->ldb_ctrl, 0); in fsl_ldb_atomic_disable()
[all …]
/linux/drivers/thermal/
H A Dk3_bandgap.c108 static int k3_bgp_read_temp(struct k3_thermal_data *devdata, in k3_bgp_read_temp() argument
114 bgp = devdata->bgp; in k3_bgp_read_temp()
125 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
127 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
129 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
H A Dcpufreq_cooling.c238 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_requested_power()
279 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_state2power()
321 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_power2state()
440 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state()
459 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state()
479 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state()
691 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
H A Ddevfreq_cooling.c67 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
77 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_cur_state()
87 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_set_cur_state()
193 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power()
268 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_state2power()
290 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_power2state()
564 dfc = cdev->devdata; in devfreq_cooling_unregister()
H A Dthermal_core.c981 const char *type, void *devdata, in __thermal_cooling_device_register() argument
1018 cdev->devdata = devdata; in __thermal_cooling_device_register()
1095 thermal_cooling_device_register(const char *type, void *devdata, in thermal_cooling_device_register() argument
1098 return __thermal_cooling_device_register(NULL, type, devdata, ops); in thermal_cooling_device_register()
1119 const char *type, void *devdata, in thermal_of_cooling_device_register() argument
1122 return __thermal_cooling_device_register(np, type, devdata, ops); in thermal_of_cooling_device_register()
1152 const char *type, void *devdata, in devm_thermal_of_cooling_device_register() argument
1162 tcd = __thermal_cooling_device_register(np, type, devdata, ops); in devm_thermal_of_cooling_device_register()
1361 int num_trips, void *devdata, in thermal_zone_device_register_with_trips() argument
1437 tz->devdata = devdata; in thermal_zone_device_register_with_trips()
[all …]
H A Dk3_j72xx_bandgap.c217 static inline int k3_bgp_read_temp(struct k3_thermal_data *devdata, in k3_bgp_read_temp() argument
223 bgp = devdata->bgp; in k3_bgp_read_temp()
233 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
235 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
237 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
H A Dkhadas_mcu_fan.c51 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; in khadas_mcu_fan_get_cur_state()
62 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; in khadas_mcu_fan_set_cur_state()
H A Dcpuidle_cooling.c105 struct cpuidle_cooling_device *idle_cdev = cdev->devdata; in cpuidle_cooling_get_cur_state()
127 struct cpuidle_cooling_device *idle_cdev = cdev->devdata; in cpuidle_cooling_set_cur_state()
/linux/drivers/phy/freescale/
H A Dphy-fsl-imx8-mipi-dphy.c128 const struct mixel_dphy_devdata *devdata; member
330 phy_write(phy, priv->cfg.rxhs_settle, priv->devdata->reg_rxhs_settle); in mixel_phy_set_hs_timings()
367 phy_write(phy, 0x01, priv->devdata->reg_tx_rcal); in mixel_dphy_configure_mipi_dphy()
368 phy_write(phy, 0x00, priv->devdata->reg_auto_pd_en); in mixel_dphy_configure_mipi_dphy()
369 phy_write(phy, 0x02, priv->devdata->reg_rxlprp); in mixel_dphy_configure_mipi_dphy()
370 phy_write(phy, 0x02, priv->devdata->reg_rxcdrp); in mixel_dphy_configure_mipi_dphy()
614 if (priv->devdata->is_combo && mode != PHY_MODE_LVDS) { in mixel_dphy_set_mode()
619 if (!priv->devdata->is_combo && mode != PHY_MODE_MIPI_DPHY) { in mixel_dphy_set_mode()
624 if (priv->devdata->is_combo) { in mixel_dphy_set_mode()
677 priv->devdata = of_device_get_match_data(&pdev->dev); in mixel_dphy_probe()
[all …]
/linux/drivers/gpu/drm/mxsfb/
H A Dmxsfb_kms.c43 return (val & mxsfb->devdata->hs_wdth_mask) << in set_hsync_pulse_width()
44 mxsfb->devdata->hs_wdth_shift; in set_hsync_pulse_width()
107 mxsfb->base + mxsfb->devdata->transfer_count); in mxsfb_set_mode()
160 if (mxsfb->devdata->has_ctrl2) { in mxsfb_enable_controller()
272 if (mxsfb->devdata->has_overlay) in mxsfb_reset_block()
393 writel(dma_addr, mxsfb->base + mxsfb->devdata->cur_buf); in mxsfb_crtc_atomic_enable()
394 writel(dma_addr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_crtc_atomic_enable()
548 writel(dma_addr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_plane_primary_atomic_update()
691 if (mxsfb->devdata->has_overlay) { in mxsfb_kms_init()
706 if (mxsfb->devdata->has_crc32) { in mxsfb_kms_init()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dint3406_thermal.c44 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state()
54 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state()
71 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_cur_state()
H A Dint3403_thermal.c114 struct int3403_priv *priv = cdev->devdata; in int3403_get_max_state()
124 struct int3403_priv *priv = cdev->devdata; in int3403_get_cur_state()
139 struct int3403_priv *priv = cdev->devdata; in int3403_set_cur_state()
/linux/drivers/acpi/
H A Dprocessor_thermal.c236 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
254 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
274 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
/linux/include/linux/
H A Dbacklight.h411 backlight_device_register(const char *name, struct device *dev, void *devdata,
416 struct device *parent, void *devdata,
/linux/drivers/hwmon/
H A Demc2305.c124 struct emc2305_data *data = cdev->devdata; in emc2305_get_cdev_idx()
156 struct emc2305_data *data = cdev->devdata; in emc2305_get_cur_state()
168 struct emc2305_data *data = cdev->devdata; in emc2305_get_max_state()
206 struct emc2305_data *data = cdev->devdata; in emc2305_set_cur_state()

123