Home
last modified time | relevance | path

Searched full:devdata (Results 1 – 25 of 46) sorted by relevance

12

/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/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/iio/adc/
H A Drtq6056.c93 const struct richtek_dev_data *devdata; member
279 const struct richtek_dev_data *devdata = priv->devdata; in rtq6056_adc_read_channel() local
295 regval >>= devdata->vbus_offset; in rtq6056_adc_read_channel()
476 const struct richtek_dev_data *devdata = priv->devdata; in rtq6056_adc_read_raw() local
482 return devdata->read_scale(chan, val, val2); in rtq6056_adc_read_raw()
499 const struct richtek_dev_data *devdata = priv->devdata; in rtq6056_adc_read_avail() local
508 *vals = devdata->avg_sample_list; in rtq6056_adc_read_avail()
509 *length = devdata->avg_sample_list_length; in rtq6056_adc_read_avail()
522 const struct richtek_dev_data *devdata = priv->devdata; in __rtq6056_adc_write_raw() local
526 if (devdata->fixed_samp_freq) in __rtq6056_adc_write_raw()
[all …]
/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.h121 /* Devdata */
122 const struct gpmi_devdata *devdata; member
171 /* Use the devdata to distinguish different Archs. */
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/reset/
H A Dreset-simple.c164 const struct reset_simple_devdata *devdata; in reset_simple_probe() local
170 devdata = of_device_get_match_data(dev); in reset_simple_probe()
187 if (devdata) { in reset_simple_probe()
188 reg_offset = devdata->reg_offset; in reset_simple_probe()
189 if (devdata->nr_resets) in reset_simple_probe()
190 data->rcdev.nr_resets = devdata->nr_resets; in reset_simple_probe()
191 data->active_low = devdata->active_low; in reset_simple_probe()
192 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/pinctrl/mediatek/
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/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/infiniband/hw/hfi1/
H A Dmsix.c13 * @dd: valid hfi1 devdata
59 * @dd: valid devdata
230 * @dd: valid devdata structure
245 * @dd: valid devdata structure
282 * @dd: valid devdata
333 * @dd: valid devdata
/linux/drivers/video/backlight/
H A Dlcd.c185 * @devdata: an optional pointer to be stored in the device. The
193 void *devdata, const struct lcd_ops *ops) in lcd_device_register() argument
211 dev_set_drvdata(&new_ld->dev, devdata); in lcd_device_register()
269 * @devdata: an optional pointer to be stored for private driver use
280 void *devdata, const struct lcd_ops *ops) in devm_lcd_device_register() argument
288 lcd = lcd_device_register(name, parent, devdata, ops); in devm_lcd_device_register()
/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()
H A Dmxsfb_drv.c210 const struct mxsfb_devdata *devdata) in mxsfb_load() argument
222 mxsfb->devdata = devdata; in mxsfb_load()
H A Dmxsfb_drv.h30 const struct mxsfb_devdata *devdata; member
/linux/include/linux/
H A Dbacklight.h379 backlight_device_register(const char *name, struct device *dev, void *devdata,
384 struct device *parent, void *devdata,
416 * bl_get_data - access devdata
420 * to supply a void * devdata. bl_get_data() return a pointer to the
421 * devdata.
425 * pointer to devdata stored while registering the backlight device.
H A Dlcd.h122 struct device *parent, void *devdata, const struct lcd_ops *ops);
125 void *devdata, const struct lcd_ops *ops);
H A Dc2port.h58 struct c2port_ops *ops, void *devdata);
/linux/drivers/thermal/
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 Dcpufreq_cooling.c236 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_requested_power()
277 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_state2power()
319 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_power2state()
438 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state()
457 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state()
477 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state()
689 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
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/thermal/intel/int340x_thermal/
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.c238 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
256 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
276 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
H A Dfan_core.c32 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
137 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
191 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
/linux/drivers/net/wireless/ath/ath10k/
H A Dthermal.c29 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state()
42 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state()
/linux/drivers/net/wireless/ath/ath11k/
H A Dthermal.c28 struct ath11k *ar = cdev->devdata; in ath11k_thermal_get_cur_throttle_state()
41 struct ath11k *ar = cdev->devdata; in ath11k_thermal_set_cur_throttle_state()

12