Home
last modified time | relevance | path

Searched refs:write_position (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/dma/
Ddma_nxp_edma.h371 if (chan->stat.read_position > chan->stat.write_position) { in edma_chan_cyclic_consume()
373 chan->stat.write_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()
407 chan->stat.write_position = in edma_chan_cyclic_produce()
408 (chan->stat.write_position + bytes) % chan->bsize; in edma_chan_cyclic_produce()
410 if (chan->stat.write_position > chan->stat.read_position) { in edma_chan_cyclic_produce()
411 chan->stat.pending_length = chan->stat.write_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.c57 chan_data->stat.write_position = 0; in dma_nxp_sdma_init_stat()
85 if (chan_data->stat.read_position > chan_data->stat.write_position) in dma_nxp_sdma_consume()
87 chan_data->stat.write_position; in dma_nxp_sdma_consume()
90 (chan_data->stat.write_position - chan_data->stat.read_position); in dma_nxp_sdma_consume()
102 chan_data->stat.write_position += bytes; in dma_nxp_sdma_produce()
103 chan_data->stat.write_position %= chan_data->capacity; in dma_nxp_sdma_produce()
105 if (chan_data->stat.write_position > chan_data->stat.read_position) in dma_nxp_sdma_produce()
106 chan_data->stat.pending_length = chan_data->stat.write_position - in dma_nxp_sdma_produce()
110 (chan_data->stat.read_position - chan_data->stat.write_position); in dma_nxp_sdma_produce()
Ddma_intel_adsp_hda.c233 stat->write_position = *DGBWP(cfg->base, cfg->regblock_size, channel); in intel_adsp_hda_dma_status()
Ddma_nxp_edma.c254 chan->stat.write_position = 0; in edma_config()
Ddma_smartbond.c852 stat->write_position = 0; in dma_smartbond_get_status()
Ddma_esp32_gdma.c487 status->write_position = desc - dma_channel->desc_list; in dma_esp32_get_status()
/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.h285 uint32_t write_position; member