Home
last modified time | relevance | path

Searched refs:cleaned_count (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c242 u16 cleaned_count = ixgbe_desc_unused(rx_ring); in ixgbe_clean_rx_irq_zc() local
253 if (cleaned_count >= IXGBE_RX_BUFFER_WRITE) { in ixgbe_clean_rx_irq_zc()
256 cleaned_count); in ixgbe_clean_rx_irq_zc()
257 cleaned_count = 0; in ixgbe_clean_rx_irq_zc()
308 cleaned_count++; in ixgbe_clean_rx_irq_zc()
320 cleaned_count++; in ixgbe_clean_rx_irq_zc()
Dixgbe_txrx_common.h39 bool ixgbe_alloc_rx_buffers_zc(struct ixgbe_ring *rx_ring, u16 cleaned_count);
Dixgbe_main.c1577 void ixgbe_alloc_rx_buffers(struct ixgbe_ring *rx_ring, u16 cleaned_count) in ixgbe_alloc_rx_buffers() argument
1585 if (!cleaned_count) in ixgbe_alloc_rx_buffers()
1621 cleaned_count--; in ixgbe_alloc_rx_buffers()
1622 } while (cleaned_count); in ixgbe_alloc_rx_buffers()
2294 u16 cleaned_count = ixgbe_desc_unused(rx_ring); in ixgbe_clean_rx_irq() local
2313 if (cleaned_count >= IXGBE_RX_BUFFER_WRITE) { in ixgbe_clean_rx_irq()
2314 ixgbe_alloc_rx_buffers(rx_ring, cleaned_count); in ixgbe_clean_rx_irq()
2315 cleaned_count = 0; in ixgbe_clean_rx_irq()
2374 cleaned_count++; in ixgbe_clean_rx_irq()
/Linux-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_xsk.h31 bool i40e_alloc_rx_buffers_zc(struct i40e_ring *rx_ring, u16 cleaned_count);
Di40e_xsk.c329 u16 cleaned_count = I40E_DESC_UNUSED(rx_ring); in i40e_clean_rx_irq_zc() local
381 cleaned_count = (next_to_clean - rx_ring->next_to_use - 1) & count_mask; in i40e_clean_rx_irq_zc()
383 if (cleaned_count >= I40E_RX_BUFFER_WRITE) in i40e_clean_rx_irq_zc()
384 failure = !i40e_alloc_rx_buffers_zc(rx_ring, cleaned_count); in i40e_clean_rx_irq_zc()
Di40e_txrx.c1709 bool i40e_alloc_rx_buffers(struct i40e_ring *rx_ring, u16 cleaned_count) in i40e_alloc_rx_buffers() argument
1716 if (!rx_ring->netdev || !cleaned_count) in i40e_alloc_rx_buffers()
1749 cleaned_count--; in i40e_alloc_rx_buffers()
1750 } while (cleaned_count); in i40e_alloc_rx_buffers()
2443 u16 cleaned_count = I40E_DESC_UNUSED(rx_ring); in i40e_clean_rx_irq() local
2464 if (cleaned_count >= I40E_RX_BUFFER_WRITE) { in i40e_clean_rx_irq()
2466 i40e_alloc_rx_buffers(rx_ring, cleaned_count); in i40e_clean_rx_irq()
2467 cleaned_count = 0; in i40e_clean_rx_irq()
2492 cleaned_count++; in i40e_clean_rx_irq()
2543 cleaned_count++; in i40e_clean_rx_irq()
Di40e_txrx.h452 bool i40e_alloc_rx_buffers(struct i40e_ring *rxr, u16 cleaned_count);
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_xsk.c517 u16 cleaned_count = ICE_DESC_UNUSED(rx_ring); in ice_clean_rx_irq_zc() local
561 cleaned_count++; in ice_clean_rx_irq_zc()
574 cleaned_count++; in ice_clean_rx_irq_zc()
596 if (cleaned_count >= ICE_RX_BUF_WRITE) in ice_clean_rx_irq_zc()
597 failure = !ice_alloc_rx_bufs_zc(rx_ring, cleaned_count); in ice_clean_rx_irq_zc()
Dice_txrx.c668 bool ice_alloc_rx_bufs(struct ice_ring *rx_ring, u16 cleaned_count) in ice_alloc_rx_bufs() argument
676 !cleaned_count) in ice_alloc_rx_bufs()
711 cleaned_count--; in ice_alloc_rx_bufs()
712 } while (cleaned_count); in ice_alloc_rx_bufs()
717 return !!cleaned_count; in ice_alloc_rx_bufs()
1066 u16 cleaned_count = ICE_DESC_UNUSED(rx_ring); in ice_clean_rx_irq() local
1117 cleaned_count++; in ice_clean_rx_irq()
1159 cleaned_count++; in ice_clean_rx_irq()
1180 cleaned_count++; in ice_clean_rx_irq()
1221 failure = ice_alloc_rx_bufs(rx_ring, cleaned_count); in ice_clean_rx_irq()
Dice_txrx.h379 bool ice_alloc_rx_bufs(struct ice_ring *rxr, u16 cleaned_count);
/Linux-v5.15/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c109 void fm10k_alloc_rx_buffers(struct fm10k_ring *rx_ring, u16 cleaned_count) in fm10k_alloc_rx_buffers() argument
116 if (!cleaned_count) in fm10k_alloc_rx_buffers()
144 cleaned_count--; in fm10k_alloc_rx_buffers()
145 } while (cleaned_count); in fm10k_alloc_rx_buffers()
560 u16 cleaned_count = fm10k_desc_unused(rx_ring); in fm10k_clean_rx_irq() local
566 if (cleaned_count >= FM10K_RX_BUFFER_WRITE) { in fm10k_clean_rx_irq()
567 fm10k_alloc_rx_buffers(rx_ring, cleaned_count); in fm10k_clean_rx_irq()
568 cleaned_count = 0; in fm10k_clean_rx_irq()
589 cleaned_count++; in fm10k_clean_rx_irq()
Dfm10k.h481 void fm10k_alloc_rx_buffers(struct fm10k_ring *rx_ring, u16 cleaned_count);
/Linux-v5.15/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1329 struct pch_gbe_rx_ring *rx_ring, int cleaned_count) in pch_gbe_alloc_rx_buffers() argument
1343 while ((cleaned_count--)) { in pch_gbe_alloc_rx_buffers()
1392 struct pch_gbe_rx_ring *rx_ring, int cleaned_count) in pch_gbe_alloc_rx_buffers_pool() argument
1462 unsigned int cleaned_count = 0; in pch_gbe_clean_tx() local
1553 if (cleaned_count++ == PCH_GBE_TX_WEIGHT) { in pch_gbe_clean_tx()
1560 cleaned_count); in pch_gbe_clean_tx()
1561 if (cleaned_count > 0) { /*skip this if nothing cleaned*/ in pch_gbe_clean_tx()
1601 unsigned int cleaned_count = 0; in pch_gbe_clean_rx() local
1616 cleaned_count++; in pch_gbe_clean_rx()
1682 if (unlikely(cleaned_count >= PCH_GBE_RX_BUFFER_WRITE)) { in pch_gbe_clean_rx()
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c879 bool iavf_alloc_rx_buffers(struct iavf_ring *rx_ring, u16 cleaned_count) in iavf_alloc_rx_buffers() argument
886 if (!rx_ring->netdev || !cleaned_count) in iavf_alloc_rx_buffers()
919 cleaned_count--; in iavf_alloc_rx_buffers()
920 } while (cleaned_count); in iavf_alloc_rx_buffers()
1464 u16 cleaned_count = IAVF_DESC_UNUSED(rx_ring); in iavf_clean_rx_irq() local
1476 if (cleaned_count >= IAVF_RX_BUFFER_WRITE) { in iavf_clean_rx_irq()
1478 iavf_alloc_rx_buffers(rx_ring, cleaned_count); in iavf_clean_rx_irq()
1479 cleaned_count = 0; in iavf_clean_rx_irq()
1523 cleaned_count++; in iavf_clean_rx_irq()
Diavf_txrx.h439 bool iavf_alloc_rx_buffers(struct iavf_ring *rxr, u16 cleaned_count);
/Linux-v5.15/drivers/net/ethernet/intel/e1000/
De1000_main.c121 int cleaned_count) in e1000_alloc_dummy_rx_buffers() argument
126 int cleaned_count);
129 int cleaned_count);
4137 int cleaned_count = 0; in e1000_clean_jumbo_rx_irq() local
4165 cleaned_count++; in e1000_clean_jumbo_rx_irq()
4295 if (unlikely(cleaned_count >= E1000_RX_BUFFER_WRITE)) { in e1000_clean_jumbo_rx_irq()
4296 adapter->alloc_rx_buf(adapter, rx_ring, cleaned_count); in e1000_clean_jumbo_rx_irq()
4297 cleaned_count = 0; in e1000_clean_jumbo_rx_irq()
4306 cleaned_count = E1000_DESC_UNUSED(rx_ring); in e1000_clean_jumbo_rx_irq()
4307 if (cleaned_count) in e1000_clean_jumbo_rx_irq()
[all …]
De1000.h253 int cleaned_count);
/Linux-v5.15/drivers/net/
Dthunderbolt.c759 unsigned int cleaned_count = tbnet_available_buffers(&net->rx_ring); in tbnet_poll() local
777 if (cleaned_count >= MAX_SKB_FRAGS) { in tbnet_poll()
778 tbnet_alloc_rx_buffers(net, cleaned_count); in tbnet_poll()
779 cleaned_count = 0; in tbnet_poll()
794 cleaned_count++; in tbnet_poll()
844 if (cleaned_count) in tbnet_poll()
845 tbnet_alloc_rx_buffers(net, cleaned_count); in tbnet_poll()
/Linux-v5.15/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c1942 int cleaned_count = 0; in ixgb_clean_rx_irq() local
1978 cleaned_count++; in ixgb_clean_rx_irq()
2027 if (unlikely(cleaned_count >= IXGB_RX_BUFFER_WRITE)) { in ixgb_clean_rx_irq()
2028 ixgb_alloc_rx_buffers(adapter, cleaned_count); in ixgb_clean_rx_irq()
2029 cleaned_count = 0; in ixgb_clean_rx_irq()
2039 cleaned_count = IXGB_DESC_UNUSED(rx_ring); in ixgb_clean_rx_irq()
2040 if (cleaned_count) in ixgb_clean_rx_irq()
2041 ixgb_alloc_rx_buffers(adapter, cleaned_count); in ixgb_clean_rx_irq()
2053 ixgb_alloc_rx_buffers(struct ixgb_adapter *adapter, int cleaned_count) in ixgb_alloc_rx_buffers() argument
2070 while (--cleancount > 2 && cleaned_count--) { in ixgb_alloc_rx_buffers()
/Linux-v5.15/drivers/net/ethernet/intel/e1000e/
Dnetdev.c644 int cleaned_count, gfp_t gfp) in e1000_alloc_rx_buffers() argument
658 while (cleaned_count--) { in e1000_alloc_rx_buffers()
714 int cleaned_count, gfp_t gfp) in e1000_alloc_rx_buffers_ps() argument
728 while (cleaned_count--) { in e1000_alloc_rx_buffers_ps()
819 int cleaned_count, gfp_t gfp) in e1000_alloc_jumbo_rx_buffers() argument
833 while (cleaned_count--) { in e1000_alloc_jumbo_rx_buffers()
922 int cleaned_count = 0; in e1000_clean_rx_irq() local
953 cleaned_count++; in e1000_clean_rx_irq()
1036 if (cleaned_count >= E1000_RX_BUFFER_WRITE) { in e1000_clean_rx_irq()
1037 adapter->alloc_rx_buf(rx_ring, cleaned_count, in e1000_clean_rx_irq()
[all …]
De1000.h254 void (*alloc_rx_buf)(struct e1000_ring *ring, int cleaned_count,
/Linux-v5.15/drivers/net/ethernet/intel/igbvf/
Dnetdev.c134 int cleaned_count) in igbvf_alloc_rx_buffers() argument
153 while (cleaned_count--) { in igbvf_alloc_rx_buffers()
254 int cleaned_count = 0; in igbvf_clean_rx_irq() local
284 cleaned_count++; in igbvf_clean_rx_irq()
362 if (cleaned_count >= IGBVF_RX_BUFFER_WRITE) { in igbvf_clean_rx_irq()
363 igbvf_alloc_rx_buffers(rx_ring, cleaned_count); in igbvf_clean_rx_irq()
364 cleaned_count = 0; in igbvf_clean_rx_irq()
375 cleaned_count = igbvf_desc_unused(rx_ring); in igbvf_clean_rx_irq()
377 if (cleaned_count) in igbvf_clean_rx_irq()
378 igbvf_alloc_rx_buffers(rx_ring, cleaned_count); in igbvf_clean_rx_irq()
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc_main.c1996 static void igc_alloc_rx_buffers(struct igc_ring *rx_ring, u16 cleaned_count) in igc_alloc_rx_buffers() argument
2004 if (!cleaned_count) in igc_alloc_rx_buffers()
2039 cleaned_count--; in igc_alloc_rx_buffers()
2040 } while (cleaned_count); in igc_alloc_rx_buffers()
2312 u16 cleaned_count = igc_desc_unused(rx_ring); in igc_clean_rx_irq() local
2325 if (cleaned_count >= IGC_RX_BUFFER_WRITE) { in igc_clean_rx_irq()
2326 igc_alloc_rx_buffers(rx_ring, cleaned_count); in igc_clean_rx_irq()
2327 cleaned_count = 0; in igc_clean_rx_irq()
2393 cleaned_count++; in igc_clean_rx_irq()
2428 if (cleaned_count) in igc_clean_rx_irq()
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c651 u16 cleaned_count) in ixgbevf_alloc_rx_buffers() argument
658 if (!cleaned_count || !rx_ring->netdev) in ixgbevf_alloc_rx_buffers()
692 cleaned_count--; in ixgbevf_alloc_rx_buffers()
693 } while (cleaned_count); in ixgbevf_alloc_rx_buffers()
1122 u16 cleaned_count = ixgbevf_desc_unused(rx_ring); in ixgbevf_clean_rx_irq() local
1139 if (cleaned_count >= IXGBEVF_RX_BUFFER_WRITE) { in ixgbevf_clean_rx_irq()
1140 ixgbevf_alloc_rx_buffers(rx_ring, cleaned_count); in ixgbevf_clean_rx_irq()
1141 cleaned_count = 0; in ixgbevf_clean_rx_irq()
1200 cleaned_count++; in ixgbevf_clean_rx_irq()
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb_main.c8675 u16 cleaned_count = igb_desc_unused(rx_ring); in igb_clean_rx_irq() local
8696 if (cleaned_count >= IGB_RX_BUFFER_WRITE) { in igb_clean_rx_irq()
8697 igb_alloc_rx_buffers(rx_ring, cleaned_count); in igb_clean_rx_irq()
8698 cleaned_count = 0; in igb_clean_rx_irq()
8767 cleaned_count++; in igb_clean_rx_irq()
8813 if (cleaned_count) in igb_clean_rx_irq()
8814 igb_alloc_rx_buffers(rx_ring, cleaned_count); in igb_clean_rx_irq()
8866 void igb_alloc_rx_buffers(struct igb_ring *rx_ring, u16 cleaned_count) in igb_alloc_rx_buffers() argument
8874 if (!cleaned_count) in igb_alloc_rx_buffers()
8909 cleaned_count--; in igb_alloc_rx_buffers()
[all …]