Home
last modified time | relevance | path

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

/systemd-251/src/shared/
Dsleep-config.c54 … "Sleep", "SuspendMode", config_parse_strv, 0, sc->modes + SLEEP_SUSPEND }, in parse_sleep_config()
55 … "Sleep", "SuspendState", config_parse_strv, 0, sc->states + SLEEP_SUSPEND }, in parse_sleep_config()
75 sc->allow[SLEEP_SUSPEND] = allow_suspend != 0; in parse_sleep_config()
82 if (!sc->states[SLEEP_SUSPEND]) in parse_sleep_config()
83 sc->states[SLEEP_SUSPEND] = strv_new("mem", "standby", "freeze"); in parse_sleep_config()
96 if (!sc->states[SLEEP_SUSPEND] || !sc->modes[SLEEP_HIBERNATE] in parse_sleep_config()
601 SLEEP_SUSPEND, in can_s2h()
645 if (operation == SLEEP_SUSPEND) in can_sleep_internal()
678 [SLEEP_SUSPEND] = "suspend",
Dsleep-config.h8 SLEEP_SUSPEND, enumerator
/systemd-251/src/test/
Dtest-sleep.c27 sum = strv_join(sleep_config->modes[SLEEP_SUSPEND], ", "); in TEST()
28 sus = strv_join(sleep_config->states[SLEEP_SUSPEND], ", "); in TEST()
33 log_debug(" allow_suspend: %u", sleep_config->allow[SLEEP_SUSPEND]); in TEST()
111 r = can_sleep(SLEEP_SUSPEND); in TEST()
/systemd-251/src/login/
Dlogind-action.c77 .sleep_operation = SLEEP_SUSPEND,
191 supported = can_sleep(SLEEP_SUSPEND) > 0; in manager_handle_action()
204 supported = can_sleep(SLEEP_SUSPEND) > 0; in manager_handle_action()
/systemd-251/src/sleep/
Dsleep.c285 r = execute(sleep_config, SLEEP_SUSPEND, NULL); in execute_s2h()
305 r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hibernate"); in execute_s2h()
415 … r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hybrid-sleep"); in run()