Home
last modified time | relevance | path

Searched refs:num_tx_ring (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/renesas/
H A Drtsn.c35 u32 num_tx_ring; member
120 entry = priv->dirty_tx % priv->num_tx_ring; in rtsn_tx_free()
151 desc = &priv->tx_ring[priv->num_tx_ring]; in rtsn_tx_free()
332 sizeof(struct rtsn_ext_desc) * (priv->num_tx_ring + 1), in rtsn_chain_free()
354 priv->num_tx_ring = tx_size; in rtsn_chain_init()
404 memset(priv->tx_ring, 0, sizeof(*tx_desc) * priv->num_tx_ring); in rtsn_chain_format()
405 for (i = 0, tx_desc = priv->tx_ring; i < priv->num_tx_ring; i++, tx_desc++) in rtsn_chain_format()
1064 if (priv->cur_tx - priv->dirty_tx > priv->num_tx_ring) { in rtsn_start_xmit()
1080 entry = priv->cur_tx % priv->num_tx_ring; in rtsn_start_xmit()
H A Dsh_eth.c1240 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()
[all …]
H A Dravb_main.c208 entry = priv->dirty_tx[q] % (priv->num_tx_ring[q] * in ravb_tx_free()
266 (priv->num_tx_ring[q] * num_tx_desc + 1); in ravb_ring_free()
362 unsigned int tx_ring_size = sizeof(*tx_desc) * priv->num_tx_ring[q] * in ravb_ring_format()
381 for (i = 0, tx_desc = priv->tx_ring[q]; i < priv->num_tx_ring[q]; in ravb_ring_format()
445 priv->tx_skb[q] = kcalloc(priv->num_tx_ring[q], in ravb_ring_init()
465 priv->tx_align[q] = kmalloc(DPTR_ALIGN * priv->num_tx_ring[q] + in ravb_ring_init()
473 (priv->num_tx_ring[q] * num_tx_desc + 1); in ravb_ring_init()
1682 ring->tx_pending = priv->num_tx_ring[RAVB_BE]; in ravb_get_ringparam()
1724 priv->num_tx_ring[RAVB_BE] = ring->tx_pending; in ravb_set_ringparam()
2117 if (priv->cur_tx[q] - priv->dirty_tx[q] > (priv->num_tx_ring[q] - 1) * in ravb_start_xmit()
[all …]
H A Dsh_eth.h537 u32 num_tx_ring; member
H A Dravb.h1091 u32 num_tx_ring[NUM_TX_QUEUE]; member