Lines Matching refs:states
55 …{ "Sleep", "SuspendState", config_parse_strv, 0, sc->states + SLEEP_SUSPEND … in parse_sleep_config()
57 …{ "Sleep", "HibernateState", config_parse_strv, 0, sc->states + SLEEP_HIBERNATE … in parse_sleep_config()
59 …{ "Sleep", "HybridSleepState", config_parse_strv, 0, sc->states + SLEEP_HYBRID_SLEEP … 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()
86 if (!sc->states[SLEEP_HIBERNATE]) in parse_sleep_config()
87 sc->states[SLEEP_HIBERNATE] = strv_new("disk"); in parse_sleep_config()
90 if (!sc->states[SLEEP_HYBRID_SLEEP]) in parse_sleep_config()
91 sc->states[SLEEP_HYBRID_SLEEP] = strv_new("disk"); in parse_sleep_config()
96 if (!sc->states[SLEEP_SUSPEND] || !sc->modes[SLEEP_HIBERNATE] in parse_sleep_config()
97 …|| !sc->states[SLEEP_HIBERNATE] || !sc->modes[SLEEP_HYBRID_SLEEP] || !sc->states[SLEEP_HYBRID_SLEE… in parse_sleep_config()
641 if (can_sleep_state(sleep_config->states[operation]) <= 0 || in can_sleep_internal()
671 strv_free(sc->states[i]); in free_sleep_config()