Searched refs:rx_ring_head (Results 1 – 2 of 2) sorted by relevance
736 dma_addr_t rx_ring_head; in _sc92031_rx_tasklet() local741 rx_ring_head = ioread32(port_base + RxBufWPtr); in _sc92031_rx_tasklet()747 rx_ring_head &= (dma_addr_t)(RX_BUF_LEN - 1); in _sc92031_rx_tasklet()748 rx_ring_head |= priv->rx_ring_dma_addr & ~(dma_addr_t)(RX_BUF_LEN - 1); in _sc92031_rx_tasklet()749 if (rx_ring_head < priv->rx_ring_dma_addr) in _sc92031_rx_tasklet()750 rx_ring_head += RX_BUF_LEN; in _sc92031_rx_tasklet()752 if (rx_ring_head >= priv->rx_ring_tail) in _sc92031_rx_tasklet()753 rx_len = rx_ring_head - priv->rx_ring_tail; in _sc92031_rx_tasklet()755 rx_len = RX_BUF_LEN - (priv->rx_ring_tail - rx_ring_head); in _sc92031_rx_tasklet()832 priv->rx_ring_tail = rx_ring_head; in _sc92031_rx_tasklet()
65 int rx_ring_head, rx_ring_tail; member597 pd->rx_ring_head = 0; in smsc9420_free_rx_ring()857 while (pd->rx_ring_tail != pd->rx_ring_head) { in smsc9420_alloc_new_rx_buffers()875 status = pd->rx_ring[pd->rx_ring_head].status; in smsc9420_rx_poll()882 smsc9420_rx_handoff(pd, pd->rx_ring_head, status); in smsc9420_rx_poll()883 pd->rx_ring_head = (pd->rx_ring_head + 1) % RX_RING_SIZE; in smsc9420_rx_poll()1294 pd->rx_ring_head = 0; in smsc9420_alloc_rx_ring()