Lines Matching refs:temp_ring
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()
650 temp_ring[i].count = new_rx_count; in igc_ethtool_set_ringparam()
651 err = igc_setup_rx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam()
655 igc_free_rx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam()
664 memcpy(adapter->rx_ring[i], &temp_ring[i], in igc_ethtool_set_ringparam()
672 vfree(temp_ring); in igc_ethtool_set_ringparam()