Home
last modified time | relevance | path

Searched refs:dma_ring_incr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c396 #define dma_ring_incr(n, s) (((n) + 1) & ((s) - 1)) macro
708 priv->rx_head = dma_ring_incr(priv->rx_head, DMA_RX_RING_SZ); in xgmac_rx_refill()
894 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete()
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()
1186 priv->rx_tail = dma_ring_incr(priv->rx_tail, DMA_RX_RING_SZ); in xgmac_rx()
/openbmc/linux/drivers/net/ethernet/hisilicon/
H A Dhix5hd2_gmac.c188 #define dma_ring_incr(n, s) (((n) + 1) & ((s) - 1)) macro
498 pos = dma_ring_incr(pos, RX_DESC_NUM); in hix5hd2_rx_refill()
555 pos = dma_ring_incr(pos, RX_DESC_NUM); in hix5hd2_rx()
625 pos = dma_ring_incr(pos, TX_DESC_NUM); in hix5hd2_xmit_reclaim()
782 pos = dma_ring_incr(pos, TX_DESC_NUM); in hix5hd2_net_xmit()