Lines Matching refs:packet

81 	void *packet = k_lifo_get(&scratch_lifo_packets_lifo, K_NO_WAIT);  in get_scratch_packet()  local
83 zassert_true(packet != NULL); in get_scratch_packet()
84 return packet; in get_scratch_packet()
87 static void put_scratch_packet(void *packet) in put_scratch_packet() argument
89 k_lifo_put(&scratch_lifo_packets_lifo, packet); in put_scratch_packet()
270 void *packet; in ZTEST() local
278 packet = k_lifo_get(&lifo_timeout[0], K_MSEC(timeout)); in ZTEST()
280 zassert_is_null(packet); in ZTEST()
285 packet = k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in ZTEST()
286 zassert_is_null(packet); in ZTEST()
295 void *packet, *scratch_packet; in ZTEST() local
300 packet = k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in ZTEST()
301 zassert_true(packet != NULL); in ZTEST()
307 packet = k_lifo_get(&lifo_timeout[0], K_FOREVER); in ZTEST()
308 zassert_true(packet != NULL); in ZTEST()
317 void *packet, *scratch_packet; in ZTEST() local
333 packet = k_lifo_get(&lifo_timeout[0], K_MSEC(timeout + 10)); in ZTEST()
334 zassert_true(packet != NULL); in ZTEST()
336 put_scratch_packet(packet); in ZTEST()
350 packet = k_lifo_get(&timeout_order_lifo, K_NO_WAIT); in ZTEST()
351 zassert_true(packet != NULL); in ZTEST()
369 packet = k_lifo_get(&timeout_order_lifo, K_NO_WAIT); in ZTEST()
370 zassert_true(packet != NULL); in ZTEST()
388 packet = k_lifo_get(&timeout_order_lifo, K_FOREVER); in ZTEST()
389 zassert_true(packet != NULL); in ZTEST()
402 void *packet; in test_thread_pend_and_timeout() local
405 packet = k_lifo_get(d->klifo, K_MSEC(d->timeout)); in test_thread_pend_and_timeout()
406 zassert_true(packet == NULL); in test_thread_pend_and_timeout()