Lines Matching refs:vectors
739 int i, vectors, vector_threshold; in ixgbe_acquire_msix_vectors() local
744 vectors = max(adapter->num_rx_queues, adapter->num_tx_queues); in ixgbe_acquire_msix_vectors()
745 vectors = max(vectors, adapter->num_xdp_queues); in ixgbe_acquire_msix_vectors()
752 vectors = min_t(int, vectors, num_online_cpus()); in ixgbe_acquire_msix_vectors()
755 vectors += NON_Q_VECTORS; in ixgbe_acquire_msix_vectors()
763 vectors = min_t(int, vectors, hw->mac.max_msix_vectors); in ixgbe_acquire_msix_vectors()
770 adapter->msix_entries = kcalloc(vectors, in ixgbe_acquire_msix_vectors()
776 for (i = 0; i < vectors; i++) in ixgbe_acquire_msix_vectors()
779 vectors = pci_enable_msix_range(adapter->pdev, adapter->msix_entries, in ixgbe_acquire_msix_vectors()
780 vector_threshold, vectors); in ixgbe_acquire_msix_vectors()
782 if (vectors < 0) { in ixgbe_acquire_msix_vectors()
787 vectors); in ixgbe_acquire_msix_vectors()
793 return vectors; in ixgbe_acquire_msix_vectors()
804 vectors -= NON_Q_VECTORS; in ixgbe_acquire_msix_vectors()
805 adapter->num_q_vectors = min_t(int, vectors, adapter->max_q_vectors); in ixgbe_acquire_msix_vectors()