Home
last modified time | relevance | path

Searched refs:nvec (Results 1 – 23 of 23) sorted by relevance

/arch/powerpc/platforms/pseries/
Dmsi.c132 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
147 if (req_msi < nvec) { in check_req()
148 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
159 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
161 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
164 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
166 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
380 int nvec = nvec_in; in rtas_setup_msi_irqs() local
384 rc = check_req_msix(pdev, nvec); in rtas_setup_msi_irqs()
386 rc = check_req_msi(pdev, nvec); in rtas_setup_msi_irqs()
[all …]
/arch/powerpc/kernel/
Dmsi.c16 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs() argument
27 if (type == PCI_CAP_ID_MSI && nvec > 1) in arch_setup_msi_irqs()
30 return phb->controller_ops.setup_msi_irqs(dev, nvec, type); in arch_setup_msi_irqs()
/arch/x86/pci/
Dxen.c162 static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_setup_msi_irqs() argument
168 if (type == PCI_CAP_ID_MSI && nvec > 1) in xen_setup_msi_irqs()
171 v = kzalloc(sizeof(int) * max(1, nvec), GFP_KERNEL); in xen_setup_msi_irqs()
176 ret = xen_pci_frontend_enable_msix(dev, v, nvec); in xen_setup_msi_irqs()
184 (type == PCI_CAP_ID_MSI) ? nvec : 1, in xen_setup_msi_irqs()
227 static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_hvm_setup_msi_irqs() argument
233 if (type == PCI_CAP_ID_MSI && nvec > 1) in xen_hvm_setup_msi_irqs()
246 (type == PCI_CAP_ID_MSI) ? nvec : 1, in xen_hvm_setup_msi_irqs()
266 static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in xen_initdom_setup_msi_irqs() argument
290 if (type == PCI_CAP_ID_MSI && nvec > 1) { in xen_initdom_setup_msi_irqs()
[all …]
/arch/x86/include/asm/xen/
Dpci.h50 int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec);
69 int vectors[], int nvec) in xen_pci_frontend_enable_msix() argument
72 return xen_pci_frontend->enable_msix(dev, vectors, nvec); in xen_pci_frontend_enable_msix()
/arch/x86/include/asm/
Dmsi.h9 int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec,
Dpci.h115 int native_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
Dx86_init.h265 int (*setup_msi_irqs)(struct pci_dev *dev, int nvec, int type);
/arch/x86/kernel/
Dx86_init.c126 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs() argument
128 return x86_msi.setup_msi_irqs(dev, nvec, type); in arch_setup_msi_irqs()
/arch/powerpc/platforms/pasemi/
Dmsi.c83 static int pasemi_msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in pasemi_msi_setup_msi_irqs() argument
93 pdev, nvec, type); in pasemi_msi_setup_msi_irqs()
/arch/x86/kernel/apic/
Dmsi.c71 int native_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in native_setup_msi_irqs() argument
86 return msi_domain_alloc_irqs(domain, &dev->dev, nvec); in native_setup_msi_irqs()
100 int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, in pci_msi_prepare() argument
/arch/powerpc/platforms/powernv/
Dpci.h232 extern int pnv_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type);
262 extern int pnv_cxl_cx4_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type);
Dpci-cxl.c314 int pnv_cxl_cx4_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in pnv_cxl_cx4_setup_msi_irqs() argument
331 rc = cxl_cx4_setup_msi_irqs(pdev, nvec, type); in pnv_cxl_cx4_setup_msi_irqs()
Dpci.c162 int pnv_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in pnv_setup_msi_irqs() argument
/arch/powerpc/platforms/4xx/
Dmsi.c79 static int ppc4xx_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in ppc4xx_setup_msi_irqs() argument
88 __func__, nvec, type); in ppc4xx_setup_msi_irqs()
Dhsta_msi.c41 static int hsta_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in hsta_setup_msi_irqs() argument
/arch/mips/pci/
Dmsi-octeon.c185 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs() argument
200 if (type == PCI_CAP_ID_MSI && nvec > 1) in arch_setup_msi_irqs()
/arch/powerpc/sysdev/
Dmpic_u3msi.c125 static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in u3msi_setup_msi_irqs() argument
Dfsl_msi.c183 static int fsl_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in fsl_setup_msi_irqs() argument
/arch/s390/pci/
Dpci.c391 int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) in arch_setup_msi_irqs() argument
401 if (type == PCI_CAP_ID_MSI && nvec > 1) in arch_setup_msi_irqs()
403 msi_vecs = min_t(unsigned int, nvec, zdev->max_msi); in arch_setup_msi_irqs()
446 return (msi_vecs == nvec) ? 0 : msi_vecs; in arch_setup_msi_irqs()
/arch/powerpc/include/asm/
Dpci-bridge.h42 int nvec, int type);
/arch/arm/boot/dts/
Dtegra20-paz00.dts296 nvec@7000c500 {
297 compatible = "nvidia,nvec";
/arch/powerpc/platforms/cell/
Daxon_msi.c257 static int axon_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in axon_msi_setup_msi_irqs() argument
/arch/mips/kernel/
Dtraps.c2378 int nvec = cpu_has_veic ? 64 : 8; in trap_init() local
2379 for (i = 0; i < nvec; i++) in trap_init()