Lines Matching refs:next_to_clean
727 atomic_set(&tx_ring->next_to_clean, 0); in atl1e_init_ring_ptrs()
1207 u16 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_clean_tx_irq() local
1209 while (next_to_clean != hw_next_to_clean) { in atl1e_clean_tx_irq()
1210 tx_buffer = &tx_ring->tx_buffer[next_to_clean]; in atl1e_clean_tx_irq()
1226 if (++next_to_clean == tx_ring->count) in atl1e_clean_tx_irq()
1227 next_to_clean = 0; in atl1e_clean_tx_irq()
1230 atomic_set(&tx_ring->next_to_clean, next_to_clean); in atl1e_clean_tx_irq()
1533 u16 next_to_clean = 0; in atl1e_tpd_avail() local
1535 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_tpd_avail()
1538 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail()
1539 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail()
1540 (tx_ring->count + next_to_clean - next_to_use - 1); in atl1e_tpd_avail()