Lines Matching refs:msgs

68 static int	mpr_alloc_msix(struct mpr_softc *sc, int msgs);
69 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs);
290 int error, msgs; in mpr_pci_alloc_interrupts() local
294 msgs = 0; in mpr_pci_alloc_interrupts()
297 msgs = pci_msix_count(dev); in mpr_pci_alloc_interrupts()
298 mpr_dprint(sc, MPR_INIT, "Counted %d MSI-X messages\n", msgs); in mpr_pci_alloc_interrupts()
299 msgs = min(msgs, sc->max_msix); in mpr_pci_alloc_interrupts()
300 msgs = min(msgs, MPR_MSIX_MAX); in mpr_pci_alloc_interrupts()
301 msgs = min(msgs, 1); /* XXX */ in mpr_pci_alloc_interrupts()
302 if (msgs != 0) { in mpr_pci_alloc_interrupts()
304 "MSI-X messages\n", msgs); in mpr_pci_alloc_interrupts()
305 error = mpr_alloc_msix(sc, msgs); in mpr_pci_alloc_interrupts()
308 if (((error != 0) || (msgs == 0)) && (sc->disable_msi == 0)) { in mpr_pci_alloc_interrupts()
309 msgs = pci_msi_count(dev); in mpr_pci_alloc_interrupts()
310 mpr_dprint(sc, MPR_INIT, "Counted %d MSI messages\n", msgs); in mpr_pci_alloc_interrupts()
311 msgs = min(msgs, MPR_MSI_MAX); in mpr_pci_alloc_interrupts()
312 if (msgs != 0) { in mpr_pci_alloc_interrupts()
318 if ((error != 0) || (msgs == 0)) { in mpr_pci_alloc_interrupts()
325 msgs = 1; in mpr_pci_alloc_interrupts()
329 sc->msi_msgs = msgs; in mpr_pci_alloc_interrupts()
330 mpr_dprint(sc, MPR_INIT, "Allocated %d interrupts\n", msgs); in mpr_pci_alloc_interrupts()
454 mpr_alloc_msix(struct mpr_softc *sc, int msgs) in mpr_alloc_msix() argument
458 error = pci_alloc_msix(sc->mpr_dev, &msgs); in mpr_alloc_msix()
463 mpr_alloc_msi(struct mpr_softc *sc, int msgs) in mpr_alloc_msi() argument
467 error = pci_alloc_msi(sc->mpr_dev, &msgs); in mpr_alloc_msi()