Home
last modified time | relevance | path

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

/freebsd/sys/dev/nvme/
H A Dnvme_pci.c216 if (ctrlr->msi_count > 0) in nvme_pci_attach()
229 if (ctrlr->msi_count > 0) in nvme_pci_detach()
306 ctrlr->msi_count = num_vectors_requested; in nvme_ctrlr_setup_interrupts()
307 if (pci_alloc_msix(dev, &ctrlr->msi_count) != 0) { in nvme_ctrlr_setup_interrupts()
309 ctrlr->msi_count = 0; in nvme_ctrlr_setup_interrupts()
312 if (ctrlr->msi_count == 1) in nvme_ctrlr_setup_interrupts()
314 if (ctrlr->msi_count != num_vectors_requested) { in nvme_ctrlr_setup_interrupts()
316 num_io_queues = ctrlr->msi_count - 1; in nvme_ctrlr_setup_interrupts()
328 ctrlr->msi_count = min(pci_msi_count(dev), 2); in nvme_ctrlr_setup_interrupts()
329 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.h239 int msi_count; member
H A Dnvme_qpair.c732 qpair->vector = ctrlr->msi_count > 1 ? qpair->id : 0; in nvme_qpair_construct()
864 if (ctrlr->msi_count > 1) { in nvme_qpair_construct()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_intr.c51 int msi_count = pci_msix_count(dev); in os_get_intr_config() local
56 if (msi_count > softs->num_cpus_online) in os_get_intr_config()
57 msi_count = softs->num_cpus_online; in os_get_intr_config()
58 if (msi_count > PQI_MAX_MSIX) in os_get_intr_config()
59 msi_count = PQI_MAX_MSIX; in os_get_intr_config()
60 if (msi_count == 0 || (error = pci_alloc_msix(dev, &msi_count)) != 0) { in os_get_intr_config()
62 "will try MSI\n", msi_count, error); in os_get_intr_config()
65 softs->intr_count = msi_count; in os_get_intr_config()
69 msi_count); in os_get_intr_config()
72 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()
224 for (u_int i = 0; i < msi->msi_count; i++) in msi_disable_intr()
279 if (msi->msi_count > 1) { in msi_assign_cpu()
282 msi->msi_count, msi->msi_maxcount); in msi_assign_cpu()
292 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
303 for (i = 1; i < msi->msi_count; i++) { in msi_assign_cpu()
329 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
333 for (i = 1; i < msi->msi_count; i++) in msi_assign_cpu()
508 fsrc->msi_count = count; in msi_alloc()
[all …]
/freebsd/sys/dev/ahci/
H A Dahci_pci.c497 int msi_count, msix_count; in ahci_pci_attach() local
501 msi_count = pci_msi_count(dev); in ahci_pci_attach()
655 if (msi_count == 0 && msix_count == 0) in ahci_pci_attach()
660 msi_count = min(1, msi_count); in ahci_pci_attach()
680 if ((error != 0) && (msi_count > 0)) { in ahci_pci_attach()
681 error = pci_alloc_msi(dev, &msi_count); in ahci_pci_attach()
683 ctlr->numirqs = msi_count; in ahci_pci_attach()
/freebsd/sys/amd64/vmm/io/
H A Dppt.c575 int msi_count, startrid, error, tmp; in ppt_setup_msi() local
596 msi_count = pci_msi_count(ppt->dev); in ppt_setup_msi()
597 if (msi_count == 0) { in ppt_setup_msi()
599 msi_count = 1; in ppt_setup_msi()
608 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.c313 int error, msi_count, msix_count; in amdiommu_setup_intr() local
315 msi_count = pci_msi_count(sc->iommu.dev); in amdiommu_setup_intr()
317 if (msi_count == 0 && msix_count == 0) { in amdiommu_setup_intr()
355 if (error != 0 && msi_count > 0) { in amdiommu_setup_intr()
356 error = pci_alloc_msi(sc->iommu.dev, &msi_count); in amdiommu_setup_intr()
358 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()