Lines Matching refs:modes
48 char **modes, **states;
67 USE(modes, suspend_mode);
76 USE(modes, hibernate_mode);
78 modes = strv_new("platform", "shutdown", NULL);
87 USE(modes, hybrid_mode);
89 modes = strv_new("suspend", "platform", "shutdown", NULL);
99 if ((!modes && !streq(verb, "suspend")) || !states) {
100 strv_free(modes);
105 *_modes = modes;
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))