Lines Matching refs:rx_ring
49 lp->rx_ring = dma_alloc_coherent(&lp->pdev->dev, in at91ether_start()
53 if (!lp->rx_ring) in at91ether_start()
62 lp->rx_ring, lp->rx_ring_dma); in at91ether_start()
63 lp->rx_ring = NULL; in at91ether_start()
69 lp->rx_ring[i].addr = addr; in at91ether_start()
70 lp->rx_ring[i].ctrl = 0; in at91ether_start()
75 lp->rx_ring[MAX_RX_DESCR - 1].addr |= MACB_BIT(RX_WRAP); in at91ether_start()
147 lp->rx_ring, lp->rx_ring_dma); in at91ether_close()
148 lp->rx_ring = NULL; in at91ether_close()
195 while (lp->rx_ring[lp->rx_tail].addr & MACB_BIT(RX_USED)) { in at91ether_rx()
197 pktlen = MACB_BF(RX_FRMLEN, lp->rx_ring[lp->rx_tail].ctrl); in at91ether_rx()
211 if (lp->rx_ring[lp->rx_tail].ctrl & MACB_BIT(RX_MHASH_MATCH)) in at91ether_rx()
215 lp->rx_ring[lp->rx_tail].addr &= ~MACB_BIT(RX_USED); in at91ether_rx()