Lines Matching full:timeout
65 * scheduled relatively to the currently firing timeout's original tick in elapsed()
69 * This means that timeouts being scheduled from within timeout callbacks in elapsed()
71 * timeout. in elapsed()
74 * preempts a timeout callback and schedules a timeout. in elapsed()
100 k_timeout_t timeout) in z_add_timeout() argument
102 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in z_add_timeout()
117 (Z_TICK_ABS(timeout.ticks) >= 0)) { in z_add_timeout()
118 k_ticks_t ticks = Z_TICK_ABS(timeout.ticks) - curr_tick; in z_add_timeout()
122 to->dticks = timeout.ticks + 1 + elapsed(); in z_add_timeout()
159 static k_ticks_t timeout_rem(const struct _timeout *timeout) in timeout_rem() argument
165 if (timeout == t) { in timeout_rem()
173 k_ticks_t z_timeout_remaining(const struct _timeout *timeout) in z_timeout_remaining() argument
178 if (!z_is_inactive_timeout(timeout)) { in z_timeout_remaining()
179 ticks = timeout_rem(timeout) - elapsed(); in z_timeout_remaining()
186 k_ticks_t z_timeout_expires(const struct _timeout *timeout) in z_timeout_expires() argument
192 if (!z_is_inactive_timeout(timeout)) { in z_timeout_expires()
193 ticks += timeout_rem(timeout); in z_timeout_expires()
293 k_timepoint_t sys_timepoint_calc(k_timeout_t timeout) in sys_timepoint_calc() argument
297 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in sys_timepoint_calc()
299 } else if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in sys_timepoint_calc()
302 k_ticks_t dt = timeout.ticks; in sys_timepoint_calc()