Searched refs:SLEEP_SUSPEND (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/shared/ |
D | sleep-config.c | 54 … "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",
|
D | sleep-config.h | 8 SLEEP_SUSPEND, enumerator
|
/systemd-251/src/test/ |
D | test-sleep.c | 27 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/ |
D | logind-action.c | 77 .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/ |
D | sleep.c | 285 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()
|