Searched refs:write_index (Results 1 – 4 of 4) sorted by relevance
325 static size_t write_index; /* Points to the oldest/uninitialized data */ variable347 const bool overflowed = write_index < old_write_index; in stream_cb()366 if (read_idx < write_index || (overflowed && read_idx < write_index)) { in stream_cb()367 sh_stream->tx.left_read_idx = write_index; in stream_cb()368 sh_stream->tx.right_read_idx = write_index; in stream_cb()376 const size_t old_write_index = write_index; in usb_data_received_cb()399 usb_in_left_ring_buffer[write_index + i] = pcm[j]; in usb_data_received_cb()400 usb_in_right_ring_buffer[write_index + i] = pcm[j + 1]; in usb_data_received_cb()403 write_index += USB_SAMPLE_CNT; in usb_data_received_cb()405 if (write_index == USB_IN_RING_BUF_SIZE) { in usb_data_received_cb()[all …]
89 pipe.write_index = 3; in ZTEST()128 pipe.write_index = 0; in ZTEST()171 pipe.write_index = 4; in ZTEST()214 pipe.write_index = 4; in ZTEST()
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()[all …]
5000 size_t write_index; /**< Where in buffer to write */ member5030 .write_index = 0, \