Lines Matching refs:ring_size

795 	int ring_mask, ring_size;  in ag71xx_tx_packets()  local
799 ring_size = BIT(ring->order); in ag71xx_tx_packets()
852 if ((ring->curr - ring->dirty) < (ring_size * 3) / 4) in ag71xx_tx_packets()
1174 int ring_size = BIT(ring->order); in ag71xx_ring_tx_init() local
1175 int ring_mask = ring_size - 1; in ag71xx_ring_tx_init()
1178 for (i = 0; i < ring_size; i++) { in ag71xx_ring_tx_init()
1199 int ring_size = BIT(ring->order); in ag71xx_ring_rx_clean() local
1205 for (i = 0; i < ring_size; i++) in ag71xx_ring_rx_clean()
1246 int ring_size = BIT(ring->order); in ag71xx_ring_rx_init() local
1251 for (i = 0; i < ring_size; i++) { in ag71xx_ring_rx_init()
1261 for (i = 0; i < ring_size; i++) { in ag71xx_ring_rx_init()
1319 int ring_size, tx_size; in ag71xx_rings_init() local
1321 ring_size = BIT(tx->order) + BIT(rx->order); in ag71xx_rings_init()
1324 tx->buf = kcalloc(ring_size, sizeof(*tx->buf), GFP_KERNEL); in ag71xx_rings_init()
1329 ring_size * AG71XX_DESC_SIZE, in ag71xx_rings_init()
1349 int ring_size; in ag71xx_rings_free() local
1351 ring_size = BIT(tx->order) + BIT(rx->order); in ag71xx_rings_free()
1354 dma_free_coherent(&ag->pdev->dev, ring_size * AG71XX_DESC_SIZE, in ag71xx_rings_free()
1518 int i, n, ring_min, ring_mask, ring_size; in ag71xx_hard_start_xmit() local
1526 ring_size = BIT(ring->order); in ag71xx_hard_start_xmit()
1563 if (ring->curr - ring->dirty >= ring_size - ring_min) { in ag71xx_hard_start_xmit()
1619 int ring_mask, ring_size, done = 0; in ag71xx_rx_packets() local
1629 ring_size = BIT(ring->order); in ag71xx_rx_packets()
1645 if ((ring->dirty + ring_size) == ring->curr) { in ag71xx_rx_packets()