Lines Matching refs:modes
54 …{ "Sleep", "SuspendMode", config_parse_strv, 0, sc->modes + SLEEP_SUSPEND … in parse_sleep_config()
56 …{ "Sleep", "HibernateMode", config_parse_strv, 0, sc->modes + SLEEP_HIBERNATE … in parse_sleep_config()
58 …{ "Sleep", "HybridSleepMode", config_parse_strv, 0, sc->modes + SLEEP_HYBRID_SLEEP … in parse_sleep_config()
84 if (!sc->modes[SLEEP_HIBERNATE]) in parse_sleep_config()
85 sc->modes[SLEEP_HIBERNATE] = strv_new("platform", "shutdown"); in parse_sleep_config()
88 if (!sc->modes[SLEEP_HYBRID_SLEEP]) in parse_sleep_config()
89 sc->modes[SLEEP_HYBRID_SLEEP] = strv_new("suspend", "platform", "shutdown"); 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()
642 can_sleep_disk(sleep_config->modes[operation]) <= 0) in can_sleep_internal()
670 strv_free(sc->modes[i]); in free_sleep_config()