Lines Matching refs: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,
229 static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
235 if (type == PCI_CAP_ID_MSI && nvec > 1)
248 (type == PCI_CAP_ID_MSI) ? nvec : 1,
268 static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
292 if (type == PCI_CAP_ID_MSI && nvec > 1) {
294 map_irq.entry_nr = nvec;
316 if (type == PCI_CAP_ID_MSI && nvec > 1 && ret) {
343 (type == PCI_CAP_ID_MSI) ? nvec : 1,
412 struct device *dev, int nvec)
421 return xen_msi_ops.setup_msi_irqs(to_pci_dev(dev), nvec, type);