Home
last modified time | relevance | path

Searched refs:PIPE_LEN (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/tests/kernel/pipe/pipe_api/src/
Dtest_pipe_fail.c12 #define PIPE_LEN 8 macro
21 zassert_false(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
24 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
28 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
31 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
32 PIPE_LEN + 1, TIMEOUT), -EINVAL, NULL); in put_fail()
43 k_pipe_init(&put_get_pipe, data, PIPE_LEN); in ZTEST()
58 zassert_false(k_pipe_alloc_init(p, PIPE_LEN)); in ZTEST_USER()
62 zassert_equal(k_pipe_write_avail(p), PIPE_LEN); in ZTEST_USER()
70 unsigned char rx_data[PIPE_LEN]; in get_fail()
[all …]
Dtest_pipe_contexts.c10 #define PIPE_LEN (4 * 16) macro
14 K_HEAP_DEFINE(mpool, PIPE_LEN * 1);
18 BUILD_ASSERT(sizeof(data) >= PIPE_LEN);
21 K_PIPE_DEFINE(kpipe, PIPE_LEN, 4);
22 K_PIPE_DEFINE(khalfpipe, (PIPE_LEN / 2), 4);
23 K_PIPE_DEFINE(kpipe1, PIPE_LEN, 4);
24 K_PIPE_DEFINE(pipe_test_alloc, PIPE_LEN, 4);
51 for (int i = 0; i < PIPE_LEN; i += wt_byte) { in tpipe_put()
53 to_wt = (PIPE_LEN - i) >= BYTES_TO_WRITE ? in tpipe_put()
54 BYTES_TO_WRITE : (PIPE_LEN - i); in tpipe_put()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/mem_protect/userspace/src/
Dmain.c42 #define PIPE_LEN 1 macro
666 K_PIPE_DEFINE(kpipe, PIPE_LEN, BYTES_TO_READ_WRITE);