| /linux/drivers/power/supply/ |
| H A 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() 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/gpu/drm/i915/display/ |
| H A D | intel_bios.c | 626 const struct intel_bios_encoder_data *devdata, in opregion_get_panel_type() argument 633 const struct intel_bios_encoder_data *devdata, in vbt_get_panel_type() argument 649 if (devdata && devdata->child.handle == DEVICE_HANDLE_LFP2) in vbt_get_panel_type() 653 devdata && devdata->child.handle != DEVICE_HANDLE_LFP1); in vbt_get_panel_type() 659 const struct intel_bios_encoder_data *devdata, in pnpid_get_panel_type() argument 709 const struct intel_bios_encoder_data *devdata, in fallback_get_panel_type() argument 723 const struct intel_bios_encoder_data *devdata, in get_panel_type() argument 729 const struct intel_bios_encoder_data *devdata, in get_panel_type() 753 panel_types[i].panel_type = panel_types[i].get_panel_type(display, devdata, in get_panel_type() 1221 const struct intel_bios_encoder_data *devdata; in parse_sdvo_device_mapping() local [all …]
|
| /linux/drivers/pinctrl/visconti/ |
| H A 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 …]
|
| H A D | pinctrl-common.h | 94 const struct visconti_pinctrl_devdata *devdata);
|
| /linux/drivers/crypto/nx/ |
| H A D | nx-common-pseries.c | 136 static struct nx842_devdata __rcu *devdata; variable 332 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress() 463 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress() 550 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument 552 if (devdata) { in nx842_OF_set_defaults() 553 devdata->max_sync_size = 0; in nx842_OF_set_defaults() 554 devdata->max_sync_sg = 0; in nx842_OF_set_defaults() 555 devdata->max_sg_len = 0; in nx842_OF_set_defaults() 576 static int nx842_OF_upd_status(struct nx842_devdata *devdata, in nx842_OF_upd_status() argument 585 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | rtq6056.c | 93 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 D | gpmi-nand.h | 122 const struct gpmi_devdata *devdata; member 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 D | reset-simple.c | 164 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 D | reset-tps380x.c | 74 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/phy/freescale/ |
| H A D | phy-fsl-imx8-mipi-dphy.c | 128 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/thermal/ |
| H A D | devfreq_cooling.c | 67 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 D | cpufreq_cooling.c | 236 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() 437 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_max_state() 456 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_get_cur_state() 476 struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; in cpufreq_set_cur_state() 688 cpufreq_cdev = cdev->devdata; in cpufreq_cooling_unregister()
|
| H A D | thermal_core.c | 1059 const char *type, void *devdata, in __thermal_cooling_device_register() argument 1095 cdev->devdata = devdata; in __thermal_cooling_device_register() 1158 thermal_cooling_device_register(const char *type, void *devdata, in thermal_cooling_device_register() argument 1161 return __thermal_cooling_device_register(NULL, type, devdata, ops); in thermal_cooling_device_register() 1182 const char *type, void *devdata, in thermal_of_cooling_device_register() argument 1185 return __thermal_cooling_device_register(np, type, devdata, ops); in thermal_of_cooling_device_register() 1215 const char *type, void *devdata, in devm_thermal_of_cooling_device_register() argument 1225 tcd = __thermal_cooling_device_register(np, type, devdata, ops); in devm_thermal_of_cooling_device_register() 1499 int num_trips, void *devdata, in thermal_zone_device_register_with_trips() argument 1579 tz->devdata = devdata; in thermal_zone_device_register_with_trips() [all …]
|
| H A D | k3_j72xx_bandgap.c | 219 static inline int k3_bgp_read_temp(struct k3_thermal_data *devdata, in k3_bgp_read_temp() argument 225 bgp = devdata->bgp; in k3_bgp_read_temp() 235 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 237 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 239 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
|
| H A D | khadas_mcu_fan.c | 51 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 D | cpuidle_cooling.c | 105 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/video/backlight/ |
| H A D | lcd.c | 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() 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()
|
| H A D | backlight.c | 366 struct device *parent, void *devdata, const struct backlight_ops *ops, in backlight_device_register() argument 385 dev_set_drvdata(&new_bd->dev, devdata); in backlight_device_register() 528 const char *name, struct device *parent, void *devdata, in devm_backlight_device_register() argument 539 backlight = backlight_device_register(name, parent, devdata, ops, in devm_backlight_device_register()
|
| /linux/include/linux/ |
| H A D | lcd.h | 122 struct device *parent, void *devdata, const struct lcd_ops *ops); 125 void *devdata, const struct lcd_ops *ops);
|
| H A D | c2port.h | 58 struct c2port_ops *ops, void *devdata);
|
| /linux/drivers/acpi/ |
| H A D | processor_thermal.c | 238 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()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | thermal.c | 29 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/gpu/drm/mxsfb/ |
| H A D | mxsfb_drv.c | 210 const struct mxsfb_devdata *devdata) in mxsfb_load() argument 222 mxsfb->devdata = devdata; in mxsfb_load()
|
| H A D | mxsfb_drv.h | 30 const struct mxsfb_devdata *devdata; member
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | thermal.c | 28 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()
|