Home
last modified time | relevance | path

Searched refs:read_position (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/dma/
Ddma_nxp_edma.h368 chan->stat.read_position = in edma_chan_cyclic_consume()
369 (chan->stat.read_position + bytes) % chan->bsize; in edma_chan_cyclic_consume()
371 if (chan->stat.read_position > chan->stat.write_position) { in edma_chan_cyclic_consume()
372 chan->stat.free = chan->stat.read_position - in edma_chan_cyclic_consume()
374 } else if (chan->stat.read_position == chan->stat.write_position) { in edma_chan_cyclic_consume()
378 (chan->stat.write_position - chan->stat.read_position); in edma_chan_cyclic_consume()
410 if (chan->stat.write_position > chan->stat.read_position) { in edma_chan_cyclic_produce()
412 chan->stat.read_position; in edma_chan_cyclic_produce()
413 } else if (chan->stat.write_position == chan->stat.read_position) { in edma_chan_cyclic_produce()
417 (chan->stat.read_position - chan->stat.write_position); in edma_chan_cyclic_produce()
Ddma_nxp_sdma.c56 chan_data->stat.read_position = 0; in dma_nxp_sdma_init_stat()
82 chan_data->stat.read_position += bytes; in dma_nxp_sdma_consume()
83 chan_data->stat.read_position %= chan_data->capacity; in dma_nxp_sdma_consume()
85 if (chan_data->stat.read_position > chan_data->stat.write_position) in dma_nxp_sdma_consume()
86 chan_data->stat.free = chan_data->stat.read_position - in dma_nxp_sdma_consume()
90 (chan_data->stat.write_position - chan_data->stat.read_position); in dma_nxp_sdma_consume()
105 if (chan_data->stat.write_position > chan_data->stat.read_position) in dma_nxp_sdma_produce()
107 chan_data->stat.read_position; in dma_nxp_sdma_produce()
110 (chan_data->stat.read_position - chan_data->stat.write_position); in dma_nxp_sdma_produce()
Ddma_esp32_gdma.c476 status->read_position = desc - dma_channel->desc_list; in dma_esp32_get_status()
479 * status->read_position; in dma_esp32_get_status()
Ddma_intel_adsp_hda.c234 stat->read_position = *DGBRP(cfg->base, cfg->regblock_size, channel); in intel_adsp_hda_dma_status()
Ddma_nxp_edma.c253 chan->stat.read_position = 0; in edma_config()
Ddma_smartbond.c851 stat->read_position = 0; in dma_smartbond_get_status()
/Zephyr-latest/drivers/serial/
Dserial_test.c42 size_t read_position; member
376 read_remaining = data->read_size - data->read_position; in async_rx_run()
378 read_len = ring_buf_get(data->read_queue, &data->read_buf[data->read_position], in async_rx_run()
386 .data.rx.offset = data->read_position, in async_rx_run()
391 data->read_position += read_len; in async_rx_run()
393 if (data->read_position == data->read_size) { in async_rx_run()
421 data->read_position = 0; in serial_vnd_rx_enable()
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Ddma.c118 if (status.read_position == status.write_position) { in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Ddma.h287 uint32_t read_position; member