Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/power/
Dwm831x_backup.c119 struct wm831x_backup *devdata = dev_get_drvdata(psy->dev.parent); in wm831x_backup_get_prop() local
120 struct wm831x *wm831x = devdata->wm831x; in wm831x_backup_get_prop()
169 struct wm831x_backup *devdata; in wm831x_backup_probe() local
171 devdata = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_backup), in wm831x_backup_probe()
173 if (devdata == NULL) in wm831x_backup_probe()
176 devdata->wm831x = wm831x; in wm831x_backup_probe()
177 platform_set_drvdata(pdev, devdata); in wm831x_backup_probe()
186 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
189 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
192 devdata->backup_desc.name = devdata->name; in wm831x_backup_probe()
[all …]
Dpower_supply_core.c528 psy = tzd->devdata; in power_supply_read_temp()
575 psy = tcd->devdata; in ps_get_max_charge_cntl_limit()
591 psy = tcd->devdata; in ps_get_cur_chrage_cntl_limit()
607 psy = tcd->devdata; in ps_set_cur_charge_cntl_limit()
/linux-4.1.27/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c60 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
68 return ((pin >> 4) & pctl->devdata->port_mask) in mtk_get_port()
69 << pctl->devdata->port_shf; in mtk_get_port()
80 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
99 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
122 if (pctl->devdata->spec_ies_smt_set) { in mtk_pconf_set_ies_smt()
123 ret = pctl->devdata->spec_ies_smt_set(mtk_get_regmap(pctl, pin), in mtk_pconf_set_ies_smt()
124 pin, pctl->devdata->port_align, value); in mtk_pconf_set_ies_smt()
132 offset = pctl->devdata->ies_offset; in mtk_pconf_set_ies_smt()
134 offset = pctl->devdata->smt_offset; in mtk_pconf_set_ies_smt()
[all …]
Dpinctrl-mtk-common.h68 #define SET_ADDR(x, y) (x + (y->devdata->port_align))
69 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1))
220 const struct mtk_pinctrl_devdata *devdata; member
/linux-4.1.27/drivers/crypto/nx/
Dnx-842.c100 } __rcu *devdata; variable
357 local_devdata = rcu_dereference(devdata); in nx842_compress()
552 local_devdata = rcu_dereference(devdata); in nx842_decompress()
708 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
710 if (devdata) { in nx842_OF_set_defaults()
711 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
712 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
713 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
714 devdata->status = UNAVAILABLE; in nx842_OF_set_defaults()
735 static int nx842_OF_upd_status(struct nx842_devdata *devdata, in nx842_OF_upd_status() argument
[all …]
/linux-4.1.27/drivers/thermal/
Dof-thermal.c92 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
112 struct __thermal_zone *data = tz->devdata; in of_thermal_get_ntrips()
133 struct __thermal_zone *data = tz->devdata; in of_thermal_is_trip_valid()
155 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_points()
178 struct __thermal_zone *data = tz->devdata; in of_thermal_set_emul_temp()
189 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trend()
214 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind()
242 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind()
268 struct __thermal_zone *data = tz->devdata; in of_thermal_get_mode()
278 struct __thermal_zone *data = tz->devdata; in of_thermal_set_mode()
[all …]
Ddb8500_thermal.c65 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_bind()
92 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_unbind()
113 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_temp()
129 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trend()
140 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_mode()
153 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_set_mode()
170 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_type()
185 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_temp()
200 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_crit_temp()
Dspear_thermal.c43 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp()
62 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend()
79 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume()
165 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_exit()
Dclock_cooling.c217 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_level()
345 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_max_state()
369 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_cur_state()
389 struct clock_cooling_device *clock_device = cdev->devdata; in clock_cooling_set_cur_state()
477 ccdev = cdev->devdata; in clock_cooling_unregister()
Dcpu_cooling.c223 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_max_state()
242 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_cur_state()
262 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_set_cur_state()
466 cpufreq_dev = cdev->devdata; in cpufreq_cooling_unregister()
Dimx_thermal.c138 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
214 struct imx_thermal_data *data = tz->devdata; in imx_get_mode()
224 struct imx_thermal_data *data = tz->devdata; in imx_set_mode()
268 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
277 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
287 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
Dintel_soc_dts_thermal.c115 aux_entry = tzd->devdata; in sys_get_trip_temp()
229 struct soc_sensor_entry *aux_entry = tzd->devdata; in sys_set_trip_temp()
236 status = update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
260 aux_entry = tzd->devdata; in sys_get_curr_temp()
Dthermal_core.c1146 char *type, void *devdata, in __thermal_cooling_device_register() argument
1178 cdev->devdata = devdata; in __thermal_cooling_device_register()
1218 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
1221 return __thermal_cooling_device_register(NULL, type, devdata, ops); in thermal_cooling_device_register()
1242 char *type, void *devdata, in thermal_of_cooling_device_register() argument
1245 return __thermal_cooling_device_register(np, type, devdata, ops); in thermal_of_cooling_device_register()
1487 int trips, int mask, void *devdata, in thermal_zone_device_register() argument
1528 tz->devdata = devdata; in thermal_zone_device_register()
Dkirkwood_thermal.c39 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
Dx86_pkg_temp_thermal.c172 phy_dev_entry = tzd->devdata; in sys_get_curr_temp()
197 phy_dev_entry = tzd->devdata; in sys_get_trip_temp()
230 phy_dev_entry = tzd->devdata; in sys_set_trip_temp()
Ddove_thermal.c99 struct dove_thermal_priv *priv = thermal->devdata; in dove_get_temp()
Darmada_thermal.c160 struct armada_thermal_priv *priv = thermal->devdata; in armada_get_temp()
Drcar_thermal.c73 #define rcar_zone_to_priv(zone) ((zone)->devdata)
/linux-4.1.27/drivers/spi/
Dspi-orion.c79 const struct orion_spi_dev *devdata; member
116 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
119 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
123 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
175 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
412 const struct orion_spi_dev *devdata; in orion_spi_probe() local
450 devdata = (of_id) ? of_id->data : &orion_spi_dev_data; in orion_spi_probe()
451 spi->devdata = devdata; in orion_spi_probe()
474 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
475 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); in orion_spi_probe()
[all …]
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.h140 const struct gpmi_devdata *devdata; member
305 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
306 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
307 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
308 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
Dgpmi-nand.c130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
290 this->devdata->bch_max_ecc_strength); in legacy_set_geometry()
1997 this->devdata = of_id->data; in gpmi_nand_probe()
Dgpmi-lib.c864 int dll_threshold = this->devdata->max_chain_delay; in gpmi_compute_edo_timing()
/linux-4.1.27/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c79 static inline int __ti_thermal_get_temp(void *devdata, long *temp) in __ti_thermal_get_temp() argument
82 struct ti_thermal_data *data = devdata; in __ti_thermal_get_temp()
124 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_temp()
133 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_bind()
156 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_unbind()
173 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_mode()
185 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_set_mode()
266 ret = __ti_thermal_get_trend(thermal->devdata, &tr); in ti_thermal_get_trend()
/linux-4.1.27/include/linux/
Dthermal.h126 void *devdata; member
184 void *devdata; member
354 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
374 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
379 char *type, void *devdata, const struct thermal_cooling_device_ops *ops) in thermal_of_cooling_device_register() argument
Dlcd.h114 struct device *parent, void *devdata, struct lcd_ops *ops);
117 void *devdata, struct lcd_ops *ops);
Dbacklight.h129 struct device *dev, void *devdata, const struct backlight_ops *ops,
133 void *devdata, const struct backlight_ops *ops,
Dc2port.h65 struct c2port_ops *ops, void *devdata);
/linux-4.1.27/drivers/video/fbdev/
Dmxsfb.c182 const struct mxsfb_devdata *devdata; member
187 #define mxsfb_is_v3(host) (host->devdata->ipversion == 3)
188 #define mxsfb_is_v4(host) (host->devdata->ipversion == 4)
216 return (val & host->devdata->hs_wdth_mask) << in set_hsync_pulse_width()
217 host->devdata->hs_wdth_shift; in set_hsync_pulse_width()
222 return (val >> host->devdata->hs_wdth_shift) & in get_hsync_pulse_width()
223 host->devdata->hs_wdth_mask; in get_hsync_pulse_width()
478 host->base + host->devdata->transfer_count); in mxsfb_set_par()
520 host->base + host->devdata->next_buf); in mxsfb_set_par()
606 host->base + host->devdata->next_buf); in mxsfb_pan_display()
[all …]
/linux-4.1.27/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c25 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_zone_temp()
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp()
87 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()
Dint3403_thermal.c126 struct int3403_priv *priv = cdev->devdata; in int3403_get_max_state()
136 struct int3403_priv *priv = cdev->devdata; in int3403_get_cur_state()
151 struct int3403_priv *priv = cdev->devdata; in int3403_set_cur_state()
Dint3400_thermal.c198 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_get_mode()
211 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_set_mode()
/linux-4.1.27/drivers/acpi/
Dprocessor_thermal.c205 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
223 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
243 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
Dthermal.c535 struct acpi_thermal *tz = thermal->devdata; in thermal_get_temp()
553 struct acpi_thermal *tz = thermal->devdata; in thermal_get_mode()
567 struct acpi_thermal *tz = thermal->devdata; in thermal_set_mode()
597 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_type()
642 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_temp()
694 struct acpi_thermal *tz = thermal->devdata; in thermal_get_crit_temp()
708 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trend()
753 struct acpi_thermal *tz = thermal->devdata; in thermal_notify()
775 struct acpi_device *device = cdev->devdata; in acpi_thermal_cooling_device_cb()
776 struct acpi_thermal *tz = thermal->devdata; in acpi_thermal_cooling_device_cb()
Dfan.c101 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
169 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
208 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
Dvideo.c301 struct acpi_device *device = cooling_dev->devdata; in video_get_max_state()
311 struct acpi_device *device = cooling_dev->devdata; in video_get_cur_state()
330 struct acpi_device *device = cooling_dev->devdata; in video_set_cur_state()
/linux-4.1.27/drivers/video/backlight/
Dlcd.c209 void *devdata, struct lcd_ops *ops) in lcd_device_register() argument
227 dev_set_drvdata(&new_ld->dev, devdata); in lcd_device_register()
297 void *devdata, struct lcd_ops *ops) in devm_lcd_device_register() argument
305 lcd = lcd_device_register(name, parent, devdata, ops); in devm_lcd_device_register()
Dbacklight.c318 struct device *parent, void *devdata, const struct backlight_ops *ops, in backlight_device_register() argument
337 dev_set_drvdata(&new_bd->dev, devdata); in backlight_device_register()
496 const char *name, struct device *parent, void *devdata, in devm_backlight_device_register() argument
507 backlight = backlight_device_register(name, parent, devdata, ops, in devm_backlight_device_register()
/linux-4.1.27/drivers/thermal/st/
Dst_thermal.c117 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp()
146 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type()
164 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp()
/linux-4.1.27/drivers/hwmon/
Dpwm-fan.c121 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_max_state()
134 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_cur_state()
147 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_set_cur_state()
Dgpio-fan.c396 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_max_state()
408 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_cur_state()
420 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_set_cur_state()
/linux-4.1.27/drivers/platform/x86/
Dintel_mid_thermal.c179 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp()
519 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe()
539 kfree(pinfo->tzd[i]->devdata); in mid_thermal_remove()
Dintel_menlow.c66 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth()
92 struct acpi_device *device = cdev->devdata; in memory_get_cur_bandwidth()
115 struct acpi_device *device = cdev->devdata; in memory_set_cur_bandwidth()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dthermal.c60 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_dutycycle()
72 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_dutycycle()
/linux-4.1.27/drivers/tty/serial/
Dimx.c206 const struct imx_uart_data *devdata; member
268 return sport->devdata->uts_reg; in uts_reg()
273 return sport->devdata->devtype == IMX1_UART; in is_imx1_uart()
278 return sport->devdata->devtype == IMX21_UART; in is_imx21_uart()
283 return sport->devdata->devtype == IMX6Q_UART; in is_imx6q_uart()
1875 sport->devdata = of_id->data; in serial_imx_probe_dt()
1893 sport->devdata = (struct imx_uart_data *) pdev->id_entry->driver_data; in serial_imx_probe_pdata()
/linux-4.1.27/Documentation/thermal/
Dsysfs-api.txt35 int trips, int mask, void *devdata,
47 devdata: device private data
77 void *devdata, struct thermal_cooling_device_ops *)
83 devdata: device private data.
/linux-4.1.27/drivers/misc/c2port/
Dcore.c900 struct c2port_ops *ops, void *devdata) in c2port_device_register() argument