Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dethtool.c222 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local
227 new_rx_count = max_t(u32, ring->rx_pending, IGBVF_MIN_RXD); in igbvf_set_ringparam()
228 new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); in igbvf_set_ringparam()
229 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam()
236 (new_rx_count == adapter->rx_ring->count)) { in igbvf_set_ringparam()
246 adapter->rx_ring->count = new_rx_count; in igbvf_set_ringparam()
275 if (new_rx_count != adapter->rx_ring->count) { in igbvf_set_ringparam()
278 temp_ring->count = new_rx_count; in igbvf_set_ringparam()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c474 u32 new_rx_count, new_tx_count; in fm10k_set_ringparam() local
483 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam()
485 new_rx_count = ALIGN(new_rx_count, FM10K_REQ_RX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam()
488 (new_rx_count == interface->rx_ring_count)) { in fm10k_set_ringparam()
500 interface->rx_ring[i]->count = new_rx_count; in fm10k_set_ringparam()
502 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
549 if (new_rx_count != interface->rx_ring_count) { in fm10k_set_ringparam()
554 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam()
572 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dethtool.c673 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local
678 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam()
680 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
687 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam()
697 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam()
699 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
704 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam()
739 temp_rx->count = new_rx_count; in e1000_set_ringparam()
754 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ethtool.c868 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local
873 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam()
874 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam()
875 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam()
882 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam()
894 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam()
896 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
944 if (new_rx_count != adapter->rx_ring_count) { in igb_set_ringparam()
949 temp_ring[i].count = new_rx_count; in igb_set_ringparam()
968 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c962 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local
971 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam()
973 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam()
976 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam()
988 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam()
990 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
1038 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam()
1043 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam()
1062 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1095 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local
1113 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam()
1117 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam()
1127 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam()
1168 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam()
1171 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam()
1182 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()