Lines Matching defs:acpi_state
36 static void acpi_sleep_tts_switch(u32 acpi_state)
40 status = acpi_execute_simple_method(NULL, "\\_TTS", acpi_state);
67 static int acpi_sleep_prepare(u32 acpi_state)
73 if (acpi_state == ACPI_STATE_S3 && !acpi_skip_set_wakeup_address()) {
81 pr_info("Preparing to enter system sleep state S%d\n", acpi_state);
82 acpi_enable_wakeup_devices(acpi_state);
83 acpi_enter_sleep_state_prep(acpi_state);
478 u32 acpi_state = acpi_target_sleep_state;
483 if (acpi_state == ACPI_STATE_S0)
486 pr_info("Waking up from system sleep state S%d\n", acpi_state);
487 acpi_disable_wakeup_devices(acpi_state);
488 acpi_leave_sleep_state(acpi_state);
518 static void acpi_pm_start(u32 acpi_state)
520 acpi_target_sleep_state = acpi_state;
560 u32 acpi_state = acpi_suspend_states[pm_state];
567 if (!sleep_states[acpi_state]) {
568 pr_err("ACPI does not support sleep state S%u\n", acpi_state);
571 if (acpi_state > ACPI_STATE_S1)
574 acpi_pm_start(acpi_state);
589 u32 acpi_state = acpi_target_sleep_state;
592 trace_suspend_resume(TPS("acpi_suspend"), acpi_state, true);
593 switch (acpi_state) {
596 status = acpi_enter_sleep_state(acpi_state);
609 trace_suspend_resume(TPS("acpi_suspend"), acpi_state, false);
615 acpi_leave_sleep_state_prep(acpi_state);
626 if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) {
662 u32 acpi_state;
668 acpi_state = acpi_suspend_states[pm_state];
670 return sleep_states[acpi_state];