Searched refs:ring_dist (Results 1 – 2 of 2) sorted by relevance
316 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() function327 ring_dist(ring, ring->next_to_clean, ring->next_to_use) - 1; in ring_space()
1645 fetch_num = ring_dist(ring, head, tail); in hns_nic_clear_all_rx_fetch()