Home
last modified time | relevance | path

Searched refs:K_TIMEOUT_EQ (Results 1 – 25 of 65) sorted by relevance

123

/Zephyr-latest/tests/kernel/timer/timepoints/src/
Dmain.c19 zassert_true(K_TIMEOUT_EQ(remaining, K_NO_WAIT)); in ZTEST()
25 zassert_true(K_TIMEOUT_EQ(remaining, K_FOREVER)); in ZTEST()
35 zassert_true(K_TIMEOUT_EQ(remaining, K_NO_WAIT)); in ZTEST()
/Zephyr-latest/kernel/
Dkheap.c75 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_aligned_alloc()
83 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_aligned_alloc()
147 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_realloc()
153 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_realloc()
Dnothread.c30 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in z_impl_k_sleep()
Dtimer.c55 if (!K_TIMEOUT_EQ(timer->period, K_NO_WAIT) && in z_timer_expiration_handler()
56 !K_TIMEOUT_EQ(timer->period, K_FOREVER)) { in z_timer_expiration_handler()
151 if (K_TIMEOUT_EQ(duration, K_FOREVER)) { in z_impl_k_timer_start()
Dtimeout.c102 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in z_add_timeout()
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()
Dsem.c137 K_TIMEOUT_EQ(timeout, K_NO_WAIT)), ""); in z_impl_k_sem_take()
150 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in z_impl_k_sem_take()
Dmsg_q.c126 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in z_impl_k_msgq_put()
165 } else if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in z_impl_k_msgq_put()
218 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in z_impl_k_msgq_get()
263 } else if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in z_impl_k_msgq_get()
Dpipes.c393 K_TIMEOUT_EQ(timeout, K_NO_WAIT)), ""); in z_impl_k_pipe_put()
428 (K_TIMEOUT_EQ(timeout, K_NO_WAIT))) { in z_impl_k_pipe_put()
471 (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) || in z_impl_k_pipe_put()
569 (K_TIMEOUT_EQ(timeout, K_NO_WAIT))) { in pipe_get_internal()
658 (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) || in pipe_get_internal()
703 K_TIMEOUT_EQ(timeout, K_NO_WAIT)), ""); in z_impl_k_pipe_get()
Devents.c248 K_TIMEOUT_EQ(timeout, K_NO_WAIT)), ""); in k_event_wait_internal()
278 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_event_wait_internal()
Dpoll.c305 K_TIMEOUT_EQ(timeout, K_NO_WAIT)); in z_impl_k_poll()
325 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in z_impl_k_poll()
725 if (work->poller.is_polling && !K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_work_poll_submit_to_queue()
734 if (!K_TIMEOUT_EQ(timeout, K_FOREVER)) { in k_work_poll_submit_to_queue()
Dmailbox.c270 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in mbox_message_put()
417 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_mbox_get()
Dstack.c170 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in z_impl_k_stack_pop()
/Zephyr-latest/include/zephyr/
Dsys_clock.h80 #define K_TIMEOUT_EQ(a, b) ((a).ticks == (b).ticks) macro
291 timepoint.wait = !K_TIMEOUT_EQ(timeout, Z_TIMEOUT_NO_WAIT); in sys_timepoint_calc()
320 return K_TIMEOUT_EQ(sys_timepoint_timeout(timepoint), Z_TIMEOUT_NO_WAIT); in sys_timepoint_expired()
/Zephyr-latest/tests/drivers/timer/nrf_grtc_timer/src/
Dmain.c85 zassert_true(K_TIMEOUT_EQ(K_TICKS(compare_value), K_TICKS(test_ticks)), in ZTEST()
123 zassert_true(K_TIMEOUT_EQ(K_TICKS(compare_value), K_TICKS(test_ticks)), in ZTEST()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_poll.c96 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in zvfs_poll_internal()
163 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in zvfs_poll_internal()
/Zephyr-latest/tests/subsys/logging/log_blocking/src/
Dmain.c219 __ASSERT(K_TIMEOUT_EQ(K_NO_WAIT, K_MSEC(-1)), "K_NO_WAIT should be equal to K_MSEC(-1)"); in setup()
220 __ASSERT(!K_TIMEOUT_EQ(K_FOREVER, K_MSEC(-1)), in setup()
/Zephyr-latest/subsys/input/
Dinput.c55 if (!K_TIMEOUT_EQ(timeout, K_NO_WAIT) && in input_report()
/Zephyr-latest/tests/net/socket/socketpair/src/
Dpoll.c75 if (!(K_TIMEOUT_EQ(ctx.delay, K_NO_WAIT) in close_fun()
76 || K_TIMEOUT_EQ(ctx.delay, K_FOREVER))) { in close_fun()
213 if (!(K_TIMEOUT_EQ(ctx.delay, K_NO_WAIT) in rw_fun()
214 || K_TIMEOUT_EQ(ctx.delay, K_FOREVER))) { in rw_fun()
/Zephyr-latest/subsys/net/lib/shell/
Ddhcpv4.c109 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in timepoint_to_s()
113 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in timepoint_to_s()
/Zephyr-latest/tests/kernel/mbox/mbox_usage/src/
Dmain.c67 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in msg_receiver()
69 } else if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in msg_receiver()
/Zephyr-latest/include/zephyr/net/
Dnet_offload.h38 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in timeout_to_int32()
40 } else if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in timeout_to_int32()
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_rpmsg_static_vrings.c692 if (!K_TIMEOUT_EQ(wait, K_FOREVER) && !K_TIMEOUT_EQ(wait, K_NO_WAIT)) { in get_tx_buffer()
709 K_TIMEOUT_EQ(wait, K_FOREVER)); in get_tx_buffer()
710 } while ((!payload) && K_TIMEOUT_EQ(wait, K_FOREVER)); in get_tx_buffer()
/Zephyr-latest/kernel/include/
Dkthread.h49 if (K_TIMEOUT_EQ(delay, K_NO_WAIT)) { in thread_schedule_new()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztress.c247 if (K_TIMEOUT_EQ(t, K_NO_WAIT) == false) { in sleep()
300 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT) == false) { in ztress_init()
/Zephyr-latest/lib/posix/options/
Dmqueue.c459 errno = K_TIMEOUT_EQ(timeout, K_NO_WAIT) ? EAGAIN : ETIMEDOUT; in send_message()
501 errno = K_TIMEOUT_EQ(timeout, K_NO_WAIT) ? EAGAIN : ETIMEDOUT; in receive_message()

123