Lines Matching refs:num_tx_ring
1240 entry = mdp->dirty_tx % mdp->num_tx_ring; in sh_eth_tx_free()
1261 if (entry >= mdp->num_tx_ring - 1) in sh_eth_tx_free()
1306 ringsize = sizeof(struct sh_eth_txdesc) * mdp->num_tx_ring; in sh_eth_ring_free()
1326 int tx_ringsize = sizeof(*txdesc) * mdp->num_tx_ring; in sh_eth_ring_format()
1380 for (i = 0; i < mdp->num_tx_ring; i++) { in sh_eth_ring_format()
1418 mdp->tx_skbuff = kcalloc(mdp->num_tx_ring, sizeof(*mdp->tx_skbuff), in sh_eth_ring_init()
1433 tx_ringsize = sizeof(struct sh_eth_txdesc) * mdp->num_tx_ring; in sh_eth_ring_init()
1544 for (i = 0; i < mdp->num_tx_ring; i++) in sh_eth_dev_exit()
2300 ring->tx_pending = mdp->num_tx_ring; in sh_eth_get_ringparam()
2341 mdp->num_tx_ring = ring->tx_pending; in sh_eth_set_ringparam()
2478 for (i = 0; i < mdp->num_tx_ring; i++) { in sh_eth_tx_timeout()
2500 if ((mdp->cur_tx - mdp->dirty_tx) >= (mdp->num_tx_ring - 4)) { in sh_eth_start_xmit()
2513 entry = mdp->cur_tx % mdp->num_tx_ring; in sh_eth_start_xmit()
2529 if (entry >= mdp->num_tx_ring - 1) in sh_eth_start_xmit()
3277 mdp->num_tx_ring = TX_RING_SIZE; in sh_eth_drv_probe()