Lines Matching full:ntc
610 u16 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc() local
623 if (last_rs >= ntc) in ice_clean_xdp_irq_zc()
624 completed_frames = last_rs - ntc + 1; in ice_clean_xdp_irq_zc()
626 completed_frames = last_rs + cnt - ntc + 1; in ice_clean_xdp_irq_zc()
637 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc()
639 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq_zc()
649 ntc++; in ice_clean_xdp_irq_zc()
650 if (ntc >= xdp_ring->count) in ice_clean_xdp_irq_zc()
651 ntc = 0; in ice_clean_xdp_irq_zc()
846 u32 ntc = rx_ring->next_to_clean; in ice_clean_rx_irq_zc() local
862 if (ntc != rx_ring->first_desc) in ice_clean_rx_irq_zc()
873 rx_desc = ICE_RX_DESC(rx_ring, ntc); in ice_clean_rx_irq_zc()
885 if (unlikely(ntc == ntu)) in ice_clean_rx_irq_zc()
888 xdp = *ice_xdp_buf(rx_ring, ntc); in ice_clean_rx_irq_zc()
902 if (++ntc == cnt) in ice_clean_rx_irq_zc()
903 ntc = 0; in ice_clean_rx_irq_zc()
915 rx_ring->first_desc = ntc; in ice_clean_rx_irq_zc()
927 rx_ring->first_desc = ntc; in ice_clean_rx_irq_zc()
939 rx_ring->first_desc = ntc; in ice_clean_rx_irq_zc()
955 rx_ring->next_to_clean = ntc; in ice_clean_rx_irq_zc()
968 if (failure || ntc == rx_ring->next_to_use) in ice_clean_rx_irq_zc()
1175 u16 ntc = rx_ring->next_to_clean; in ice_xsk_clean_rx_ring() local
1178 while (ntc != ntu) { in ice_xsk_clean_rx_ring()
1179 struct xdp_buff *xdp = *ice_xdp_buf(rx_ring, ntc); in ice_xsk_clean_rx_ring()
1182 ntc++; in ice_xsk_clean_rx_ring()
1183 if (ntc >= rx_ring->count) in ice_xsk_clean_rx_ring()
1184 ntc = 0; in ice_xsk_clean_rx_ring()
1194 u16 ntc = xdp_ring->next_to_clean, ntu = xdp_ring->next_to_use; in ice_xsk_clean_xdp_ring() local
1197 while (ntc != ntu) { in ice_xsk_clean_xdp_ring()
1198 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc]; in ice_xsk_clean_xdp_ring()
1207 ntc++; in ice_xsk_clean_xdp_ring()
1208 if (ntc >= xdp_ring->count) in ice_xsk_clean_xdp_ring()
1209 ntc = 0; in ice_xsk_clean_xdp_ring()