Lines Matching defs: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)
173 if (type == PCI_CAP_ID_MSI && nvec > 1)
176 v = kcalloc(max(1, nvec), sizeof(int), GFP_KERNEL);
181 ret = xen_pci_frontend_enable_msix(dev, v, nvec);
189 (type == PCI_CAP_ID_MSI) ? nvec : 1,
232 static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
238 if (type == PCI_CAP_ID_MSI && nvec > 1)
251 (type == PCI_CAP_ID_MSI) ? nvec : 1,
271 static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
295 if (type == PCI_CAP_ID_MSI && nvec > 1) {
297 map_irq.entry_nr = nvec;
319 if (type == PCI_CAP_ID_MSI && nvec > 1 && ret) {
346 (type == PCI_CAP_ID_MSI) ? nvec : 1,
413 struct device *dev, int nvec)
425 return xen_msi_ops.setup_msi_irqs(to_pci_dev(dev), nvec, type);