Home
last modified time | relevance | path

Searched refs:Z_TICK_ABS (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/kernel/
Dnothread.c39 if (Z_TICK_ABS(ticks) <= 0) { in z_impl_k_sleep()
46 if (Z_TICK_ABS(ticks) > curr_ticks) { in z_impl_k_sleep()
47 ticks_to_wait = Z_TICK_ABS(ticks) - curr_ticks; in z_impl_k_sleep()
Dtimeout.c117 (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()
304 if (IS_ENABLED(CONFIG_TIMEOUT_64BIT) && Z_TICK_ABS(dt) >= 0) { in sys_timepoint_calc()
305 timepoint.tick = Z_TICK_ABS(dt); in sys_timepoint_calc()
Dtimer.c169 if (Z_TICK_ABS(duration.ticks) < 0) { in z_impl_k_timer_start()
Dsched.c1116 if (Z_TICK_ABS(ticks) <= 0) { in z_tick_sleep()
1119 expected_wakeup_ticks = Z_TICK_ABS(ticks); in z_tick_sleep()
/Zephyr-latest/tests/drivers/timer/nrf_rtc_timer/src/
Dmain.c94 .window = ext_window ? 100 : (Z_TICK_ABS(t.ticks) ? 0 : 32), in test_timeout()
116 Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(1).ticks)); in ZTEST()
131 Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in ZTEST()
191 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in ZTEST()
198 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(10).ticks)); in ZTEST()
215 z_nrf_rtc_timer_get_ticks(Z_TIMEOUT_TICKS(Z_TICK_ABS(now))); in sched_handler()
235 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(K_USEC(target_us).ticks)); in ZTEST()
248 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(K_USEC(now_us).ticks)); in ZTEST()
/Zephyr-latest/tests/drivers/timer/nrf_grtc_timer/src/
Dmain.c43 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() - K_MSEC(1).ticks)); in ZTEST()
53 t = Z_TIMEOUT_TICKS(Z_TICK_ABS(sys_clock_tick_get() + K_MSEC(10).ticks)); in ZTEST()
/Zephyr-latest/include/zephyr/
Dsys_clock.h148 #define Z_TICK_ABS(t) (K_TICKS_FOREVER - 1 - (t)) macro
Dkernel.h1482 Z_TIMEOUT_TICKS(Z_TICK_ABS((k_ticks_t)MAX(t, 0)))
/Zephyr-latest/drivers/timer/
Dnrf_grtc_timer.c299 abs_ticks = Z_TICK_ABS(t.ticks); in z_nrf_grtc_timer_get_ticks()
Dnrf_rtc_timer.c210 abs_ticks = Z_TICK_ABS(t.ticks); in z_nrf_rtc_timer_get_ticks()
/Zephyr-latest/cmake/sca/eclair/ECL/
Dzephyr_common_config.ecl86 -config=MC3R1.D4.9,macros+={questionable,"name(Z_TICK_ABS)"}