Home
last modified time | relevance | path

Searched refs:can_sleep (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/login/
Dlogind-action.c191 supported = can_sleep(SLEEP_SUSPEND) > 0; in manager_handle_action()
193 supported = can_sleep(SLEEP_HIBERNATE) > 0; in manager_handle_action()
195 supported = can_sleep(SLEEP_HYBRID_SLEEP) > 0; in manager_handle_action()
197 supported = can_sleep(SLEEP_SUSPEND_THEN_HIBERNATE) > 0; in manager_handle_action()
204 supported = can_sleep(SLEEP_SUSPEND) > 0; in manager_handle_action()
Dlogind-dbus.c1916 r = can_sleep(a->sleep_operation); in method_do_shutdown_or_sleep()
2384 r = can_sleep(a->sleep_operation); in method_can_shutdown_or_sleep()
/systemd-251/src/test/
Dtest-sleep.c111 r = can_sleep(SLEEP_SUSPEND); in TEST()
113 r = can_sleep(SLEEP_HIBERNATE); in TEST()
115 r = can_sleep(SLEEP_HYBRID_SLEEP); in TEST()
117 r = can_sleep(SLEEP_SUSPEND_THEN_HIBERNATE); in TEST()
/systemd-251/src/shared/
Dsleep-config.h55 int can_sleep(SleepOperation operation);
Dsleep-config.c654 int can_sleep(SleepOperation operation) { in can_sleep() function