Searched refs:next_next (Results 1 – 2 of 2) sorted by relevance
1733 u16 rfd_next_to_use, next_next; in atl1c_alloc_rx_buffer() local1736 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer()1737 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()1738 next_next = 0; in atl1c_alloc_rx_buffer()1740 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()1767 rfd_next_to_use = next_next; in atl1c_alloc_rx_buffer()1768 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()1769 next_next = 0; in atl1c_alloc_rx_buffer()1771 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()
1857 u16 rfd_next_to_use, next_next; in atl1_alloc_rx_buffers() local1860 next_next = rfd_next_to_use = atomic_read(&rfd_ring->next_to_use); in atl1_alloc_rx_buffers()1861 if (++next_next == rfd_ring->count) in atl1_alloc_rx_buffers()1862 next_next = 0; in atl1_alloc_rx_buffers()1864 next_info = &rfd_ring->buffer_info[next_next]; in atl1_alloc_rx_buffers()1895 rfd_next_to_use = next_next; in atl1_alloc_rx_buffers()1896 if (unlikely(++next_next == rfd_ring->count)) in atl1_alloc_rx_buffers()1897 next_next = 0; in atl1_alloc_rx_buffers()1900 next_info = &rfd_ring->buffer_info[next_next]; in atl1_alloc_rx_buffers()