/drivers/staging/unisys/visornic/ |
D | visornic_main.c | 339 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 …]
|
/drivers/staging/unisys/visorhba/ |
D | visorhba_main.c | 96 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 …]
|
/drivers/staging/unisys/visorinput/ |
D | visorinput.c | 262 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 …]
|
/drivers/power/supply/ |
D | wm831x_backup.c | 116 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 …]
|
/drivers/pinctrl/visconti/ |
D | pinctrl-common.c | 30 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 …]
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common.c | 56 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(®_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 …]
|
D | pinctrl-mtk-common.h | 61 #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
|
/drivers/crypto/nx/ |
D | nx-842-pseries.c | 108 } __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() 548 static int nx842_OF_upd_status(struct nx842_devdata *devdata, in nx842_OF_upd_status() argument 557 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status() [all …]
|
/drivers/reset/ |
D | reset-simple.c | 158 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()
|
/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.h | 116 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)
|
/drivers/thermal/ |
D | thermal_of.c | 90 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() 198 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trend() 209 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind() 244 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind() 276 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_type() [all …]
|
D | k3_bandgap.c | 107 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()
|
D | spear_thermal.c | 34 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()
|
D | cpufreq_cooling.c | 210 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() 666 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
|
D | devfreq_cooling.c | 71 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()
|
/drivers/spi/ |
D | spi-orion.c | 98 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 …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_bios.c | 577 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(¶ms->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 …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 228 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind() 254 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind() 276 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_temp() 302 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_type() 314 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_temp() 326 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_temp() 339 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_trip_hyst() 348 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_set_trip_hyst() 357 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_trend_get() 384 struct mlxsw_thermal_module *tz = tzdev->devdata; in mlxsw_thermal_module_bind() [all …]
|
/drivers/gpu/drm/mxsfb/ |
D | mxsfb_kms.c | 42 return (val & mxsfb->devdata->hs_wdth_mask) << in set_hsync_pulse_width() 43 mxsfb->devdata->hs_wdth_shift; in set_hsync_pulse_width() 111 if (mxsfb->devdata->has_ctrl2) { in mxsfb_enable_controller() 250 if (mxsfb->devdata->has_overlay) in mxsfb_crtc_mode_set_nofb() 269 mxsfb->base + mxsfb->devdata->transfer_count); in mxsfb_crtc_mode_set_nofb() 362 writel(paddr, mxsfb->base + mxsfb->devdata->cur_buf); in mxsfb_crtc_atomic_enable() 363 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_crtc_atomic_enable() 465 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_plane_primary_atomic_update() 598 if (mxsfb->devdata->has_overlay) { in mxsfb_kms_init()
|
/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 99 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()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_thermal.c | 15 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()
|
/drivers/thermal/intel/int340x_thermal/ |
D | int340x_thermal_zone.c | 17 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()
|
D | int3406_thermal.c | 44 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()
|
/drivers/acpi/ |
D | processor_thermal.c | 194 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()
|
/drivers/video/backlight/ |
D | lcd.c | 191 void *devdata, struct lcd_ops *ops) in lcd_device_register() argument 209 dev_set_drvdata(&new_ld->dev, devdata); in lcd_device_register() 279 void *devdata, struct lcd_ops *ops) in devm_lcd_device_register() argument 287 lcd = lcd_device_register(name, parent, devdata, ops); in devm_lcd_device_register()
|