Lines Matching refs:handle

23                 .handle                          = HANDLE_POWEROFF,
35 .handle = HANDLE_REBOOT,
47 .handle = HANDLE_HALT,
59 .handle = HANDLE_KEXEC,
71 .handle = HANDLE_SUSPEND,
80 .handle = HANDLE_HIBERNATE,
89 .handle = HANDLE_HYBRID_SLEEP,
98 .handle = HANDLE_SUSPEND_THEN_HIBERNATE,
107 .handle = HANDLE_FACTORY_RESET,
127 HandleAction handle, in manager_handle_action() argument
152 if (handle == HANDLE_IGNORE) { in manager_handle_action()
174 handle_action_to_string(handle), in manager_handle_action()
181 if (handle == HANDLE_LOCK) { in manager_handle_action()
190 if (handle == HANDLE_SUSPEND) in manager_handle_action()
192 else if (handle == HANDLE_HIBERNATE) in manager_handle_action()
194 else if (handle == HANDLE_HYBRID_SLEEP) in manager_handle_action()
196 else if (handle == HANDLE_SUSPEND_THEN_HIBERNATE) in manager_handle_action()
198 else if (handle == HANDLE_KEXEC) in manager_handle_action()
203 …if (!supported && IN_SET(handle, HANDLE_HIBERNATE, HANDLE_HYBRID_SLEEP, HANDLE_SUSPEND_THEN_HIBERN… in manager_handle_action()
207 handle_action_to_string(handle)); in manager_handle_action()
208 handle = HANDLE_SUSPEND; in manager_handle_action()
214 … "Requested %s operation not supported, ignoring.", handle_action_to_string(handle)); in manager_handle_action()
220 handle_action_to_string(handle)); in manager_handle_action()
222 inhibit_operation = handle_action_lookup(handle)->inhibit_what; in manager_handle_action()
235 handle_action_to_string(handle), in manager_handle_action()
243 log_info("%s", message_table[handle]); in manager_handle_action()
245 r = bus_manager_shutdown_or_sleep_now_or_later(m, handle_action_lookup(handle), &error); in manager_handle_action()
248 handle_action_to_string(handle), in manager_handle_action()