Lines Matching refs:ring_mask
794 int ring_mask, ring_size; in ag71xx_tx_packets() local
797 ring_mask = BIT(ring->order) - 1; in ag71xx_tx_packets()
807 i = (ring->dirty + n) & ring_mask; in ag71xx_tx_packets()
1141 int ring_mask = BIT(ring->order) - 1; in ag71xx_ring_tx_clean() local
1147 u32 i = ring->dirty & ring_mask; in ag71xx_ring_tx_clean()
1174 int ring_mask = ring_size - 1; in ag71xx_ring_tx_init() local
1181 AG71XX_DESC_SIZE * ((i + 1) & ring_mask)); in ag71xx_ring_tx_init()
1244 int ring_mask = BIT(ring->order) - 1; in ag71xx_ring_rx_init() local
1254 AG71XX_DESC_SIZE * ((i + 1) & ring_mask)); in ag71xx_ring_rx_init()
1284 int ring_mask = BIT(ring->order) - 1; in ag71xx_ring_rx_refill() local
1293 i = ring->dirty & ring_mask; in ag71xx_ring_rx_refill()
1467 int i, ring_mask, ndesc, split; in ag71xx_fill_dma_desc() local
1470 ring_mask = BIT(ring->order) - 1; in ag71xx_fill_dma_desc()
1480 i = (ring->curr + ndesc) & ring_mask; in ag71xx_fill_dma_desc()
1517 int i, n, ring_min, ring_mask, ring_size; in ag71xx_hard_start_xmit() local
1524 ring_mask = BIT(ring->order) - 1; in ag71xx_hard_start_xmit()
1535 i = ring->curr & ring_mask; in ag71xx_hard_start_xmit()
1544 i = (ring->curr + n - 1) & ring_mask; in ag71xx_hard_start_xmit()
1618 int ring_mask, ring_size, done = 0; in ag71xx_rx_packets() local
1627 ring_mask = BIT(ring->order) - 1; in ag71xx_rx_packets()
1636 unsigned int i = ring->curr & ring_mask; in ag71xx_rx_packets()