Searched refs:temp_ring (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 194 struct igbvf_ring *temp_ring; in igbvf_set_ringparam() local 224 temp_ring = vmalloc(sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 225 if (!temp_ring) { in igbvf_set_ringparam() 237 memcpy(temp_ring, adapter->tx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 239 temp_ring->count = new_tx_count; in igbvf_set_ringparam() 240 err = igbvf_setup_tx_resources(adapter, temp_ring); in igbvf_set_ringparam() 246 memcpy(adapter->tx_ring, temp_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 250 memcpy(temp_ring, adapter->rx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 252 temp_ring->count = new_rx_count; in igbvf_set_ringparam() 253 err = igbvf_setup_rx_resources(adapter, temp_ring); in igbvf_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 522 struct fm10k_ring *temp_ring; in fm10k_set_ringparam() local 558 temp_ring = vmalloc(array_size(i, sizeof(struct fm10k_ring))); in fm10k_set_ringparam() 560 if (!temp_ring) { in fm10k_set_ringparam() 574 memcpy(&temp_ring[i], interface->tx_ring[i], in fm10k_set_ringparam() 577 temp_ring[i].count = new_tx_count; in fm10k_set_ringparam() 578 err = fm10k_setup_tx_resources(&temp_ring[i]); in fm10k_set_ringparam() 582 fm10k_free_tx_resources(&temp_ring[i]); in fm10k_set_ringparam() 591 memcpy(interface->tx_ring[i], &temp_ring[i], in fm10k_set_ringparam() 601 memcpy(&temp_ring[i], interface->rx_ring[i], in fm10k_set_ringparam() 604 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 567 struct igc_ring *temp_ring; in igc_ethtool_set_ringparam() local 602 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam() 605 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam() 608 if (!temp_ring) { in igc_ethtool_set_ringparam() 621 memcpy(&temp_ring[i], adapter->tx_ring[i], in igc_ethtool_set_ringparam() 624 temp_ring[i].count = new_tx_count; in igc_ethtool_set_ringparam() 625 err = igc_setup_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam() 629 igc_free_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam() 638 memcpy(adapter->tx_ring[i], &temp_ring[i], in igc_ethtool_set_ringparam() 647 memcpy(&temp_ring[i], adapter->rx_ring[i], in igc_ethtool_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1138 struct ixgbe_ring *temp_ring; in ixgbe_set_ringparam() local 1178 temp_ring = vmalloc(array_size(i, sizeof(struct ixgbe_ring))); in ixgbe_set_ringparam() 1180 if (!temp_ring) { in ixgbe_set_ringparam() 1195 memcpy(&temp_ring[i], adapter->tx_ring[i], in ixgbe_set_ringparam() 1198 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam() 1199 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() 1203 ixgbe_free_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() 1210 memcpy(&temp_ring[i], adapter->xdp_ring[j], in ixgbe_set_ringparam() 1213 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam() 1214 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 881 struct igb_ring *temp_ring; in igb_set_ringparam() local 916 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam() 919 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam() 922 if (!temp_ring) { in igb_set_ringparam() 935 memcpy(&temp_ring[i], adapter->tx_ring[i], in igb_set_ringparam() 938 temp_ring[i].count = new_tx_count; in igb_set_ringparam() 939 err = igb_setup_tx_resources(&temp_ring[i]); in igb_set_ringparam() 943 igb_free_tx_resources(&temp_ring[i]); in igb_set_ringparam() 952 memcpy(adapter->tx_ring[i], &temp_ring[i], in igb_set_ringparam() 961 memcpy(&temp_ring[i], adapter->rx_ring[i], in igb_set_ringparam() [all …]
|