Home
last modified time | relevance | path

Searched refs:timepoint (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/kernel/timer/timepoints/src/
Dmain.c12 k_timepoint_t timepoint; in ZTEST() local
16 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 …]
/Zephyr-latest/include/zephyr/
Dsys_clock.h258 k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint);
289 k_timepoint_t timepoint; in sys_timepoint_calc() local
291 timepoint.wait = !K_TIMEOUT_EQ(timeout, Z_TIMEOUT_NO_WAIT); in sys_timepoint_calc()
292 return timepoint; in sys_timepoint_calc()
295 static inline k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint) in sys_timepoint_timeout() argument
297 return timepoint.wait ? Z_FOREVER : Z_TIMEOUT_NO_WAIT; in sys_timepoint_timeout()
318 static inline bool sys_timepoint_expired(k_timepoint_t timepoint) in sys_timepoint_expired() argument
320 return K_TIMEOUT_EQ(sys_timepoint_timeout(timepoint), Z_TIMEOUT_NO_WAIT); in sys_timepoint_expired()
/Zephyr-latest/kernel/
Dtimeout.c295 k_timepoint_t timepoint; in sys_timepoint_calc() local
298 timepoint.tick = UINT64_MAX; in sys_timepoint_calc()
300 timepoint.tick = 0; in sys_timepoint_calc()
305 timepoint.tick = Z_TICK_ABS(dt); in sys_timepoint_calc()
307 timepoint.tick = sys_clock_tick_get() + MAX(1, dt); in sys_timepoint_calc()
311 return timepoint; in sys_timepoint_calc()
314 k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint) in sys_timepoint_timeout() argument
318 if (timepoint.tick == UINT64_MAX) { in sys_timepoint_timeout()
321 if (timepoint.tick == 0) { in sys_timepoint_timeout()
326 remaining = (timepoint.tick > now) ? (timepoint.tick - now) : 0; in sys_timepoint_timeout()
/Zephyr-latest/subsys/net/lib/shell/
Ddhcpv4.c105 static uint32_t timepoint_to_s(k_timepoint_t timepoint) in timepoint_to_s() argument
107 k_timeout_t timeout = sys_timepoint_timeout(timepoint); in timepoint_to_s()
/Zephyr-latest/doc/kernel/services/timing/
Dclocks.rst329 that converts an arbitrary timeout to and from a timepoint value based on
357 the timepoint, the later also being returned if the timepoint is now in the
/Zephyr-latest/doc/releases/
Drelease-notes-3.5.rst873 * Reworked several networking components to use timepoint API.