Lines Matching refs:num_rx_ring
1281 for (i = 0; i < mdp->num_rx_ring; i++) { in sh_eth_ring_free()
1291 ringsize = sizeof(struct sh_eth_rxdesc) * mdp->num_rx_ring; in sh_eth_ring_free()
1299 for (i = 0; i < mdp->num_rx_ring; i++) in sh_eth_ring_free()
1327 int rx_ringsize = sizeof(*rxdesc) * mdp->num_rx_ring; in sh_eth_ring_format()
1341 for (i = 0; i < mdp->num_rx_ring; i++) { in sh_eth_ring_format()
1373 mdp->dirty_rx = (u32) (i - mdp->num_rx_ring); in sh_eth_ring_format()
1415 mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff), in sh_eth_ring_init()
1426 rx_ringsize = sizeof(struct sh_eth_rxdesc) * mdp->num_rx_ring; in sh_eth_ring_init()
1591 int entry = mdp->cur_rx % mdp->num_rx_ring; in sh_eth_rx()
1592 int boguscnt = (mdp->dirty_rx + mdp->num_rx_ring) - mdp->cur_rx; in sh_eth_rx()
1667 entry = (++mdp->cur_rx) % mdp->num_rx_ring; in sh_eth_rx()
1673 entry = mdp->dirty_rx % mdp->num_rx_ring; in sh_eth_rx()
1696 if (entry >= mdp->num_rx_ring - 1) in sh_eth_rx()
2303 ring->rx_pending = mdp->num_rx_ring; in sh_eth_get_ringparam()
2344 mdp->num_rx_ring = ring->rx_pending; in sh_eth_set_ringparam()
2475 for (i = 0; i < mdp->num_rx_ring; i++) { in sh_eth_tx_timeout()
3247 mdp->num_rx_ring = RX_RING_SIZE; in sh_eth_drv_probe()