Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/nvme/
H A Dnvme_pci.c217 if (ctrlr->msi_count > 0) in nvme_pci_attach()
230 if (ctrlr->msi_count > 0) in nvme_pci_detach()
307 ctrlr->msi_count = num_vectors_requested; in nvme_ctrlr_setup_interrupts()
310 ctrlr->msi_count = 0; in nvme_ctrlr_setup_interrupts()
313 if (ctrlr->msi_count == 1) in nvme_ctrlr_setup_interrupts()
315 if (ctrlr->msi_count != num_vectors_requested) { in nvme_ctrlr_setup_interrupts()
317 num_io_queues = ctrlr->msi_count - 1; in nvme_ctrlr_setup_interrupts()
329 ctrlr->msi_count = min(pci_msi_count(dev), 2); in nvme_ctrlr_setup_interrupts()
330 if (ctrlr->msi_count > 0) { in nvme_ctrlr_setup_interrupts()
333 ctrlr->msi_count = 0; in nvme_ctrlr_setup_interrupts()
[all …]
H A Dnvme_ahci.c95 ctrlr->msi_count = 0; in nvme_ahci_attach()
H A Dnvme_private.h239 int msi_count; member
H A Dnvme_qpair.c722 qpair->vector = ctrlr->msi_count > 1 ? qpair->id : 0; in nvme_qpair_construct()
854 if (ctrlr->msi_count > 1) { in nvme_qpair_construct()
/freebsd-14.2/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()
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()
73 if ((error = pci_alloc_msi(dev, &msi_count)) != 0) { in os_get_intr_config()
[all …]
/freebsd-14.2/sys/x86/x86/
H A Dmsi.c210 for (u_int i = 0; i < msi->msi_count; i++) in msi_enable_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()
578 first->msi_count = 0; in msi_release()
740 msi->msi_count = 1; in msix_alloc()
[all …]
/freebsd-14.2/sys/dev/ahci/
H A Dahci_pci.c495 int msi_count, msix_count; in ahci_pci_attach() local
499 msi_count = pci_msi_count(dev); in ahci_pci_attach()
653 if (msi_count == 0 && msix_count == 0) in ahci_pci_attach()
658 msi_count = min(1, msi_count); in ahci_pci_attach()
678 if ((error != 0) && (msi_count > 0)) { in ahci_pci_attach()
679 error = pci_alloc_msi(dev, &msi_count); in ahci_pci_attach()
681 ctlr->numirqs = msi_count; in ahci_pci_attach()
/freebsd-14.2/sys/amd64/vmm/io/
H A Dppt.c549 int msi_count, startrid, error, tmp; in ppt_setup_msi() local
570 msi_count = pci_msi_count(ppt->dev); in ppt_setup_msi()
571 if (msi_count == 0) { in ppt_setup_msi()
573 msi_count = 1; in ppt_setup_msi()
582 if (numvec > msi_count) in ppt_setup_msi()
/freebsd-14.2/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()
474 if (sc->msi_count > 0) in bhndb_pci_attach()
516 if (sc->msi_count > 0) in bhndb_pci_detach()
H A Dbhndb_pcivar.h115 int msi_count; /**< MSI count, or 0 */ member
/freebsd-14.2/sys/dev/aacraid/
H A Daacraid.c1846 int cap, msi_count, error = 0; in aac_define_int_mode() local
1861 msi_count = 1; in aac_define_int_mode()
1882 if (msi_count > AAC_MAX_MSIX) in aac_define_int_mode()
1883 msi_count = AAC_MAX_MSIX; in aac_define_int_mode()
1885 msi_count = sc->aac_max_msix; in aac_define_int_mode()
1886 if (msi_count == 0 || (error = pci_alloc_msix(dev, &msi_count)) != 0) { in aac_define_int_mode()
1893 msi_count); in aac_define_int_mode()
1897 msi_count = 1; in aac_define_int_mode()
1924 sc->aac_max_msix = msi_count; in aac_define_int_mode()
1975 int i, msi_count, rid; in aac_setup_intr() local
[all …]
/freebsd-14.2/sys/dev/cxgb/
H A Dcxgb_main.c452 sc->msi_count = 0; in cxgb_controller_attach()
543 sc->msi_count != msi_needed) { in cxgb_controller_attach()
546 "will try MSI\n", sc->msi_count, in cxgb_controller_attach()
548 sc->msi_count = 0; in cxgb_controller_attach()
559 sc->msi_count); in cxgb_controller_attach()
563 if ((msi_allowed >= 1) && (sc->msi_count == 0)) { in cxgb_controller_attach()
564 sc->msi_count = 1; in cxgb_controller_attach()
565 if ((error = pci_alloc_msi(dev, &sc->msi_count)) != 0) { in cxgb_controller_attach()
568 sc->msi_count = 0; in cxgb_controller_attach()
577 if (sc->msi_count == 0) { in cxgb_controller_attach()
[all …]
H A Dcxgb_adapter.h385 int msi_count; member
/freebsd-14.2/sys/dev/pci/
H A Dpci_if.m226 METHOD int msi_count {
/freebsd-14.2/sys/dev/rtsx/
H A Drtsx.c3597 int msi_count = 1; local
3663 if (pci_alloc_msi(dev, &msi_count) == 0)
/freebsd-14.2/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()