Lines Matching refs:sleep_config
169 const SleepConfig *sleep_config, in execute() argument
191 assert(sleep_config); in execute()
196 states = sleep_config->states[operation]; in execute()
197 modes = sleep_config->modes[operation]; in execute()
265 static int execute_s2h(const SleepConfig *sleep_config) { in execute_s2h() argument
270 assert(sleep_config); in execute_s2h()
277 FORMAT_TIMESPAN(sleep_config->hibernate_delay_sec, USEC_PER_SEC)); in execute_s2h()
279 timespec_store(&ts.it_value, sleep_config->hibernate_delay_sec); in execute_s2h()
285 r = execute(sleep_config, SLEEP_SUSPEND, NULL); in execute_s2h()
299 FORMAT_TIMESPAN(sleep_config->hibernate_delay_sec, USEC_PER_SEC)); in execute_s2h()
301 r = execute(sleep_config, SLEEP_HIBERNATE, NULL); in execute_s2h()
305 r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hibernate"); in execute_s2h()
382 _cleanup_(free_sleep_configp) SleepConfig *sleep_config = NULL; in run()
391 r = parse_sleep_config(&sleep_config); in run()
395 if (!sleep_config->allow[arg_operation]) in run()
403 r = execute_s2h(sleep_config); in run()
407 r = execute(sleep_config, SLEEP_HYBRID_SLEEP, NULL); in run()
415 … r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hybrid-sleep"); in run()
421 r = execute(sleep_config, arg_operation, NULL); in run()