Lines Matching refs:next_to_use
1114 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1118 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1120 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs()
1158 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring()
1160 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring()
1200 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring()
1499 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure()
1503 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure()
1745 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox()
1746 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox()
1844 next_next = rfd_next_to_use = atomic_read(&rfd_ring->next_to_use); in atl1_alloc_rx_buffers()
1896 atomic_set(&rfd_ring->next_to_use, (int)rfd_next_to_use); in atl1_alloc_rx_buffers()
2035 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_intr_rx()
2037 atomic_read(&adapter->rfd_ring.next_to_use); in atl1_intr_rx()
2094 u16 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tpd_avail() local
2095 return (next_to_clean > next_to_use) ? in atl1_tpd_avail()
2096 next_to_clean - next_to_use - 1 : in atl1_tpd_avail()
2097 tpd_ring->count + next_to_clean - next_to_use - 1; in atl1_tpd_avail()
2196 u16 next_to_use; in atl1_tx_map() local
2202 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tx_map()
2203 buffer_info = &tpd_ring->buffer_info[next_to_use]; in atl1_tx_map()
2219 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2220 next_to_use = 0; in atl1_tx_map()
2230 &tpd_ring->buffer_info[next_to_use]; in atl1_tx_map()
2243 if (++next_to_use == tpd_ring->count) in atl1_tx_map()
2244 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()