Home
last modified time | relevance | path

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

1234

/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c56 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
64 return ((pin >> 4) & pctl->devdata->port_mask) in mtk_get_port()
65 << pctl->devdata->port_shf; in mtk_get_port()
76 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
79 if (pctl->devdata->spec_dir_set) in mtk_pmx_gpio_set_direction()
80 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
98 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
119 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
120 pctl->devdata->ies_offset == MTK_PINCTRL_NOT_SUPPORT && in mtk_pconf_set_ies_smt()
124 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))
269 const struct mtk_pinctrl_devdata *devdata; member
/Linux-v5.10/drivers/crypto/nx/
Dnx-842-pseries.c108 } __rcu *devdata; variable
304 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress()
435 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress()
522 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
524 if (devdata) { in nx842_OF_set_defaults()
525 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
526 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
527 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
555 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status()
581 static int nx842_OF_upd_maxsglen(struct nx842_devdata *devdata, in nx842_OF_upd_maxsglen() argument
[all …]
/Linux-v5.10/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.h116 const struct gpmi_devdata *devdata; member
166 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
167 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
168 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
169 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
170 #define GPMI_IS_MX7D(x) ((x)->devdata->type == IS_MX7D)
/Linux-v5.10/drivers/reset/
Dreset-simple.c158 const struct reset_simple_devdata *devdata; in reset_simple_probe() local
164 devdata = of_device_get_match_data(dev); in reset_simple_probe()
182 if (devdata) { in reset_simple_probe()
183 reg_offset = devdata->reg_offset; in reset_simple_probe()
184 if (devdata->nr_resets) in reset_simple_probe()
185 data->rcdev.nr_resets = devdata->nr_resets; in reset_simple_probe()
186 data->active_low = devdata->active_low; in reset_simple_probe()
187 data->status_active_low = devdata->status_active_low; in reset_simple_probe()
/Linux-v5.10/drivers/thermal/
Dthermal_of.c90 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
101 struct __thermal_zone *data = tz->devdata; in of_thermal_set_trips()
121 struct __thermal_zone *data = tz->devdata; in of_thermal_get_ntrips()
142 struct __thermal_zone *data = tz->devdata; in of_thermal_is_trip_valid()
164 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_points()
187 struct __thermal_zone *data = tz->devdata; in of_thermal_set_emul_temp()
195 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trend()
206 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind()
241 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind()
273 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_type()
[all …]
Dk3_bandgap.c107 static int k3_bgp_read_temp(struct k3_thermal_data *devdata, in k3_bgp_read_temp() argument
113 bgp = devdata->bgp; in k3_bgp_read_temp()
124 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
126 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
128 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
140 static int k3_thermal_get_temp(void *devdata, int *temp) in k3_thermal_get_temp() argument
142 struct k3_thermal_data *data = 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()
Ddevfreq_cooling.c71 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
81 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_cur_state()
91 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_set_cur_state()
234 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power()
294 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_state2power()
311 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_power2state()
564 dfc = cdev->devdata; in devfreq_cooling_unregister()
Dcpufreq_cooling.c210 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_requested_power()
269 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_state2power()
308 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_power2state()
388 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state()
407 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state()
427 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state()
668 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
/Linux-v5.10/drivers/spi/
Dspi-orion.c98 const struct orion_spi_dev *devdata; member
137 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
140 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
144 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
221 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
305 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()
668 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c233 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind()
259 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind()
281 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_temp()
307 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_type()
319 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_temp()
331 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_temp()
344 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_hyst()
353 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_hyst()
362 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_trend_get()
389 struct mlxsw_thermal_module *tz = tzdev->devdata; in mlxsw_thermal_module_bind()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/display/
Dintel_bios.c577 const struct display_device_data *devdata; in parse_sdvo_device_mapping() local
590 list_for_each_entry(devdata, &dev_priv->vbt.display_devices, node) { in parse_sdvo_device_mapping()
591 child = &devdata->child; in parse_sdvo_device_mapping()
1416 struct display_device_data *devdata; in parse_compression_parameters() local
1441 list_for_each_entry(devdata, &i915->vbt.display_devices, node) { in parse_compression_parameters()
1442 child = &devdata->child; in parse_compression_parameters()
1461 devdata->dsc = kmemdup(&params->data[index], in parse_compression_parameters()
1462 sizeof(*devdata->dsc), GFP_KERNEL); in parse_compression_parameters()
1689 struct display_device_data *devdata, in parse_ddi_port() argument
1692 const struct child_device_config *child = &devdata->child; in parse_ddi_port()
[all …]
/Linux-v5.10/include/linux/
Dthermal.h98 void *devdata; member
159 void *devdata; member
390 char *type, void *devdata,
404 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
413 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
418 char *type, void *devdata, const struct thermal_cooling_device_ops *ops) in thermal_of_cooling_device_register() argument
423 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-v5.10/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-v5.10/drivers/gpu/drm/mxsfb/
Dmxsfb_kms.c42 return (val & mxsfb->devdata->hs_wdth_mask) << in set_hsync_pulse_width()
43 mxsfb->devdata->hs_wdth_shift; in set_hsync_pulse_width()
210 if (mxsfb->devdata->has_overlay) in mxsfb_crtc_mode_set_nofb()
229 mxsfb->base + mxsfb->devdata->transfer_count); in mxsfb_crtc_mode_set_nofb()
322 writel(paddr, mxsfb->base + mxsfb->devdata->cur_buf); in mxsfb_crtc_atomic_enable()
323 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_crtc_atomic_enable()
425 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_plane_primary_atomic_update()
558 if (mxsfb->devdata->has_overlay) { in mxsfb_kms_init()
/Linux-v5.10/drivers/phy/freescale/
Dphy-fsl-imx8-mipi-dphy.c99 const struct mixel_dphy_devdata *devdata; member
298 phy_write(phy, priv->cfg.rxhs_settle, priv->devdata->reg_rxhs_settle); in mixel_phy_set_hs_timings()
334 phy_write(phy, 0x01, priv->devdata->reg_tx_rcal); in mixel_dphy_configure()
335 phy_write(phy, 0x00, priv->devdata->reg_auto_pd_en); in mixel_dphy_configure()
336 phy_write(phy, 0x02, priv->devdata->reg_rxlprp); in mixel_dphy_configure()
337 phy_write(phy, 0x02, priv->devdata->reg_rxcdrp); in mixel_dphy_configure()
448 priv->devdata = of_device_get_match_data(&pdev->dev); in mixel_dphy_probe()
449 if (!priv->devdata) in mixel_dphy_probe()
/Linux-v5.10/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()
79 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type()
111 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_set_trip_temp()
133 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_hyst()
/Linux-v5.10/drivers/acpi/
Dprocessor_thermal.c194 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
212 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
232 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()

1234