Lines Matching refs:sdma_mask
530 return sde->tx_ring[sde->tx_head & sde->sdma_mask]; in get_txhead()
547 head = sde->descq_head & sde->sdma_mask; in sdma_flush_descq()
548 tail = sde->descq_tail & sde->sdma_mask; in sdma_flush_descq()
551 head = ++sde->descq_head & sde->sdma_mask; in sdma_flush_descq()
555 sde->tx_ring[sde->tx_head++ & sde->sdma_mask] = NULL; in sdma_flush_descq()
1385 sde->sdma_mask = (1 << sde->sdma_shift) - 1; in sdma_init()
1684 swhead = sde->descq_head & sde->sdma_mask; in sdma_gethead()
1686 swtail = READ_ONCE(sde->descq_tail) & sde->sdma_mask; in sdma_gethead()
1801 swhead = sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1805 swhead = ++sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1810 sde->tx_ring[sde->tx_head++ & sde->sdma_mask] = NULL; in sdma_make_progress()
1831 swtail = READ_ONCE(sde->descq_tail) & sde->sdma_mask; in sdma_make_progress()
2110 head = sde->descq_head & sde->sdma_mask; in dump_sdma_state()
2111 tail = sde->descq_tail & sde->sdma_mask; in dump_sdma_state()
2156 head &= sde->sdma_mask; in dump_sdma_state()
2178 head = sde->descq_head & sde->sdma_mask; in sdma_seqfile_dump_sde()
2179 tail = READ_ONCE(sde->descq_tail) & sde->sdma_mask; in sdma_seqfile_dump_sde()
2231 head = (head + 1) & sde->sdma_mask; in sdma_seqfile_dump_sde()
2272 tail = sde->descq_tail & sde->sdma_mask; in submit_tx()
2277 tail = ++sde->descq_tail & sde->sdma_mask; in submit_tx()
2296 tail = ++sde->descq_tail & sde->sdma_mask; in submit_tx()
2302 WARN_ON_ONCE(sde->tx_ring[sde->tx_tail & sde->sdma_mask]); in submit_tx()
2304 sde->tx_ring[sde->tx_tail++ & sde->sdma_mask] = tx; in submit_tx()