Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/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-Core-3.6.0/include/zephyr/
Dsys_clock.h252 k_timeout_t sys_timepoint_timeout(k_timepoint_t timepoint);
298 k_timepoint_t timepoint; in sys_timepoint_calc() local
300 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() argument
306 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() argument
329 return K_TIMEOUT_EQ(sys_timepoint_timeout(timepoint), Z_TIMEOUT_NO_WAIT); in sys_timepoint_expired()
/Zephyr-Core-3.6.0/kernel/
Dtimeout.c294 k_timepoint_t timepoint; in sys_timepoint_calc() local
297 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() argument
317 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()
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/doc/releases/
Drelease-notes-3.5.rst873 * Reworked several networking components to use timepoint API.