Lines Matching refs:acpi_state
30 static void acpi_sleep_tts_switch(u32 acpi_state)
36 in_arg.integer.value = acpi_state;
60 static int acpi_sleep_prepare(u32 acpi_state)
64 if (acpi_state == ACPI_STATE_S3) {
75 acpi_state);
76 acpi_enable_wakeup_devices(acpi_state);
77 acpi_enter_sleep_state_prep(acpi_state);
167 u32 acpi_state = acpi_target_sleep_state;
171 if (acpi_state == ACPI_STATE_S0)
175 acpi_state);
176 acpi_disable_wakeup_devices(acpi_state);
177 acpi_leave_sleep_state(acpi_state);
218 u32 acpi_state = acpi_suspend_states[pm_state];
225 if (sleep_states[acpi_state]) {
226 acpi_target_sleep_state = acpi_state;
248 u32 acpi_state = acpi_target_sleep_state;
253 if (acpi_state == ACPI_STATE_S3) {
261 switch (acpi_state) {
264 status = acpi_enter_sleep_state(acpi_state);
276 acpi_leave_sleep_state_prep(acpi_state);
282 if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3))
298 if (acpi_state == ACPI_STATE_S3)
308 u32 acpi_state;
314 acpi_state = acpi_suspend_states[pm_state];
316 return sleep_states[acpi_state];
550 int acpi_suspend(u32 acpi_state)
558 if (acpi_state < 6 && states[acpi_state])
559 return pm_suspend(states[acpi_state]);
560 if (acpi_state == 4)