Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/staging/unisys/visornic/
Dvisornic_main.c339 static void visornic_serverdown_complete(struct visornic_devdata *devdata) in visornic_serverdown_complete() argument
341 struct net_device *netdev = devdata->netdev; in visornic_serverdown_complete()
344 del_timer_sync(&devdata->irq_poll_timer); in visornic_serverdown_complete()
350 atomic_set(&devdata->num_rcvbuf_in_iovm, 0); in visornic_serverdown_complete()
351 devdata->chstat.sent_xmit = 0; in visornic_serverdown_complete()
352 devdata->chstat.got_xmit_done = 0; in visornic_serverdown_complete()
354 if (devdata->server_down_complete_func) in visornic_serverdown_complete()
355 (*devdata->server_down_complete_func)(devdata->dev, 0); in visornic_serverdown_complete()
357 devdata->server_down = true; in visornic_serverdown_complete()
358 devdata->server_change_state = false; in visornic_serverdown_complete()
[all …]
/Linux-v4.19/drivers/staging/unisys/visorhba/
Dvisorhba_main.c96 struct visorhba_devdata *devdata; member
146 static int add_scsipending_entry(struct visorhba_devdata *devdata, in add_scsipending_entry() argument
153 spin_lock_irqsave(&devdata->privlock, flags); in add_scsipending_entry()
154 insert_location = devdata->nextinsert; in add_scsipending_entry()
155 while (devdata->pending[insert_location].sent) { in add_scsipending_entry()
157 if (insert_location == (int)devdata->nextinsert) { in add_scsipending_entry()
158 spin_unlock_irqrestore(&devdata->privlock, flags); in add_scsipending_entry()
163 entry = &devdata->pending[insert_location]; in add_scsipending_entry()
171 devdata->nextinsert = (insert_location + 1) % MAX_PENDING_REQUESTS; in add_scsipending_entry()
172 spin_unlock_irqrestore(&devdata->privlock, flags); in add_scsipending_entry()
[all …]
/Linux-v4.19/drivers/staging/unisys/visorinput/
Dvisorinput.c262 struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); in visorinput_open() local
264 if (!devdata) { in visorinput_open()
277 mutex_lock(&devdata->lock_visor_dev); in visorinput_open()
278 devdata->interrupts_enabled = true; in visorinput_open()
279 if (devdata->paused) in visorinput_open()
281 visorbus_enable_channel_interrupts(devdata->dev); in visorinput_open()
284 mutex_unlock(&devdata->lock_visor_dev); in visorinput_open()
290 struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); in visorinput_close() local
292 if (!devdata) { in visorinput_close()
305 mutex_lock(&devdata->lock_visor_dev); in visorinput_close()
[all …]
/Linux-v4.19/drivers/power/supply/
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 …]
/Linux-v4.19/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c64 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
72 return ((pin >> 4) & pctl->devdata->port_mask) in mtk_get_port()
73 << pctl->devdata->port_shf; in mtk_get_port()
84 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
87 if (pctl->devdata->spec_dir_set) in mtk_pmx_gpio_set_direction()
88 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
106 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
127 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
128 pctl->devdata->ies_offset == MTK_PINCTRL_NOT_SUPPORT && in mtk_pconf_set_ies_smt()
132 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
[all …]
Dpinctrl-mtk-common.h69 #define SET_ADDR(x, y) (x + (y->devdata->port_align))
70 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1))
277 const struct mtk_pinctrl_devdata *devdata; member
/Linux-v4.19/drivers/crypto/nx/
Dnx-842-pseries.c121 } __rcu *devdata; variable
317 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress()
449 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress()
537 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
539 if (devdata) { in nx842_OF_set_defaults()
540 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
541 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
542 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
570 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status()
596 static int nx842_OF_upd_maxsglen(struct nx842_devdata *devdata, in nx842_OF_upd_maxsglen() argument
[all …]
/Linux-v4.19/drivers/reset/
Dreset-simple.c137 const struct reset_simple_devdata *devdata; in reset_simple_probe() local
143 devdata = of_device_get_match_data(dev); in reset_simple_probe()
161 if (devdata) { in reset_simple_probe()
162 reg_offset = devdata->reg_offset; in reset_simple_probe()
163 if (devdata->nr_resets) in reset_simple_probe()
164 data->rcdev.nr_resets = devdata->nr_resets; in reset_simple_probe()
165 data->active_low = devdata->active_low; in reset_simple_probe()
166 data->status_active_low = devdata->status_active_low; in reset_simple_probe()
/Linux-v4.19/drivers/thermal/
Dof-thermal.c78 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
89 struct __thermal_zone *data = tz->devdata; in of_thermal_set_trips()
109 struct __thermal_zone *data = tz->devdata; in of_thermal_get_ntrips()
130 struct __thermal_zone *data = tz->devdata; in of_thermal_is_trip_valid()
152 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_points()
175 struct __thermal_zone *data = tz->devdata; in of_thermal_set_emul_temp()
183 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trend()
194 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind()
223 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind()
249 struct __thermal_zone *data = tz->devdata; in of_thermal_get_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()
112 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_temp()
128 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trend()
139 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_mode()
152 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_set_mode()
169 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_type()
184 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_temp()
199 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()
61 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend()
78 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume()
163 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_exit()
Dclock_cooling.c182 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_level()
310 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_max_state()
334 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_cur_state()
354 struct clock_cooling_device *clock_device = cdev->devdata; in clock_cooling_set_cur_state()
444 ccdev = cdev->devdata; in clock_cooling_unregister()
Ddevfreq_cooling.c114 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
124 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_cur_state()
134 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_set_cur_state()
277 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power()
338 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_state2power()
356 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_power2state()
599 dfc = cdev->devdata; in devfreq_cooling_unregister()
Dda9062-thermal.c136 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_mode()
145 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_type()
164 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_trip_temp()
182 struct da9062_thermal *thermal = z->devdata; in da9062_thermal_get_temp()
Dcpu_cooling.c351 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state()
370 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state()
390 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state()
440 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_requested_power()
501 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_state2power()
541 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_power2state()
802 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.h108 const struct gpmi_devdata *devdata; member
202 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
203 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
204 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
205 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
206 #define GPMI_IS_MX7D(x) ((x)->devdata->type == IS_MX7D)
/Linux-v4.19/drivers/spi/
Dspi-orion.c103 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()
594 const struct orion_spi_dev *devdata; in orion_spi_probe() local
635 devdata = (of_id) ? of_id->data : &orion_spi_dev_data; in orion_spi_probe()
636 spi->devdata = devdata; in orion_spi_probe()
669 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c102 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind()
128 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind()
150 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_mode()
160 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_mode()
180 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_temp()
203 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_type()
215 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_temp()
227 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_temp()
259 struct mlxsw_thermal *thermal = cdev->devdata; in mlxsw_thermal_get_cur_state()
285 struct mlxsw_thermal *thermal = cdev->devdata; in mlxsw_thermal_set_cur_state()
/Linux-v4.19/drivers/video/fbdev/
Dmxsfb.c181 const struct mxsfb_devdata *devdata; member
186 #define mxsfb_is_v3(host) (host->devdata->ipversion == 3)
187 #define mxsfb_is_v4(host) (host->devdata->ipversion == 4)
213 return (val & host->devdata->hs_wdth_mask) << in set_hsync_pulse_width()
214 host->devdata->hs_wdth_shift; in set_hsync_pulse_width()
219 return (val >> host->devdata->hs_wdth_shift) & in get_hsync_pulse_width()
220 host->devdata->hs_wdth_mask; in get_hsync_pulse_width()
475 host->base + host->devdata->transfer_count); in mxsfb_set_par()
517 host->base + host->devdata->next_buf); in mxsfb_set_par()
603 host->base + host->devdata->next_buf); in mxsfb_pan_display()
[all …]
/Linux-v4.19/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()
Dint3406_thermal.c48 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state()
58 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state()
75 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_cur_state()
/Linux-v4.19/drivers/acpi/
Dprocessor_thermal.c201 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
219 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
239 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
/Linux-v4.19/include/linux/
Dthermal.h135 void *devdata; member
199 void *devdata; member
475 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
499 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
504 char *type, void *devdata, const struct thermal_cooling_device_ops *ops) in thermal_of_cooling_device_register() argument
Dlcd.h115 struct device *parent, void *devdata, struct lcd_ops *ops);
118 void *devdata, struct lcd_ops *ops);
/Linux-v4.19/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()

123