Home
last modified time | relevance | path

Searched full:power_state (Results 1 – 25 of 164) sorted by relevance

1234567

/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_atombios.c2045 rdev->pm.power_state[state_index].misc = misc; in radeon_atombios_parse_misc_flags_1_3()
2046 rdev->pm.power_state[state_index].misc2 = misc2; in radeon_atombios_parse_misc_flags_1_3()
2049 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2052 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2055 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2058 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2061 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2063 rdev->pm.power_state[state_index].flags &= in radeon_atombios_parse_misc_flags_1_3()
2067 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2070 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
[all …]
Dradeon_combios.c2633 rdev->pm.power_state = kcalloc(2, sizeof(struct radeon_power_state), in radeon_combios_get_power_modes()
2635 if (rdev->pm.power_state) { in radeon_combios_get_power_modes()
2637 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes()
2640 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes()
2643 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes()
2644 !rdev->pm.power_state[1].clock_info) in radeon_combios_get_power_modes()
2720 rdev->pm.power_state[state_index].num_clock_modes = 1; in radeon_combios_get_power_modes()
2721 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); in radeon_combios_get_power_modes()
2722 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6); in radeon_combios_get_power_modes()
2723 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_combios_get_power_modes()
[all …]
Dradeon_pm.c65 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
183 sclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
197 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
200 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
325 struct radeon_power_state *power_state; in radeon_pm_print_states() local
330 power_state = &rdev->pm.power_state[i]; in radeon_pm_print_states()
332 radeon_pm_state_type_name[power_state->type]); in radeon_pm_print_states()
336 DRM_DEBUG_DRIVER("\t%d PCIE Lanes\n", power_state->pcie_lanes); in radeon_pm_print_states()
337 if (power_state->flags & RADEON_PM_STATE_SINGLE_DISPLAY_ONLY) in radeon_pm_print_states()
339 DRM_DEBUG_DRIVER("\t%d Clock Mode(s)\n", power_state->num_clock_modes); in radeon_pm_print_states()
[all …]
/linux-6.12.1/drivers/iio/common/hid-sensors/
Dhid-sensor-trigger.c97 st->power_state.report_id, in _hid_sensor_power_state()
98 st->power_state.index, in _hid_sensor_power_state()
115 st->power_state.report_id, in _hid_sensor_power_state()
116 st->power_state.index, in _hid_sensor_power_state()
125 state_val += st->power_state.logical_minimum; in _hid_sensor_power_state()
126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
127 st->power_state.index, sizeof(state_val), in _hid_sensor_power_state()
139 pr_debug("HID_SENSOR %s set power_state %d report_state %d\n", in _hid_sensor_power_state()
142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
143 st->power_state.index, in _hid_sensor_power_state()
Dhid-sensor-attributes.c518 &st->power_state); in hid_sensor_parse_common_attributes()
520 st->power_state.logical_minimum = 1; in hid_sensor_parse_common_attributes()
572 st->power_state.index, st->power_state.report_id, in hid_sensor_parse_common_attributes()
577 st->power_state.report_id, in hid_sensor_parse_common_attributes()
578 st->power_state.index, sizeof(value), &value); in hid_sensor_parse_common_attributes()
/linux-6.12.1/arch/arm/mach-omap2/
Domap-mpuss-lowpower.c217 * @power_state: Low power state.
227 __cpuidle int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state, in omap4_enter_lowpower() argument
236 switch (power_state) { in omap4_enter_lowpower()
272 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower()
279 omap_pm_ops.scu_prepare(cpu, power_state); in omap4_enter_lowpower()
313 * @power_state: CPU low power state.
315 int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
324 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu()
325 false, power_state); in omap4_hotplug_cpu()
327 if (power_state == PWRDM_POWER_OFF) in omap4_hotplug_cpu()
[all …]
Dpm34xx.c55 struct power_state { struct
311 struct power_state *pwrst; in omap3_pm_suspend()
360 struct power_state *pwrst; in omap3_pm_off_mode_enable()
384 struct power_state *pwrst; in omap3_pm_get_suspend_state()
395 struct power_state *pwrst; in omap3_pm_set_suspend_state()
408 struct power_state *pwrst; in pwrdms_setup()
413 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
474 struct power_state *pwrst, *tmp; in omap3_pm_init()
Dcommon.h259 extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state,
261 extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state);
264 unsigned int power_state, in omap4_enter_lowpower() argument
271 static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
Dpm44xx.c26 struct power_state { struct
54 struct power_state *pwrst; in omap4_pm_suspend() argument
115 struct power_state *pwrst; in pwrdms_setup()
135 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
/linux-6.12.1/drivers/misc/
Dtsl2550.c36 unsigned int power_state:1; member
77 data->power_state = state; in tsl2550_set_power_state()
180 return sprintf(buf, "%u\n", data->power_state); in tsl2550_show_power_state()
204 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO,
226 if (data->power_state == 0) in tsl2550_store_operating_mode()
276 if (!data->power_state) in tsl2550_show_lux1_input()
318 data->power_state = 1; in tsl2550_init_client()
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-devices-power_state1 What: /sys/devices/.../power_state
5 The /sys/devices/.../power_state attribute is only present for
Dsysfs-bus-i2c-devices-hm63528 What: /sys/bus/i2c/devices/.../power_state
Dsysfs-devices-real_power_state18 from the value of the /sys/devices/.../power_state attribute for
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.h119 * @power_state - the DC power state
121 …dmub_srv_set_power_state(struct dc_dmub_srv *dc_dmub_srv, enum dc_acpi_cm_power_state power_state);
131 * @power_state - the DC power state
134 enum dc_acpi_cm_power_state power_state);
/linux-6.12.1/drivers/iio/light/
Dapds9300.c49 int power_state; member
95 if (!data->power_state) in apds9300_get_adc_val()
113 if (!data->power_state) in apds9300_set_thresh_low()
134 if (!data->power_state) in apds9300_set_thresh_hi()
156 if (!data->power_state) in apds9300_set_intr_state()
185 data->power_state = state; in apds9300_set_power_state()
/linux-6.12.1/drivers/mfd/
Dsi476x-i2c.c275 if (core->power_state == SI476X_POWER_INCONSISTENT) { in si476x_core_set_power_state()
281 if (next_state != core->power_state) { in si476x_core_set_power_state()
287 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
301 core->power_state = next_state; in si476x_core_set_power_state()
305 core->power_state = next_state; in si476x_core_set_power_state()
308 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
313 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
682 return core->power_state == SI476X_POWER_UP_FULL; in si476x_core_is_powered_up()
713 core->power_state = SI476X_POWER_DOWN; in si476x_core_probe()
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_processpptables.c352 uint32_t entry_index, struct pp_power_state *power_state,
364 power_state->classification.bios_index = entry_index;
384 result = call_back_func(hwmgr, (void *)state_entry, power_state,
391 if (!result && (power_state->classification.flags &
393 result = hwmgr->hwmgr_func->patch_boot_state(hwmgr, &(power_state->hardware));
/linux-6.12.1/drivers/pnp/pnpacpi/
Dcore.c146 int power_state = acpi_pm_device_sleep_state(&dev->dev, NULL, in pnpacpi_suspend() local
148 if (power_state < 0) in pnpacpi_suspend()
149 power_state = (state.event == PM_EVENT_ON) ? in pnpacpi_suspend()
158 error = acpi_device_set_power(acpi_dev, power_state); in pnpacpi_suspend()
/linux-6.12.1/drivers/media/radio/si4713/
Dsi4713.c354 if (sdev->power_state) in si4713_powerup()
390 sdev->power_state = POWER_ON; in si4713_powerup()
424 if (!sdev->power_state) in si4713_powerdown()
454 sdev->power_state = POWER_OFF; in si4713_powerdown()
801 if (sdev->power_state) in si4713_set_mute()
817 if (sdev->power_state) { in si4713_set_rds_ps_name()
856 if (!sdev->power_state) in si4713_set_rds_radio_text()
1136 if (!sdev->power_state) in si4713_s_ctrl()
1233 if (sdev->power_state) { in si4713_ioctl()
1274 if (sdev->power_state) { in si4713_g_modulator()
[all …]
/linux-6.12.1/sound/pci/hda/
Dhda_codec.c808 unsigned int power_state);
1022 codec->core.dev.power.power_state = PMSG_ON; in snd_hda_codec_device_new()
2735 * @power_state: the power state to set (AC_PWRST_*)
2742 unsigned int power_state) in snd_hda_codec_set_power_to_all() argument
2748 unsigned int state = power_state; in snd_hda_codec_set_power_to_all()
2752 state = codec->power_filter(codec, nid, power_state); in snd_hda_codec_set_power_to_all()
2753 if (state != power_state && power_state == AC_PWRST_D3) in snd_hda_codec_set_power_to_all()
2766 * @power_state: power state to evalue
2773 unsigned int power_state) in snd_hda_codec_eapd_power_filter() argument
2776 return power_state; in snd_hda_codec_eapd_power_filter()
[all …]
/linux-6.12.1/drivers/hid/
Dhid-sensor-custom.c50 struct hid_sensor_custom_field *power_state; member
187 if (sensor_inst->power_state) in set_power_report_state()
189 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
190 sensor_inst->power_state->attribute.index, in set_power_report_state()
200 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
202 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
203 sensor_inst->power_state->attribute.index, in set_power_report_state()
617 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
/linux-6.12.1/drivers/firmware/arm_scmi/
Dpower.c59 __le32 power_state; member
284 r->power_state = le32_to_cpu(p->power_state); in scmi_power_fill_custom_report()
/linux-6.12.1/drivers/thermal/st/
Dst_thermal_memmap.c49 enum st_thermal_power_state power_state) in st_mmap_power_ctrl() argument
52 const unsigned int val = power_state ? mask : 0; in st_mmap_power_ctrl()
/linux-6.12.1/drivers/platform/x86/
Dapple-gmux.c75 enum vga_switcheroo_state power_state; member
525 gmux_data->power_state = state; in gmux_set_discrete_state()
561 .power_state = gmux_set_power_state,
568 .power_state = gmux_set_power_state,
770 if (gmux_data->power_state == VGA_SWITCHEROO_OFF) in gmux_resume()
771 gmux_set_discrete_state(gmux_data, gmux_data->power_state); in gmux_resume()
899 gmux_data->power_state = VGA_SWITCHEROO_ON; in gmux_probe()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/inc/
Dsmu_v11_0.h135 enum smu_11_0_power_state power_state; member
141 enum smu_11_0_power_state power_state; member

1234567