Lines Matching refs:read_idx
84 while (!cur_buf->skb && next != rxq->read_idx) { in alx_refill_rx_ring()
159 if (txq->write_idx >= txq->read_idx) in alx_tpd_avail()
160 return txq->count + txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
161 return txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
175 sw_read_idx = txq->read_idx; in alx_clean_tx_irq()
194 txq->read_idx = sw_read_idx; in alx_clean_tx_irq()
234 RRD_SI) != rxq->read_idx || in alx_clean_rx_irq()
241 rxb = &rxq->bufs[rxq->read_idx]; in alx_clean_rx_irq()
281 if (++rxq->read_idx == rxq->count) in alx_clean_rx_irq()
282 rxq->read_idx = 0; in alx_clean_rx_irq()
460 np->txq->read_idx = 0; in alx_init_ring_ptrs()
468 np->rxq->read_idx = 0; in alx_init_ring_ptrs()
501 txq->read_idx = 0; in alx_free_txring_buf()
529 rxq->read_idx = 0; in alx_free_rxring_buf()