Lines Matching refs:write_index
45 pipe->write_index = 0U; in k_pipe_init()
186 pipe->write_index = 0U; in k_pipe_cleanup()
354 pipe->write_index += bytes_copied; in pipe_write()
355 if (pipe->write_index >= pipe->size) { in pipe_write()
356 pipe->write_index -= pipe->size; in pipe_write()
423 pipe->write_index, in z_impl_k_pipe_put()
561 pipe->write_index); in pipe_get_internal()
645 pipe->write_index, in pipe_get_internal()
752 if (pipe->read_index == pipe->write_index) { in z_impl_k_pipe_read_avail()
754 } else if (pipe->read_index < pipe->write_index) { in z_impl_k_pipe_read_avail()
755 res = pipe->write_index - pipe->read_index; in z_impl_k_pipe_read_avail()
757 res = pipe->size - (pipe->read_index - pipe->write_index); in z_impl_k_pipe_read_avail()
789 if (pipe->write_index == pipe->read_index) { in z_impl_k_pipe_write_avail()
791 } else if (pipe->write_index < pipe->read_index) { in z_impl_k_pipe_write_avail()
792 res = pipe->read_index - pipe->write_index; in z_impl_k_pipe_write_avail()
794 res = pipe->size - (pipe->write_index - pipe->read_index); in z_impl_k_pipe_write_avail()