Searched refs:read_index (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | test_pipe_avail.c | 88 pipe.read_index = 0; in ZTEST() 127 pipe.read_index = 3; in ZTEST() 170 pipe.read_index = 4; in ZTEST() 213 pipe.read_index = 4; in ZTEST()
|
/Zephyr-latest/drivers/sensor/explorir_m/ |
D | explorir_m.c | 50 uint8_t read_index; member 95 memset(data->read_buffer, 0, data->read_index); in explorir_m_buffer_reset() 96 data->read_index = 0; in explorir_m_buffer_reset() 115 data->read_buffer[data->read_index - 2] != EXPLORIR_M_PRE_END_CHAR) { in explorir_m_buffer_verify() 116 LOG_HEXDUMP_WRN(data->read_buffer, data->read_index, "Invalid buffer"); in explorir_m_buffer_verify() 176 read_len = EXPLORIR_M_BUFFER_LENGTH - data->read_index; in explorir_m_uart_isr() 177 rc = uart_fifo_read(uart_dev, &data->read_buffer[data->read_index], read_len); in explorir_m_uart_isr() 182 LOG_HEXDUMP_WRN(data->read_buffer, data->read_index, "Discarding"); in explorir_m_uart_isr() 185 data->read_index += rc; in explorir_m_uart_isr() 187 if (data->read_buffer[data->read_index - 1] != EXPLORIR_M_END_CHAR) { in explorir_m_uart_isr()
|
/Zephyr-latest/kernel/ |
D | pipes.c | 44 pipe->read_index = 0U; in k_pipe_init() 185 pipe->read_index = 0U; in k_pipe_cleanup() 424 pipe->read_index); in z_impl_k_pipe_put() 560 pipe->read_index, in pipe_get_internal() 612 pipe->read_index += bytes_copied; in pipe_get_internal() 613 if (pipe->read_index >= pipe->size) { in pipe_get_internal() 614 pipe->read_index -= pipe->size; in pipe_get_internal() 646 pipe->read_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 …]
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 4999 size_t read_index; /**< Where in buffer to read from */ member 5029 .read_index = 0, \
|