Lines Matching refs:ring_size
794 int ring_mask, ring_size; in ag71xx_tx_packets() local
798 ring_size = BIT(ring->order); in ag71xx_tx_packets()
851 if ((ring->curr - ring->dirty) < (ring_size * 3) / 4) in ag71xx_tx_packets()
1225 int ring_size = BIT(ring->order); in ag71xx_ring_tx_init() local
1226 int ring_mask = ring_size - 1; in ag71xx_ring_tx_init()
1229 for (i = 0; i < ring_size; i++) { in ag71xx_ring_tx_init()
1250 int ring_size = BIT(ring->order); in ag71xx_ring_rx_clean() local
1256 for (i = 0; i < ring_size; i++) in ag71xx_ring_rx_clean()
1297 int ring_size = BIT(ring->order); in ag71xx_ring_rx_init() local
1302 for (i = 0; i < ring_size; i++) { in ag71xx_ring_rx_init()
1312 for (i = 0; i < ring_size; i++) { in ag71xx_ring_rx_init()
1370 int ring_size, tx_size; in ag71xx_rings_init() local
1372 ring_size = BIT(tx->order) + BIT(rx->order); in ag71xx_rings_init()
1375 tx->buf = kcalloc(ring_size, sizeof(*tx->buf), GFP_KERNEL); in ag71xx_rings_init()
1380 ring_size * AG71XX_DESC_SIZE, in ag71xx_rings_init()
1400 int ring_size; in ag71xx_rings_free() local
1402 ring_size = BIT(tx->order) + BIT(rx->order); in ag71xx_rings_free()
1405 dma_free_coherent(&ag->pdev->dev, ring_size * AG71XX_DESC_SIZE, in ag71xx_rings_free()
1568 int i, n, ring_min, ring_mask, ring_size; in ag71xx_hard_start_xmit() local
1576 ring_size = BIT(ring->order); in ag71xx_hard_start_xmit()
1613 if (ring->curr - ring->dirty >= ring_size - ring_min) { in ag71xx_hard_start_xmit()
1669 int ring_mask, ring_size, done = 0; in ag71xx_rx_packets() local
1679 ring_size = BIT(ring->order); in ag71xx_rx_packets()
1695 if ((ring->dirty + ring_size) == ring->curr) { in ag71xx_rx_packets()