Home
last modified time | relevance | path

Searched refs:msi_count (Results 1 – 19 of 19) sorted by relevance

/freebsd/sys/dev/ufshci/
H A Dufshci_pci.c139 if (ctrlr->msi_count > 0) in ufshci_pci_attach()
152 if (ctrlr->msi_count > 0) in ufshci_pci_detach()
232 ctrlr->msi_count = num_vectors_requested; in ufshci_pci_setup_interrupts()
233 if (pci_alloc_msix(dev, &ctrlr->msi_count) != 0) { in ufshci_pci_setup_interrupts()
235 ctrlr->msi_count = 0; in ufshci_pci_setup_interrupts()
238 if (ctrlr->msi_count == 1) in ufshci_pci_setup_interrupts()
240 if (ctrlr->msi_count != num_vectors_requested) { in ufshci_pci_setup_interrupts()
242 num_io_queues = ctrlr->msi_count - 1; in ufshci_pci_setup_interrupts()
254 ctrlr->msi_count = min(pci_msi_count(dev), 2); in ufshci_pci_setup_interrupts()
255 if (ctrlr->msi_count > 0) { in ufshci_pci_setup_interrupts()
[all …]
H A Dufshci_private.h343 int msi_count; member
/freebsd/sys/dev/nvme/
H A Dnvme_pci.c241 if (ctrlr->msi_count > 0) in nvme_pci_attach()
254 if (ctrlr->msi_count > 0) in nvme_pci_detach()
331 ctrlr->msi_count = num_vectors_requested; in nvme_ctrlr_setup_interrupts()
332 if (pci_alloc_msix(dev, &ctrlr->msi_count) != 0) { in nvme_ctrlr_setup_interrupts()
334 ctrlr->msi_count = 0; in nvme_ctrlr_setup_interrupts()
337 if (ctrlr->msi_count == 1) in nvme_ctrlr_setup_interrupts()
339 if (ctrlr->msi_count != num_vectors_requested) { in nvme_ctrlr_setup_interrupts()
341 num_io_queues = ctrlr->msi_count - 1; in nvme_ctrlr_setup_interrupts()
353 ctrlr->msi_count = min(pci_msi_count(dev), 2); in nvme_ctrlr_setup_interrupts()
354 if (ctrlr->msi_count > 0) { in nvme_ctrlr_setup_interrupts()
[all …]
H A Dnvme_ahci.c94 ctrlr->msi_count = 0; in nvme_ahci_attach()
H A Dnvme_private.h243 int msi_count; member
H A Dnvme_qpair.c528 qpair->vector = ctrlr->msi_count > 1 ? qpair->id : 0; in nvme_qpair_construct()
660 if (ctrlr->msi_count > 1) { in nvme_qpair_construct()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_intr.c50 int msi_count = pci_msix_count(dev); in os_get_intr_config() local
55 if (msi_count > softs->num_cpus_online) in os_get_intr_config()
56 msi_count = softs->num_cpus_online; in os_get_intr_config()
57 if (msi_count > PQI_MAX_MSIX) in os_get_intr_config()
58 msi_count = PQI_MAX_MSIX; in os_get_intr_config()
59 if (msi_count == 0 || (error = pci_alloc_msix(dev, &msi_count)) != 0) { in os_get_intr_config()
61 "will try MSI\n", msi_count, error); in os_get_intr_config()
64 softs->intr_count = msi_count; in os_get_intr_config()
68 msi_count); in os_get_intr_config()
71 msi_count = 1; in os_get_intr_config()
[all …]
/freebsd/sys/x86/x86/
H A Dmsi.c122 u_int msi_count:8; /* Messages in this group. (g) */ member
210 for (u_int i = 0; i < msi->msi_count; i++) in msi_enable_intr()
232 for (u_int i = 0; i < msi->msi_count; i++) in msi_disable_intr()
287 if (msi->msi_count > 1) { in msi_assign_cpu()
290 msi->msi_count, msi->msi_maxcount); in msi_assign_cpu()
300 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
311 for (i = 1; i < msi->msi_count; i++) { in msi_assign_cpu()
337 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
341 for (i = 1; i < msi->msi_count; i++) in msi_assign_cpu()
516 fsrc->msi_count = count; in msi_alloc()
[all …]
/freebsd/sys/dev/ahci/
H A Dahci_pci.c476 int msi_count, msix_count; in ahci_pci_attach() local
479 msi_count = pci_msi_count(dev); in ahci_pci_attach()
625 if (msi_count == 0 && msix_count == 0) in ahci_pci_attach()
630 msi_count = min(1, msi_count); in ahci_pci_attach()
647 * Try to allocate MSI if msi_count is greater than 0 in ahci_pci_attach()
650 if ((error != 0) && (msi_count > 0)) { in ahci_pci_attach()
651 error = pci_alloc_msi(dev, &msi_count); in ahci_pci_attach()
653 ctlr->numirqs = msi_count; in ahci_pci_attach()
/freebsd/sys/amd64/vmm/io/
H A Dppt.c616 int msi_count, startrid, error, tmp; in ppt_setup_msi() local
640 msi_count = pci_msi_count(ppt->dev); in ppt_setup_msi()
641 if (msi_count == 0) { in ppt_setup_msi()
643 msi_count = 1; in ppt_setup_msi()
652 if (numvec > msi_count) { in ppt_setup_msi()
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci.c79 int *msi_count);
326 bhndb_pci_alloc_msi(struct bhndb_pci_softc *sc, int *msi_count) in bhndb_pci_alloc_msi() argument
348 *msi_count = count; in bhndb_pci_alloc_msi()
408 if (bhndb_pci_alloc_msi(sc, &sc->msi_count) == 0) { in bhndb_pci_attach()
415 sc->msi_count = 0; in bhndb_pci_attach()
473 if (sc->msi_count > 0) in bhndb_pci_attach()
515 if (sc->msi_count > 0) in bhndb_pci_detach()
H A Dbhndb_pcivar.h115 int msi_count; /**< MSI count, or 0 */ member
/freebsd/sys/dev/aacraid/
H A Daacraid.c1847 int cap, msi_count, error = 0; in aac_define_int_mode() local
1862 msi_count = 1; in aac_define_int_mode()
1863 if ((error = pci_alloc_msi(dev, &msi_count)) != 0) { in aac_define_int_mode()
1882 msi_count = pci_msix_count(dev); in aac_define_int_mode()
1883 if (msi_count > AAC_MAX_MSIX) in aac_define_int_mode()
1884 msi_count = AAC_MAX_MSIX; in aac_define_int_mode()
1885 if (msi_count > sc->aac_max_msix) in aac_define_int_mode()
1886 msi_count = sc->aac_max_msix; in aac_define_int_mode()
1887 if (msi_count == 0 || (error = pci_alloc_msix(dev, &msi_count)) != 0) { in aac_define_int_mode()
1889 "will try MSI\n", msi_count, error); in aac_define_int_mode()
[all …]
/freebsd/sys/x86/iommu/
H A Damd_drv.c314 int error, msi_count, msix_count; in amdiommu_setup_intr() local
316 msi_count = pci_msi_count(sc->iommu.dev); in amdiommu_setup_intr()
318 if (msi_count == 0 && msix_count == 0) { in amdiommu_setup_intr()
356 if (error != 0 && msi_count > 0) { in amdiommu_setup_intr()
357 error = pci_alloc_msi(sc->iommu.dev, &msi_count); in amdiommu_setup_intr()
359 sc->numirqs = msi_count; in amdiommu_setup_intr()
/freebsd/sys/dev/cxgb/
H A Dcxgb_main.c450 sc->msi_count = 0; in cxgb_controller_attach()
537 msi_needed = sc->msi_count = sc->params.nports * port_qsets + 1; in cxgb_controller_attach()
540 (error = pci_alloc_msix(dev, &sc->msi_count)) != 0 || in cxgb_controller_attach()
541 sc->msi_count != msi_needed) { in cxgb_controller_attach()
544 "will try MSI\n", sc->msi_count, in cxgb_controller_attach()
546 sc->msi_count = 0; in cxgb_controller_attach()
557 sc->msi_count); in cxgb_controller_attach()
561 if ((msi_allowed >= 1) && (sc->msi_count == 0)) { in cxgb_controller_attach()
562 sc->msi_count = 1; in cxgb_controller_attach()
563 if ((error = pci_alloc_msi(dev, &sc->msi_count)) != 0) { in cxgb_controller_attach()
[all …]
H A Dcxgb_adapter.h385 int msi_count; member
/freebsd/sys/dev/pci/
H A Dpci_if.m226 METHOD int msi_count {
/freebsd/sys/dev/rtsx/
H A Drtsx.c3600 int msi_count = 1; local
3667 if (pci_alloc_msi(dev, &msi_count) == 0)
/freebsd/sys/dev/bxe/
H A Dbxe.c8920 int msi_count = 0; in bxe_interrupt_alloc() local
8933 msi_count = pci_msi_count(sc->dev); in bxe_interrupt_alloc()
8937 msi_count, msix_count); in bxe_interrupt_alloc()
9015 (msi_count < 1)) { in bxe_interrupt_alloc()