Home
last modified time | relevance | path

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

/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_attrs.c9 static ZTEST_BMEM char __aligned(4) tbuffer[MSG_SIZE * MSGQ_LEN];
10 static ZTEST_DMEM uint32_t send_buf[MSGQ_LEN] = { MSG0, MSG1 };
11 static ZTEST_DMEM uint32_t rec_buf[MSGQ_LEN] = { MSG0, MSG1 };
22 for (int i = 0; i < MSGQ_LEN; i++) { in attrs_get()
28 zassert_equal(attrs.used_msgs, MSGQ_LEN); in attrs_get()
30 for (int i = 0; i < MSGQ_LEN; i++) { in attrs_get()
51 k_msgq_init(&msgq, tbuffer, MSG_SIZE, MSGQ_LEN); in ZTEST()
68 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
Dtest_msgq_purge.c12 static ZTEST_BMEM char __aligned(4) tbuffer[MSG_SIZE * MSGQ_LEN];
13 static ZTEST_DMEM uint32_t data[MSGQ_LEN] = { MSG0, MSG1 };
27 for (int i = 0; i < MSGQ_LEN; i++) { in purge_when_put()
41 for (int i = 0; i < MSGQ_LEN; i++) { in purge_when_put()
60 k_msgq_init(&msgq, tbuffer, MSG_SIZE, MSGQ_LEN); in ZTEST()
76 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
Dtest_msgq_fail.c8 static ZTEST_BMEM char __aligned(4) tbuffer[MSG_SIZE * MSGQ_LEN];
9 static ZTEST_DMEM uint32_t data[MSGQ_LEN] = { MSG0, MSG1 };
53 k_msgq_init(&msgq, tbuffer, MSG_SIZE, MSGQ_LEN); in ZTEST()
68 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
79 k_msgq_init(&msgq, tbuffer, MSG_SIZE, MSGQ_LEN); in ZTEST()
94 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
Dtest_msgq_contexts.c10 K_MSGQ_DEFINE(kmsgq, MSG_SIZE, MSGQ_LEN, 4);
11 K_MSGQ_DEFINE(kmsgq_test_alloc, MSG_SIZE, MSGQ_LEN, 4);
20 static ZTEST_BMEM char __aligned(4) tbuffer[MSG_SIZE * MSGQ_LEN];
22 static ZTEST_DMEM uint32_t data[MSGQ_LEN] = { MSG0, MSG1 };
30 for (int i = 0; i < MSGQ_LEN; i++) { in put_msgq()
44 MSGQ_LEN - 1 - i, NULL); in put_msgq()
55 for (int i = 0; i < MSGQ_LEN; i++) { in get_msgq()
68 MSGQ_LEN - 1 - i, NULL); in get_msgq()
77 zassert_equal(k_msgq_num_free_get(pmsgq), MSGQ_LEN); in purge_msgq()
112 uint32_t rx_buf[MSGQ_LEN]; in thread_entry_overflow()
[all …]
Dtest_msgq.h19 #define MSGQ_LEN 2 macro
/Zephyr-latest/tests/kernel/msgq/msgq_usage/src/
Dmain.c12 #define MSGQ_LEN (2) macro
32 static ZTEST_DMEM unsigned long __aligned(4) service1_buf[MSGQ_LEN];
33 static ZTEST_DMEM unsigned long __aligned(4) service2_buf[MSGQ_LEN];
34 static ZTEST_DMEM unsigned long __aligned(4) client_buf[MSGQ_LEN * 2];