Searched refs:read_index (Results 1 – 3 of 3) sorted by relevance
88 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()
93 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 …]
4595 size_t read_index; /**< Where in buffer to read from */ member4617 .read_index = 0, \