Lines Matching refs:vectors

730  * ixgbe_acquire_msix_vectors - acquire MSI-X vectors
734 * return a negative error code if unable to acquire MSI-X vectors for any
740 int i, vectors, vector_threshold;
745 vectors = max(adapter->num_rx_queues, adapter->num_tx_queues);
746 vectors = max(vectors, adapter->num_xdp_queues);
748 /* It is easy to be greedy for MSI-X vectors. However, it really
749 * doesn't do much good if we have a lot more vectors than CPUs. We'll
751 * of vectors as there are CPUs.
753 vectors = min_t(int, vectors, num_online_cpus());
755 /* Some vectors are necessary for non-queue interrupts */
756 vectors += NON_Q_VECTORS;
764 vectors = min_t(int, vectors, hw->mac.max_msix_vectors);
766 /* We want a minimum of two MSI-X vectors for (1) a TxQ[0] + RxQ[0]
771 adapter->msix_entries = kcalloc(vectors,
777 for (i = 0; i < vectors; i++)
780 vectors = pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
781 vector_threshold, vectors);
783 if (vectors < 0) {
784 /* A negative count of allocated vectors indicates an error in
785 * acquiring within the specified range of MSI-X vectors
788 vectors);
794 return vectors;
797 /* we successfully allocated some number of vectors within our
802 /* Adjust for only the vectors we'll use, which is minimum
803 * of max_q_vectors, or the number of vectors we were allocated.
805 vectors -= NON_Q_VECTORS;
806 adapter->num_q_vectors = min_t(int, vectors, adapter->max_q_vectors);
1048 * ixgbe_alloc_q_vectors - Allocate memory for interrupt vectors
1133 * ixgbe_free_q_vectors - Free memory allocated for interrupt vectors
1247 e_dev_err("Unable to allocate memory for queue vectors\n");