Lines Matching refs:next_to_use
1112 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1116 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1118 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs()
1156 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring()
1158 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring()
1198 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring()
1497 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure()
1501 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure()
1743 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox()
1744 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox()
1842 next_next = rfd_next_to_use = atomic_read(&rfd_ring->next_to_use); in atl1_alloc_rx_buffers()
1894 atomic_set(&rfd_ring->next_to_use, (int)rfd_next_to_use); in atl1_alloc_rx_buffers()
2033 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_intr_rx()
2035 atomic_read(&adapter->rfd_ring.next_to_use); in atl1_intr_rx()
2092 u16 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tpd_avail() local
2093 return (next_to_clean > next_to_use) ? in atl1_tpd_avail()
2094 next_to_clean - next_to_use - 1 : in atl1_tpd_avail()
2095 tpd_ring->count + next_to_clean - next_to_use - 1; in atl1_tpd_avail()
2194 u16 next_to_use; in atl1_tx_map() local
2200 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tx_map()
2201 buffer_info = &tpd_ring->buffer_info[next_to_use]; in atl1_tx_map()
2217 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2218 next_to_use = 0; in atl1_tx_map()
2228 &tpd_ring->buffer_info[next_to_use]; in atl1_tx_map()
2242 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2243 next_to_use = 0; in atl1_tx_map()
2254 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2255 next_to_use = 0; in atl1_tx_map()
2267 buffer_info = &tpd_ring->buffer_info[next_to_use]; in atl1_tx_map()
2278 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2279 next_to_use = 0; in atl1_tx_map()
2295 u16 next_to_use = (u16) atomic_read(&tpd_ring->next_to_use); in atl1_tx_queue() local
2298 buffer_info = &tpd_ring->buffer_info[next_to_use]; in atl1_tx_queue()
2299 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2323 if (++next_to_use == tpd_ring->count) in atl1_tx_queue()
2324 next_to_use = 0; in atl1_tx_queue()
2334 atomic_set(&tpd_ring->next_to_use, next_to_use); in atl1_tx_queue()
2394 (u16) atomic_read(&tpd_ring->next_to_use)); in atl1_xmit_frame()