Lines Matching refs:status
37 acpi_status status; in acpi_hw_legacy_sleep() local
48 status = acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, in acpi_hw_legacy_sleep()
50 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
51 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
55 status = acpi_hw_disable_all_gpes(); in acpi_hw_legacy_sleep()
56 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
57 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
59 status = acpi_hw_clear_acpi_status(); in acpi_hw_legacy_sleep()
60 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
61 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
66 status = acpi_hw_enable_all_wakeup_gpes(); in acpi_hw_legacy_sleep()
67 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
68 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
73 status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, in acpi_hw_legacy_sleep()
75 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
76 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
101 status = acpi_hw_write_pm1_control(pm1a_control, pm1b_control); in acpi_hw_legacy_sleep()
102 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
103 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
117 status = acpi_os_enter_sleep(sleep_state, pm1a_control, pm1b_control); in acpi_hw_legacy_sleep()
118 if (status == AE_CTRL_TERMINATE) { in acpi_hw_legacy_sleep()
121 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
122 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
127 status = acpi_hw_write_pm1_control(pm1a_control, pm1b_control); in acpi_hw_legacy_sleep()
128 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
129 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
146 status = acpi_hw_register_write(ACPI_REGISTER_PM1_CONTROL, in acpi_hw_legacy_sleep()
149 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
150 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
157 status = in acpi_hw_legacy_sleep()
159 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_sleep()
160 return_ACPI_STATUS(status); in acpi_hw_legacy_sleep()
184 acpi_status status = AE_OK; in acpi_hw_legacy_wake_prep() local
205 status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, in acpi_hw_legacy_wake_prep()
207 if (ACPI_SUCCESS(status)) { in acpi_hw_legacy_wake_prep()
230 return_ACPI_STATUS(status); in acpi_hw_legacy_wake_prep()
248 acpi_status status; in acpi_hw_legacy_wake() local
265 status = acpi_hw_disable_all_gpes(); in acpi_hw_legacy_wake()
266 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_wake()
267 return_ACPI_STATUS(status); in acpi_hw_legacy_wake()
270 status = acpi_hw_enable_all_runtime_gpes(); in acpi_hw_legacy_wake()
271 if (ACPI_FAILURE(status)) { in acpi_hw_legacy_wake()
272 return_ACPI_STATUS(status); in acpi_hw_legacy_wake()
315 return_ACPI_STATUS(status); in acpi_hw_legacy_wake()