Searched refs:ring_space (Results 1 – 3 of 3) sorted by relevance
221 if (ring_space(ring) < 1) in hns_nic_maybe_stop_tx() 231 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx() 262 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso() 271 } else if (ring_space(ring) < buf_num) { in hns_nic_maybe_stop_tso() 1012 (ring_space(ring) >= ring->max_desc_num_per_pkt * 2))) { in hns_nic_tx_poll_one()
626 static inline u32 ring_space(struct hns3_enet_ring *ring) in ring_space() function
1981 if (likely(ring_space(ring) >= bd_num)) in hns3_nic_maybe_stop_tx() 1985 smp_mb(); /* Memory barrier before checking ring_space */ in hns3_nic_maybe_stop_tx() 1991 if (ring_space(ring) >= bd_num && netif_carrier_ok(netdev) && in hns3_nic_maybe_stop_tx() 3677 * ring_space called by hns3_nic_net_xmit. in hns3_nic_reclaim_desc() 3711 ring_space(ring) > HNS3_MAX_TSO_BD_NUM)) { in hns3_clean_tx_ring()