Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/tests/kernel/pipe/pipe_api/src/
Dtest_pipe_avail.c88 pipe.read_index = 0; in test_pipe_avail_r_lt_w()
127 pipe.read_index = 3; in test_pipe_avail_w_lt_r()
170 pipe.read_index = 4; in test_pipe_avail_r_eq_w_empty()
213 pipe.read_index = 4; in test_pipe_avail_r_eq_w_full()
/Zephyr-Core-2.7.6/kernel/
Dpipes.c93 pipe->read_index = 0; in k_pipe_init()
237 pipe->size - pipe->read_index); in pipe_buffer_get()
241 pipe->buffer + pipe->read_index, in pipe_buffer_get()
246 pipe->read_index += bytes_copied; in pipe_buffer_get()
247 if (pipe->read_index == pipe->size) { in pipe_buffer_get()
248 pipe->read_index = 0; in pipe_buffer_get()
768 if (pipe->read_index == pipe->write_index) { in z_impl_k_pipe_read_avail()
770 } else if (pipe->read_index < pipe->write_index) { in z_impl_k_pipe_read_avail()
771 res = pipe->write_index - pipe->read_index; in z_impl_k_pipe_read_avail()
773 res = pipe->size - (pipe->read_index - pipe->write_index); in z_impl_k_pipe_read_avail()
[all …]
/Zephyr-Core-2.7.6/include/
Dkernel.h4595 size_t read_index; /**< Where in buffer to read from */ member
4617 .read_index = 0, \