Searched refs:timepoint (Results 1 – 6 of 6) sorted by relevance
12 k_timepoint_t timepoint; in ZTEST() local16 timepoint = sys_timepoint_calc(timeout); in ZTEST()17 zassert_true(sys_timepoint_expired(timepoint)); in ZTEST()18 remaining = sys_timepoint_timeout(timepoint); in ZTEST()22 timepoint = sys_timepoint_calc(timeout); in ZTEST()23 zassert_false(sys_timepoint_expired(timepoint)); in ZTEST()24 remaining = sys_timepoint_timeout(timepoint); in ZTEST()28 timepoint = sys_timepoint_calc(timeout); in ZTEST()29 zassert_false(sys_timepoint_expired(timepoint)); in ZTEST()30 remaining = sys_timepoint_timeout(timepoint); in ZTEST()[all …]
252 k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint);298 k_timepoint_t timepoint; in sys_timepoint_calc() local300 timepoint.wait = !K_TIMEOUT_EQ(timeout, Z_TIMEOUT_NO_WAIT); in sys_timepoint_calc()301 return timepoint; in sys_timepoint_calc()304 static inline k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint) in sys_timepoint_timeout() argument306 return timepoint.wait ? Z_FOREVER : Z_TIMEOUT_NO_WAIT; in sys_timepoint_timeout()327 static inline bool sys_timepoint_expired(k_timepoint_t timepoint) in sys_timepoint_expired() argument329 return K_TIMEOUT_EQ(sys_timepoint_timeout(timepoint), Z_TIMEOUT_NO_WAIT); in sys_timepoint_expired()
294 k_timepoint_t timepoint; in sys_timepoint_calc() local297 timepoint.tick = UINT64_MAX; in sys_timepoint_calc()299 timepoint.tick = 0; in sys_timepoint_calc()304 timepoint.tick = Z_TICK_ABS(dt); in sys_timepoint_calc()306 timepoint.tick = sys_clock_tick_get() + MAX(1, dt); in sys_timepoint_calc()310 return timepoint; in sys_timepoint_calc()313 k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint) in sys_timepoint_timeout() argument317 if (timepoint.tick == UINT64_MAX) { in sys_timepoint_timeout()320 if (timepoint.tick == 0) { in sys_timepoint_timeout()325 remaining = (timepoint.tick > now) ? (timepoint.tick - now) : 0; in sys_timepoint_timeout()
105 static uint32_t timepoint_to_s(k_timepoint_t timepoint) in timepoint_to_s() argument107 k_timeout_t timeout = sys_timepoint_timeout(timepoint); in timepoint_to_s()
329 that converts an arbitrary timeout to and from a timepoint value based on357 the timepoint, the later also being returned if the timepoint is now in the
873 * Reworked several networking components to use timepoint API.