Lines Matching refs:sleep_config
596 static int can_sleep_internal(const SleepConfig *sleep_config, SleepOperation operation, bool check…
598 static bool can_s2h(const SleepConfig *sleep_config) { in can_s2h() argument
613 r = can_sleep_internal(sleep_config, operations[i], false); in can_s2h()
626 const SleepConfig *sleep_config, in can_sleep_internal() argument
633 if (check_allowed && !sleep_config->allow[operation]) { in can_sleep_internal()
639 return can_s2h(sleep_config); in can_sleep_internal()
641 if (can_sleep_state(sleep_config->states[operation]) <= 0 || in can_sleep_internal()
642 can_sleep_disk(sleep_config->modes[operation]) <= 0) in can_sleep_internal()
655 _cleanup_(free_sleep_configp) SleepConfig *sleep_config = NULL; in can_sleep()
658 r = parse_sleep_config(&sleep_config); in can_sleep()
662 return can_sleep_internal(sleep_config, operation, true); in can_sleep()