Lines Matching refs:read_idx
52 int read_idx; member
305 ring->read_idx = 0; in bcm4908_enet_dma_ring_init()
522 !(le32_to_cpu(ring->buf_desc[ring->read_idx].ctl) & DMA_CTL_STATUS_OWN)) in bcm4908_enet_start_xmit()
526 if (ring->read_idx <= ring->write_idx) in bcm4908_enet_start_xmit()
527 free_buf_descs = ring->read_idx - ring->write_idx + ring->length; in bcm4908_enet_start_xmit()
529 free_buf_descs = ring->read_idx - ring->write_idx; in bcm4908_enet_start_xmit()
584 buf_desc = &enet->rx_ring.buf_desc[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
589 slot = enet->rx_ring.slots[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
592 err = bcm4908_enet_dma_alloc_rx_buf(enet, enet->rx_ring.read_idx); in bcm4908_enet_poll_rx()
596 if (++enet->rx_ring.read_idx == enet->rx_ring.length) in bcm4908_enet_poll_rx()
597 enet->rx_ring.read_idx = 0; in bcm4908_enet_poll_rx()
641 while (handled < weight && tx_ring->read_idx != tx_ring->write_idx) { in bcm4908_enet_poll_tx()
642 buf_desc = &tx_ring->buf_desc[tx_ring->read_idx]; in bcm4908_enet_poll_tx()
645 slot = &tx_ring->slots[tx_ring->read_idx]; in bcm4908_enet_poll_tx()
650 if (++tx_ring->read_idx == tx_ring->length) in bcm4908_enet_poll_tx()
651 tx_ring->read_idx = 0; in bcm4908_enet_poll_tx()