Home
last modified time | relevance | path

Searched refs:new_rx_count (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/intel/igbvf/
Dethtool.c220 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local
225 new_rx_count = max_t(u32, ring->rx_pending, IGBVF_MIN_RXD); in igbvf_set_ringparam()
226 new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); in igbvf_set_ringparam()
227 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam()
234 (new_rx_count == adapter->rx_ring->count)) { in igbvf_set_ringparam()
244 adapter->rx_ring->count = new_rx_count; in igbvf_set_ringparam()
273 if (new_rx_count != adapter->rx_ring->count) { in igbvf_set_ringparam()
276 temp_ring->count = new_rx_count; in igbvf_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c269 u32 new_rx_count, new_tx_count; in ixgbevf_set_ringparam() local
279 new_rx_count = max_t(u32, ring->rx_pending, IXGBEVF_MIN_RXD); in ixgbevf_set_ringparam()
280 new_rx_count = min_t(u32, new_rx_count, IXGBEVF_MAX_RXD); in ixgbevf_set_ringparam()
281 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbevf_set_ringparam()
285 (new_rx_count == adapter->rx_ring_count)) in ixgbevf_set_ringparam()
295 adapter->rx_ring[i]->count = new_rx_count; in ixgbevf_set_ringparam()
297 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam()
327 if (new_rx_count != adapter->rx_ring_count) { in ixgbevf_set_ringparam()
337 rx_ring[i].count = new_rx_count; in ixgbevf_set_ringparam()
374 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c247 u32 new_rx_count, new_tx_count; in i40evf_set_ringparam() local
257 new_rx_count = clamp_t(u32, ring->rx_pending, in i40evf_set_ringparam()
260 new_rx_count = ALIGN(new_rx_count, I40EVF_REQ_DESCRIPTOR_MULTIPLE); in i40evf_set_ringparam()
264 (new_rx_count == adapter->rx_desc_count)) in i40evf_set_ringparam()
268 adapter->rx_desc_count = new_rx_count; in i40evf_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c588 u32 new_rx_count, new_tx_count; in fm10k_set_ringparam() local
597 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam()
599 new_rx_count = ALIGN(new_rx_count, FM10K_REQ_RX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam()
602 (new_rx_count == interface->rx_ring_count)) { in fm10k_set_ringparam()
614 interface->rx_ring[i]->count = new_rx_count; in fm10k_set_ringparam()
616 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
663 if (new_rx_count != interface->rx_ring_count) { in fm10k_set_ringparam()
668 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam()
686 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dethtool.c671 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local
676 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam()
678 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
685 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam()
695 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam()
697 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
702 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam()
737 temp_rx->count = new_rx_count; in e1000_set_ringparam()
752 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
Digb_ethtool.c864 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local
869 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam()
870 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam()
871 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam()
878 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam()
890 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam()
892 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
940 if (new_rx_count != adapter->rx_ring_count) { in igb_set_ringparam()
945 temp_ring[i].count = new_rx_count; in igb_set_ringparam()
964 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c967 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local
976 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam()
978 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam()
981 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam()
993 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam()
995 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
1043 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam()
1048 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam()
1067 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1160 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local
1178 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam()
1182 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam()
1192 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam()
1238 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam()
1241 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam()
1252 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()