Lines Matching refs:timeout_tick
321 rt_weak rt_uint8_t pm_get_sleep_threshold_mode(rt_uint8_t cur_mode, rt_tick_t timeout_tick) in pm_get_sleep_threshold_mode() argument
338 if (timeout_tick < PM_LIGHT_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
342 if (timeout_tick < PM_LIGHT_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
344 else if (timeout_tick < PM_DEEP_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
348 if (timeout_tick < PM_LIGHT_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
350 else if (timeout_tick < PM_DEEP_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
352 else if (timeout_tick < PM_STANDBY_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
357 if (timeout_tick < PM_TICKLESS_THRESHOLD_TIME) in pm_get_sleep_threshold_mode()
371 rt_tick_t timeout_tick = 0, delta_tick = 0; in _pm_change_sleep_mode() local
427 timeout_tick = pm_timer_next_timeout_tick(pm->sleep_mode); in _pm_change_sleep_mode()
428 timeout_tick = timeout_tick - rt_tick_get(); in _pm_change_sleep_mode()
431 pm->sleep_mode = pm_get_sleep_threshold_mode(pm->sleep_mode, timeout_tick); in _pm_change_sleep_mode()
435 pm_lptimer_start(pm, timeout_tick); in _pm_change_sleep_mode()