Home
last modified time | relevance | path

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

12345

/linux-6.1.9/drivers/power/supply/
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()
174 platform_set_drvdata(pdev, devdata); in wm831x_backup_probe()
183 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
186 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
189 devdata->backup_desc.name = devdata->name; in wm831x_backup_probe()
[all …]
/linux-6.1.9/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c55 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
63 return ((pin >> pctl->devdata->mode_shf) & pctl->devdata->port_mask) in mtk_get_port()
64 << pctl->devdata->port_shf; in mtk_get_port()
75 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
76 bit = BIT(offset & pctl->devdata->mode_mask); in mtk_pmx_gpio_set_direction()
78 if (pctl->devdata->spec_dir_set) in mtk_pmx_gpio_set_direction()
79 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
97 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
98 bit = BIT(offset & pctl->devdata->mode_mask); in mtk_gpio_set()
118 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
[all …]
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))
247 const struct mtk_pinctrl_devdata *devdata,
250 const struct mtk_pinctrl_devdata *devdata,
286 const struct mtk_pinctrl_devdata *devdata; member
297 const struct mtk_pinctrl_devdata *devdata,
301 const struct mtk_pinctrl_devdata *devdata,
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_bios.c622 const struct intel_bios_encoder_data *devdata, in opregion_get_panel_type() argument
629 const struct intel_bios_encoder_data *devdata, in vbt_get_panel_type() argument
645 if (devdata && devdata->child.handle == DEVICE_HANDLE_LFP2) in vbt_get_panel_type()
648 drm_WARN_ON(&i915->drm, devdata && devdata->child.handle != DEVICE_HANDLE_LFP1); in vbt_get_panel_type()
654 const struct intel_bios_encoder_data *devdata, in pnpid_get_panel_type() argument
703 const struct intel_bios_encoder_data *devdata, in fallback_get_panel_type() argument
717 const struct intel_bios_encoder_data *devdata, in get_panel_type() argument
723 const struct intel_bios_encoder_data *devdata, in get_panel_type()
747 panel_types[i].panel_type = panel_types[i].get_panel_type(i915, devdata, edid); in get_panel_type()
1204 const struct intel_bios_encoder_data *devdata; in parse_sdvo_device_mapping() local
[all …]
Dintel_bios.h237 const struct intel_bios_encoder_data *devdata,
269 bool intel_bios_encoder_supports_dvi(const struct intel_bios_encoder_data *devdata);
270 bool intel_bios_encoder_supports_hdmi(const struct intel_bios_encoder_data *devdata);
271 bool intel_bios_encoder_supports_dp(const struct intel_bios_encoder_data *devdata);
272 bool intel_bios_encoder_supports_typec_usb(const struct intel_bios_encoder_data *devdata);
273 bool intel_bios_encoder_supports_tbt(const struct intel_bios_encoder_data *devdata);
274 int intel_bios_encoder_dp_boost_level(const struct intel_bios_encoder_data *devdata);
275 int intel_bios_encoder_hdmi_boost_level(const struct intel_bios_encoder_data *devdata);
/linux-6.1.9/drivers/pinctrl/visconti/
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-6.1.9/drivers/crypto/nx/
Dnx-common-pseries.c133 } __rcu *devdata; variable
329 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress()
460 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress()
547 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
549 if (devdata) { in nx842_OF_set_defaults()
550 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
551 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
552 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
573 static int nx842_OF_upd_status(struct nx842_devdata *devdata, in nx842_OF_upd_status() argument
582 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status()
[all …]
/linux-6.1.9/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.h120 const struct gpmi_devdata *devdata; member
170 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
171 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
172 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
173 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
174 #define GPMI_IS_MX7D(x) ((x)->devdata->type == IS_MX7D)
/linux-6.1.9/drivers/reset/
Dreset-simple.c161 const struct reset_simple_devdata *devdata; in reset_simple_probe() local
167 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()
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-6.1.9/drivers/spi/
Dspi-orion.c98 const struct orion_spi_dev *devdata; member
143 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
146 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
150 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
227 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
311 if (orion_spi->devdata->is_errata_50mhz_ac) in orion_spi_setup_transfer()
647 const struct orion_spi_dev *devdata; in orion_spi_probe() local
688 devdata = device_get_match_data(&pdev->dev); in orion_spi_probe()
689 devdata = devdata ? devdata : &orion_spi_dev_data; in orion_spi_probe()
690 spi->devdata = devdata; in orion_spi_probe()
[all …]
/linux-6.1.9/include/linux/
Dthermal.h106 void *devdata; member
165 void *devdata; member
366 char *type, void *devdata,
379 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
388 thermal_cooling_device_register(const char *type, void *devdata, in thermal_cooling_device_register() argument
393 const char *type, void *devdata, in thermal_of_cooling_device_register() argument
399 char *type, void *devdata, in devm_thermal_of_cooling_device_register() argument
Dlcd.h105 struct device *parent, void *devdata, struct lcd_ops *ops);
108 void *devdata, struct lcd_ops *ops);
/linux-6.1.9/drivers/thermal/
Dk3_bandgap.c109 static int k3_bgp_read_temp(struct k3_thermal_data *devdata, in k3_bgp_read_temp() argument
115 bgp = devdata->bgp; in k3_bgp_read_temp()
126 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
128 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
130 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
144 struct k3_thermal_data *data = tz->devdata; in k3_thermal_get_temp()
Dspear_thermal.c34 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp()
51 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend()
67 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume()
159 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_exit()
Dcpufreq_cooling.c224 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_requested_power()
266 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_state2power()
301 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_power2state()
411 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state()
430 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state()
450 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state()
665 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
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()
181 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power()
247 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_state2power()
263 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_power2state()
533 dfc = cdev->devdata; in devfreq_cooling_unregister()
Dthermal_core.c860 const char *type, void *devdata, in __thermal_cooling_device_register() argument
893 cdev->devdata = devdata; in __thermal_cooling_device_register()
959 thermal_cooling_device_register(const char *type, void *devdata, in thermal_cooling_device_register() argument
962 return __thermal_cooling_device_register(NULL, type, devdata, ops); in thermal_cooling_device_register()
983 const char *type, void *devdata, in thermal_of_cooling_device_register() argument
986 return __thermal_cooling_device_register(np, type, devdata, ops); in thermal_of_cooling_device_register()
1016 char *type, void *devdata, in devm_thermal_of_cooling_device_register() argument
1026 tcd = __thermal_cooling_device_register(np, type, devdata, ops); in devm_thermal_of_cooling_device_register()
1180 void *devdata, struct thermal_zone_device_ops *ops, in thermal_zone_device_register_with_trips() argument
1251 tz->devdata = devdata; in thermal_zone_device_register_with_trips()
[all …]
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()
252 struct k3_thermal_data *data = tz->devdata; in k3_thermal_get_temp()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c196 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind()
222 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind()
244 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_temp()
267 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_type()
279 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_temp()
291 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_temp()
303 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_hyst()
312 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_hyst()
336 struct mlxsw_thermal_module *tz = tzdev->devdata; in mlxsw_thermal_module_bind()
365 struct mlxsw_thermal_module *tz = tzdev->devdata; in mlxsw_thermal_module_unbind()
[all …]
/linux-6.1.9/drivers/phy/freescale/
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-6.1.9/drivers/gpu/drm/mxsfb/
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()
682 if (mxsfb->devdata->has_overlay) { in mxsfb_kms_init()
697 if (mxsfb->devdata->has_crc32) { in mxsfb_kms_init()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_thermal.c15 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_temp()
35 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_type()
47 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_temp()
/linux-6.1.9/drivers/thermal/intel/int340x_thermal/
Dint340x_thermal_zone.c17 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_zone_temp()
46 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp()
83 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type()
119 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_set_trip_temp()
141 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_hyst()
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()

12345