Lines Matching refs:next_to_use
61 if (rx_ring->next_to_use >= rx_ring->next_to_clean) in ocelot_fdma_rx_ring_free()
63 (rx_ring->next_to_use - rx_ring->next_to_clean) - 1; in ocelot_fdma_rx_ring_free()
65 return rx_ring->next_to_clean - rx_ring->next_to_use - 1; in ocelot_fdma_rx_ring_free()
72 if (tx_ring->next_to_use >= tx_ring->next_to_clean) in ocelot_fdma_tx_ring_free()
74 (tx_ring->next_to_use - tx_ring->next_to_clean) - 1; in ocelot_fdma_tx_ring_free()
76 return tx_ring->next_to_clean - tx_ring->next_to_use - 1; in ocelot_fdma_tx_ring_free()
83 return tx_ring->next_to_clean == tx_ring->next_to_use; in ocelot_fdma_tx_ring_empty()
158 idx = rx_ring->next_to_use; in ocelot_fdma_alloc_rx_buffs()
181 rx_ring->next_to_use = idx; in ocelot_fdma_alloc_rx_buffs()
229 idx = ocelot_fdma_idx_prev(rx_ring->next_to_use, in ocelot_fdma_rx_set_llp()
542 new_null_llp_idx = ocelot_fdma_idx_prev(tx_ring->next_to_use, in ocelot_fdma_tx_cleanup()
616 dcb = &tx_ring->dcbs[tx_ring->next_to_use]; in ocelot_fdma_send_skb()
617 tx_buf = &tx_ring->bufs[tx_ring->next_to_use]; in ocelot_fdma_send_skb()
623 next_idx = ocelot_fdma_idx_next(tx_ring->next_to_use, in ocelot_fdma_send_skb()
630 tx_ring->next_to_use); in ocelot_fdma_send_skb()
637 tx_ring->next_to_use = next_idx; in ocelot_fdma_send_skb()
710 while (idx != rx_ring->next_to_use) { in ocelot_fdma_free_rx_ring()
733 while (idx != tx_ring->next_to_use) { in ocelot_fdma_free_tx_ring()