Lines Matching refs:acpi_state
36 static void acpi_sleep_tts_switch(u32 acpi_state) in acpi_sleep_tts_switch() argument
40 status = acpi_execute_simple_method(NULL, "\\_TTS", acpi_state); in acpi_sleep_tts_switch()
63 static int acpi_sleep_prepare(u32 acpi_state) in acpi_sleep_prepare() argument
69 if (acpi_state == ACPI_STATE_S3) { in acpi_sleep_prepare()
78 pr_info("Preparing to enter system sleep state S%d\n", acpi_state); in acpi_sleep_prepare()
79 acpi_enable_wakeup_devices(acpi_state); in acpi_sleep_prepare()
80 acpi_enter_sleep_state_prep(acpi_state); in acpi_sleep_prepare()
475 u32 acpi_state = acpi_target_sleep_state; in acpi_pm_finish() local
480 if (acpi_state == ACPI_STATE_S0) in acpi_pm_finish()
483 pr_info("Waking up from system sleep state S%d\n", acpi_state); in acpi_pm_finish()
484 acpi_disable_wakeup_devices(acpi_state); in acpi_pm_finish()
485 acpi_leave_sleep_state(acpi_state); in acpi_pm_finish()
515 static void acpi_pm_start(u32 acpi_state) in acpi_pm_start() argument
517 acpi_target_sleep_state = acpi_state; in acpi_pm_start()
557 u32 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_begin() local
564 if (!sleep_states[acpi_state]) { in acpi_suspend_begin()
565 pr_err("ACPI does not support sleep state S%u\n", acpi_state); in acpi_suspend_begin()
568 if (acpi_state > ACPI_STATE_S1) in acpi_suspend_begin()
571 acpi_pm_start(acpi_state); in acpi_suspend_begin()
586 u32 acpi_state = acpi_target_sleep_state; in acpi_suspend_enter() local
591 trace_suspend_resume(TPS("acpi_suspend"), acpi_state, true); in acpi_suspend_enter()
592 switch (acpi_state) { in acpi_suspend_enter()
595 status = acpi_enter_sleep_state(acpi_state); in acpi_suspend_enter()
608 trace_suspend_resume(TPS("acpi_suspend"), acpi_state, false); in acpi_suspend_enter()
614 acpi_leave_sleep_state_prep(acpi_state); in acpi_suspend_enter()
625 if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) { in acpi_suspend_enter()
661 u32 acpi_state; in acpi_suspend_state_valid() local
667 acpi_state = acpi_suspend_states[pm_state]; in acpi_suspend_state_valid()
669 return sleep_states[acpi_state]; in acpi_suspend_state_valid()