Lines Matching full:nvec
52 int ret, nvec = pci_msix_vec_count(pcidev); in cci_pci_alloc_irq() local
54 if (nvec <= 0) { in cci_pci_alloc_irq()
59 ret = pci_alloc_irq_vectors(pcidev, nvec, nvec, PCI_IRQ_MSIX); in cci_pci_alloc_irq()
63 return nvec; in cci_pci_alloc_irq()
145 static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec) in cci_pci_create_irq_table() argument
150 table = kcalloc(nvec, sizeof(int), GFP_KERNEL); in cci_pci_create_irq_table()
154 for (i = 0; i < nvec; i++) in cci_pci_create_irq_table()
310 int nvec, ret = 0; in cci_enumerate_feature_devs() local
319 nvec = cci_pci_alloc_irq(pcidev); in cci_enumerate_feature_devs()
320 if (nvec < 0) { in cci_enumerate_feature_devs()
321 dev_err(&pcidev->dev, "Fail to alloc irq %d.\n", nvec); in cci_enumerate_feature_devs()
322 ret = nvec; in cci_enumerate_feature_devs()
324 } else if (nvec) { in cci_enumerate_feature_devs()
325 irq_table = cci_pci_create_irq_table(pcidev, nvec); in cci_enumerate_feature_devs()
331 ret = dfl_fpga_enum_info_add_irq(info, nvec, irq_table); in cci_enumerate_feature_devs()