Lines Matching refs:states
48 char **modes, **states;
70 USE(states, suspend_state);
72 states = strv_new("mem", "standby", "freeze", NULL);
81 USE(states, hibernate_state);
83 states = strv_new("disk", NULL);
92 USE(states, hybrid_state);
94 states = strv_new("disk", NULL);
99 if ((!modes && !streq(verb, "suspend")) || !states) {
101 strv_free(states);
106 *_states = states;
259 _cleanup_strv_free_ char **modes = NULL, **states = NULL;
266 r = parse_sleep_config(verb, &modes, &states);
270 if (!can_sleep_state(states) || !can_sleep_disk(modes))