Lines Matching full:nvec
161 int (*setup_msi_irqs)(struct pci_dev *dev, int nvec, int type);
167 static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_setup_msi_irqs() argument
173 if (type == PCI_CAP_ID_MSI && nvec > 1) in xen_setup_msi_irqs()
176 v = kcalloc(max(1, nvec), sizeof(int), GFP_KERNEL); in xen_setup_msi_irqs()
181 ret = xen_pci_frontend_enable_msix(dev, v, nvec); in xen_setup_msi_irqs()
189 (type == PCI_CAP_ID_MSI) ? nvec : 1, in xen_setup_msi_irqs()
229 static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_hvm_setup_msi_irqs() argument
235 if (type == PCI_CAP_ID_MSI && nvec > 1) in xen_hvm_setup_msi_irqs()
248 (type == PCI_CAP_ID_MSI) ? nvec : 1, in xen_hvm_setup_msi_irqs()
268 static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_initdom_setup_msi_irqs() argument
292 if (type == PCI_CAP_ID_MSI && nvec > 1) { in xen_initdom_setup_msi_irqs()
294 map_irq.entry_nr = nvec; in xen_initdom_setup_msi_irqs()
316 if (type == PCI_CAP_ID_MSI && nvec > 1 && ret) { in xen_initdom_setup_msi_irqs()
343 (type == PCI_CAP_ID_MSI) ? nvec : 1, in xen_initdom_setup_msi_irqs()
412 struct device *dev, int nvec) in xen_msi_domain_alloc_irqs() argument
421 return xen_msi_ops.setup_msi_irqs(to_pci_dev(dev), nvec, type); in xen_msi_domain_alloc_irqs()