/Linux-v4.19/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 198 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local 203 new_rx_count = max_t(u32, ring->rx_pending, IGBVF_MIN_RXD); in igbvf_set_ringparam() 204 new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); in igbvf_set_ringparam() 205 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam() 212 (new_rx_count == adapter->rx_ring->count)) { in igbvf_set_ringparam() 222 adapter->rx_ring->count = new_rx_count; in igbvf_set_ringparam() 251 if (new_rx_count != adapter->rx_ring->count) { in igbvf_set_ringparam() 254 temp_ring->count = new_rx_count; in igbvf_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 249 u32 new_rx_count, new_tx_count; in ixgbevf_set_ringparam() local 259 new_rx_count = max_t(u32, ring->rx_pending, IXGBEVF_MIN_RXD); in ixgbevf_set_ringparam() 260 new_rx_count = min_t(u32, new_rx_count, IXGBEVF_MAX_RXD); in ixgbevf_set_ringparam() 261 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbevf_set_ringparam() 265 (new_rx_count == adapter->rx_ring_count)) in ixgbevf_set_ringparam() 277 adapter->rx_ring[i]->count = new_rx_count; in ixgbevf_set_ringparam() 280 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam() 330 if (new_rx_count != adapter->rx_ring_count) { in ixgbevf_set_ringparam() 346 rx_ring[i].count = new_rx_count; in ixgbevf_set_ringparam() 389 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_ethtool.c | 374 u32 new_rx_count, new_tx_count; in i40evf_set_ringparam() local 384 new_rx_count = clamp_t(u32, ring->rx_pending, in i40evf_set_ringparam() 387 new_rx_count = ALIGN(new_rx_count, I40EVF_REQ_DESCRIPTOR_MULTIPLE); in i40evf_set_ringparam() 391 (new_rx_count == adapter->rx_desc_count)) in i40evf_set_ringparam() 395 adapter->rx_desc_count = new_rx_count; in i40evf_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 527 u32 new_rx_count, new_tx_count; in fm10k_set_ringparam() local 536 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam() 538 new_rx_count = ALIGN(new_rx_count, FM10K_REQ_RX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam() 541 (new_rx_count == interface->rx_ring_count)) { in fm10k_set_ringparam() 553 interface->rx_ring[i]->count = new_rx_count; in fm10k_set_ringparam() 555 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam() 602 if (new_rx_count != interface->rx_ring_count) { in fm10k_set_ringparam() 607 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam() 625 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 670 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local 675 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam() 677 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 684 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam() 694 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam() 696 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam() 701 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam() 736 temp_rx->count = new_rx_count; in e1000_set_ringparam() 751 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 872 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local 877 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam() 878 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam() 879 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam() 886 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam() 898 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam() 900 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam() 948 if (new_rx_count != adapter->rx_ring_count) { in igb_set_ringparam() 953 temp_ring[i].count = new_rx_count; in igb_set_ringparam() 972 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1036 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local 1045 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam() 1047 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam() 1050 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam() 1064 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam() 1067 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam() 1137 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam() 1146 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam() 1165 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 1488 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local 1508 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam() 1512 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam() 1526 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam() 1580 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam() 1583 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam() 1596 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()
|