Lines Matching defs:verb
42 int parse_sleep_config(const char *verb, char ***_modes, char ***_states) {
65 if (streq(verb, "suspend")) {
74 } else if (streq(verb, "hibernate")) {
85 } else if (streq(verb, "hybrid-sleep")) {
97 assert_not_reached("what verb");
99 if ((!modes && !streq(verb, "suspend")) || !states) {
258 int can_sleep(const char *verb) {
262 assert(streq(verb, "suspend") ||
263 streq(verb, "hibernate") ||
264 streq(verb, "hybrid-sleep"));
266 r = parse_sleep_config(verb, &modes, &states);
273 return streq(verb, "suspend") || enough_memory_for_hibernation();