Lines Matching refs:capacity
37 uint32_t capacity; /* total transfer capacity for this channel */ member
62 chan_data->stat.pending_length = chan_data->capacity; in dma_nxp_sdma_init_stat()
68 chan_data->stat.free = chan_data->capacity; in dma_nxp_sdma_init_stat()
83 chan_data->stat.read_position %= chan_data->capacity; in dma_nxp_sdma_consume()
89 chan_data->stat.free = chan_data->capacity - in dma_nxp_sdma_consume()
92 chan_data->stat.pending_length = chan_data->capacity - chan_data->stat.free; in dma_nxp_sdma_consume()
103 chan_data->stat.write_position %= chan_data->capacity; in dma_nxp_sdma_produce()
109 chan_data->stat.pending_length = chan_data->capacity - in dma_nxp_sdma_produce()
112 chan_data->stat.free = chan_data->capacity - chan_data->stat.pending_length; in dma_nxp_sdma_produce()
192 xfer_size = chan_data->capacity / chan_data->bd_count; in dma_nxp_sdma_callback()
260 chan_data->capacity += block_cfg->block_size; in dma_nxp_sdma_setup_bd()