Home
last modified time | relevance | path

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

12345678

/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_atombios.c2049 rdev->pm.power_state[state_index].misc = misc; in radeon_atombios_parse_misc_flags_1_3()
2050 rdev->pm.power_state[state_index].misc2 = misc2; in radeon_atombios_parse_misc_flags_1_3()
2053 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2056 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2059 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2062 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2065 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2067 rdev->pm.power_state[state_index].flags &= in radeon_atombios_parse_misc_flags_1_3()
2071 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2074 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
[all …]
H A Dradeon_combios.c2648 rdev->pm.power_state = kcalloc(2, sizeof(struct radeon_power_state), in radeon_combios_get_power_modes()
2650 if (rdev->pm.power_state) { in radeon_combios_get_power_modes()
2652 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes()
2655 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes()
2658 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes()
2659 !rdev->pm.power_state[1].clock_info) in radeon_combios_get_power_modes()
2735 rdev->pm.power_state[state_index].num_clock_modes = 1; in radeon_combios_get_power_modes()
2736 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); in radeon_combios_get_power_modes()
2737 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6); in radeon_combios_get_power_modes()
2738 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_combios_get_power_modes()
[all …]
H A Dradeon_pm.c64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
182 sclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
196 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
199 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
324 struct radeon_power_state *power_state; in radeon_pm_print_states() local
329 power_state = &rdev->pm.power_state[i]; in radeon_pm_print_states()
331 radeon_pm_state_type_name[power_state->type]); in radeon_pm_print_states()
335 DRM_DEBUG_DRIVER("\t%d PCIE Lanes\n", power_state->pcie_lanes); in radeon_pm_print_states()
336 if (power_state->flags & RADEON_PM_STATE_SINGLE_DISPLAY_ONLY) in radeon_pm_print_states()
338 DRM_DEBUG_DRIVER("\t%d Clock Mode(s)\n", power_state->num_clock_modes); in radeon_pm_print_states()
[all …]
/openbmc/linux/drivers/iio/common/hid-sensors/
H A 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()
H A 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()
/openbmc/qemu/target/arm/
H A Darm-powerctl.c93 target_cpu->power_state = PSCI_ON; in arm_set_cpu_on_async_work()
128 if (target_cpu->power_state == PSCI_ON) { in arm_set_cpu_on()
166 if (target_cpu->power_state == PSCI_ON_PENDING) { in arm_set_cpu_on()
201 target_cpu->power_state = PSCI_ON; in arm_set_cpu_on_and_reset_async_work()
219 if (target_cpu->power_state == PSCI_ON) { in arm_set_cpu_on_and_reset()
232 if (target_cpu->power_state == PSCI_ON_PENDING) { in arm_set_cpu_on_and_reset()
252 target_cpu->power_state = PSCI_OFF; in arm_set_cpu_off_async_work()
272 if (target_cpu->power_state == PSCI_OFF) { in arm_set_cpu_off()
309 if (target_cpu->power_state == PSCI_OFF) { in arm_reset_cpu()
/openbmc/linux/arch/arm/mach-omap2/
H A 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 …]
H A 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()
H A 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
H A 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()
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/
H A Dboot-status-led.sh20 power_state=""
26power_state="$(busctl get-property $PWR_STATE_SERVICE $PWR_STATE_OBJPATH $PWR_STATE_INTERFACE_NAME…
30 if [[ $power_state != "\"xyz.openbmc_project.State.Chassis.PowerState.On\"" ]];then
/openbmc/linux/drivers/misc/
H A 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()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-devices-power_state1 What: /sys/devices/.../power_state
5 The /sys/devices/.../power_state attribute is only present for
/openbmc/linux/drivers/iio/light/
H A 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()
/openbmc/linux/drivers/mfd/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A 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));
/openbmc/linux/arch/mips/ar7/
H A Dsetup.c31 u32 power_state = readl(power_reg) | (3 << 30); in ar7_machine_power_off() local
33 writel(power_state, power_reg); in ar7_machine_power_off()
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_watchdog.robot251 [Arguments] ${set_raw_cmd} ${power_state} ${sel_event}
255 # power_state The expected power state of the host.
283 Wait Until Keyword Succeeds 1 min 20 sec Verify Host Power State ${power_state}
291 [Arguments] ${power_state}
294 # power_state Value of Host power state: "on" or "off".
297 Valid Value ipmi_state ${power_state}
/openbmc/linux/drivers/pnp/pnpacpi/
H A 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()
/openbmc/linux/drivers/media/radio/si4713/
H A 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 …]
/openbmc/openbmc-test-automation/lib/
H A Dstate_manager.robot164 ${power_state}= Get Chassis Power State
165 Should Be Equal On ${power_state}
170 ${power_state}= Get Chassis Power State
171 Should Be Equal Off ${power_state}
H A Dfan_utils.robot207 [Arguments] ${power_state}
213 # power_state Power staet of the system, either "On" or "Off"
218 Rpvars power_state num_fan_daemons
221 Run Keyword If '${power_state}' == 'On' and ${num_fan_daemons} == 0
225 Run Keyword If '${power_state}' == 'Off' and ${num_fan_daemons} != 0
/openbmc/linux/sound/pci/hda/
H A Dhda_codec.c810 unsigned int power_state);
1026 codec->core.dev.power.power_state = PMSG_ON; in snd_hda_codec_device_new()
2728 * @power_state: the power state to set (AC_PWRST_*)
2735 unsigned int power_state) in snd_hda_codec_set_power_to_all() argument
2741 unsigned int state = power_state; in snd_hda_codec_set_power_to_all()
2745 state = codec->power_filter(codec, nid, power_state); in snd_hda_codec_set_power_to_all()
2746 if (state != power_state && power_state == AC_PWRST_D3) in snd_hda_codec_set_power_to_all()
2759 * @power_state: power state to evalue
2766 unsigned int power_state) in snd_hda_codec_eapd_power_filter() argument
2769 return power_state; in snd_hda_codec_eapd_power_filter()
[all …]
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dpower.c56 __le32 power_state; member
259 r->power_state = le32_to_cpu(p->power_state); in scmi_power_fill_custom_report()
/openbmc/linux/drivers/hid/
H A 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()
618 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()

12345678