Home
last modified time | relevance | path

Searched refs:min_vecs (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/pci/msi/
Dapi.c234 int pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors() argument
237 return pci_alloc_irq_vectors_affinity(dev, min_vecs, max_vecs, in pci_alloc_irq_vectors()
254 int pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors_affinity() argument
270 nvecs = __pci_enable_msix_range(dev, NULL, min_vecs, max_vecs, in pci_alloc_irq_vectors_affinity()
277 nvecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, affd); in pci_alloc_irq_vectors_affinity()
284 if (min_vecs == 1 && dev->irq) { in pci_alloc_irq_vectors_affinity()
/linux-6.6.21/Documentation/translations/zh_CN/PCI/
Dmsi-howto.rst84 int pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs,
88 如果设备对最小数量的向量有要求,驱动程序可以传递一个min_vecs参数,设置为这个限制,
118 数量作为“min_vecs“和“max_vecs“参数传递给pci_alloc_irq_vectors()函数。::
125 'min_vecs'和'max_vecs'来实现::
/linux-6.6.21/drivers/net/ethernet/fungible/funcore/
Dfun_dev.c596 static int fun_alloc_irqs(struct pci_dev *pdev, unsigned int min_vecs) in fun_alloc_irqs() argument
602 if (min_vecs > num_msix) in fun_alloc_irqs()
605 vecs = pci_alloc_irq_vectors(pdev, min_vecs, num_msix, PCI_IRQ_MSIX); in fun_alloc_irqs()
613 min_vecs); in fun_alloc_irqs()
/linux-6.6.21/Documentation/PCI/
Dmsi-howto.rst96 int pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs,
102 min_vecs argument set to this limit, and the PCI core will return -ENOSPC
145 number to pci_alloc_irq_vectors() function as both 'min_vecs' and
154 'min_vecs' and 'max_vecs'::
/linux-6.6.21/include/linux/
Dpci.h1647 int pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs,
1649 int pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs,
1684 pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors_affinity() argument
1688 if ((flags & PCI_IRQ_LEGACY) && min_vecs == 1 && dev->irq) in pci_alloc_irq_vectors_affinity()
1693 pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors() argument
1696 return pci_alloc_irq_vectors_affinity(dev, min_vecs, max_vecs, in pci_alloc_irq_vectors()
2050 pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors_affinity() argument
2057 pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs, in pci_alloc_irq_vectors() argument
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c580 int min_vecs; in rvu_check_min_msix_vec() local
594 min_vecs = RVU_AF_INT_VEC_CNT + RVU_PF_INT_VEC_CNT; in rvu_check_min_msix_vec()
596 min_vecs = RVU_PF_INT_VEC_CNT; in rvu_check_min_msix_vec()
598 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec()
602 pf, nvecs, min_vecs); in rvu_check_min_msix_vec()
/linux-6.6.21/drivers/scsi/qla2xxx/
Dqla_isr.c4528 int min_vecs = QLA_BASE_VECTORS; in qla24xx_enable_msix() local
4536 min_vecs++; in qla24xx_enable_msix()
4541 ret = pci_alloc_irq_vectors(ha->pdev, min_vecs, in qla24xx_enable_msix()
4542 min((u16)ha->msix_count, (u16)(num_online_cpus() + min_vecs)), in qla24xx_enable_msix()
4545 ret = pci_alloc_irq_vectors_affinity(ha->pdev, min_vecs, in qla24xx_enable_msix()
4546 min((u16)ha->msix_count, (u16)(num_online_cpus() + min_vecs)), in qla24xx_enable_msix()