Lines Matching refs:timeout
45 uint32_t timeout; member
101 static bool is_timeout_in_range(uint32_t start_time, uint32_t timeout) in is_timeout_in_range() argument
109 return timeout <= diff; in is_timeout_in_range()
115 uint32_t timeout = *((uint32_t *)p2); in test_thread_put_timeout() local
117 k_msleep(timeout); in test_thread_put_timeout()
131 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_timeout()
133 zassert_true(is_timeout_in_range(start_time, d->timeout)); in test_thread_pend_and_timeout()
166 data->q_order, data->timeout, data->fifo); in test_multiple_threads_pending()
177 if (data->timeout > test_data[j].timeout) { in test_multiple_threads_pending()
178 diff_ms = data->timeout - test_data[j].timeout; in test_multiple_threads_pending()
180 diff_ms = test_data[j].timeout - data->timeout; in test_multiple_threads_pending()
186 data->q_order, data->timeout, data->fifo); in test_multiple_threads_pending()
205 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_get_data()
248 data->q_order, data->timeout, data->fifo); in test_multiple_threads_get_data()
265 data->q_order, data->timeout, data->fifo); in test_multiple_threads_get_data()
303 uint32_t start_time, timeout; in ZTEST() local
308 timeout = 10U; in ZTEST()
310 packet = k_fifo_get(&fifo_timeout[0], K_MSEC(timeout)); in ZTEST()
312 zassert_true(is_timeout_in_range(start_time, timeout)); in ZTEST()
356 uint32_t start_time, timeout; in ZTEST() local
364 timeout = 10U; in ZTEST()
369 &timeout, NULL, in ZTEST()
372 packet = k_fifo_get(&fifo_timeout[0], K_MSEC(timeout + 10)); in ZTEST()
374 zassert_true(is_timeout_in_range(start_time, timeout)); in ZTEST()