Lines Matching refs:DMA_TX_RING_SZ
391 #define DMA_TX_RING_SZ 128 macro
393 #define TX_THRESH (DMA_TX_RING_SZ/4)
401 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ)
745 priv->tx_skbuff = kcalloc(DMA_TX_RING_SZ, sizeof(struct sk_buff *), in xgmac_dma_desc_rings_init()
751 DMA_TX_RING_SZ * in xgmac_dma_desc_rings_init()
771 desc_init_tx_desc(priv->dma_tx, DMA_TX_RING_SZ); in xgmac_dma_desc_rings_init()
818 for (i = 0; i < DMA_TX_RING_SZ; i++) { in xgmac_free_tx_skbufs()
845 DMA_TX_RING_SZ * sizeof(struct xgmac_dma_desc), in xgmac_free_dma_desc_rings()
868 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete()
894 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete()
923 desc_init_tx_desc(priv->dma_tx, DMA_TX_RING_SZ); in xgmac_tx_timeout_work()
1086 priv->tx_irq_cnt = (priv->tx_irq_cnt + 1) & (DMA_TX_RING_SZ/4 - 1); in xgmac_xmit()
1114 entry = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()
1136 priv->tx_head = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()
1152 entry = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()