Home
last modified time | relevance | path

Searched refs:read_ptr (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/kernel/
Dmsg_q.c46 msgq->read_ptr = buffer; in k_msgq_init()
230 (void)memcpy((char *)data, msgq->read_ptr, msgq->msg_size); in z_impl_k_msgq_get()
231 msgq->read_ptr += msgq->msg_size; in z_impl_k_msgq_get()
232 if (msgq->read_ptr == msgq->buffer_end) { in z_impl_k_msgq_get()
233 msgq->read_ptr = msgq->buffer_start; in z_impl_k_msgq_get()
305 (void)memcpy((char *)data, msgq->read_ptr, msgq->msg_size); in z_impl_k_msgq_peek()
341 bytes_to_end = (msgq->buffer_end - msgq->read_ptr); in z_impl_k_msgq_peek_at()
343 start_addr = msgq->read_ptr; in z_impl_k_msgq_peek_at()
393 msgq->read_ptr = msgq->write_ptr; in z_impl_k_msgq_purge()
/Zephyr-latest/drivers/dma/
Ddma_dw_common.c762 int32_t read_ptr = chan_data->ptr_data.current_ptr; in dw_dma_avail_data_size() local
769 size = write_ptr - read_ptr; in dw_dma_avail_data_size()
786 write_ptr, read_ptr, chan_data->ptr_data.buffer_bytes - size, size); in dw_dma_avail_data_size()
795 int32_t read_ptr = dw_read(base, DW_SAR(channel)); in dw_dma_free_data_size() local
797 int32_t delta = read_ptr - chan_data->ptr_data.hw_ptr; in dw_dma_free_data_size()
800 chan_data->ptr_data.hw_ptr = read_ptr; in dw_dma_free_data_size()
802 size = read_ptr - write_ptr; in dw_dma_free_data_size()
818 read_ptr, write_ptr, size, chan_data->ptr_data.buffer_bytes - size); in dw_dma_free_data_size()
/Zephyr-latest/drivers/i2c/
Di2c_xilinx_axi.c326 uint8_t *read_ptr = msg->buf; in i2c_xilinx_axi_read_nondyn() local
385 *read_ptr++ = sys_read32(config->base + REG_RX_FIFO) & RX_FIFO_DATA_MASK; in i2c_xilinx_axi_read_nondyn()
395 uint8_t *read_ptr = msg->buf; in i2c_xilinx_axi_read_dyn() local
435 *read_ptr++ = sys_read32(config->base + REG_RX_FIFO) & RX_FIFO_DATA_MASK; in i2c_xilinx_axi_read_dyn()
/Zephyr-latest/tests/drivers/uart/uart_async_api/src/
Dtest_uart_async.c359 static ZTEST_BMEM uint8_t *read_ptr; variable
457 read_ptr = evt->data.rx.buf + evt->data.rx.offset; in test_double_buffer_callback()
509 zassert_equal(memcmp(tx_buf, read_ptr, sizeof(tx_buf)), in ZTEST_USER()
/Zephyr-latest/include/zephyr/
Dkernel.h4565 char *read_ptr; member
4594 .read_ptr = q_buffer, \