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.c143 if (ctrlr->msi_count > 0) in ufshci_pci_attach()
156 if (ctrlr->msi_count > 0) in ufshci_pci_detach()
236 ctrlr->msi_count = num_vectors_requested; in ufshci_pci_setup_interrupts()
237 if (pci_alloc_msix(dev, &ctrlr->msi_count) != 0) { in ufshci_pci_setup_interrupts()
239 ctrlr->msi_count = 0; in ufshci_pci_setup_interrupts()
242 if (ctrlr->msi_count == 1) in ufshci_pci_setup_interrupts()
244 if (ctrlr->msi_count != num_vectors_requested) { in ufshci_pci_setup_interrupts()
246 num_io_queues = ctrlr->msi_count - 1; in ufshci_pci_setup_interrupts()
258 ctrlr->msi_count = min(pci_msi_count(dev), 2); in ufshci_pci_setup_interrupts()
259 if (ctrlr->msi_count > 0) { in ufshci_pci_setup_interrupts()
[all …]
H A Dufshci_private.h350 int msi_count; member
/freebsd/sys/dev/nvme/
H A Dnvme_pci.c283 if (ctrlr->msi_count > 0) in nvme_pci_attach()
296 if (ctrlr->msi_count > 0) in nvme_pci_detach()
345 ctrlr->msi_count = n; in nvme_ctrlr_setup_interrupts()
382 ctrlr->msi_count = num_vectors_requested; in nvme_ctrlr_setup_interrupts()
383 if (pci_alloc_msix(dev, &ctrlr->msi_count) != 0) { in nvme_ctrlr_setup_interrupts()
385 ctrlr->msi_count = 0; in nvme_ctrlr_setup_interrupts()
389 if (ctrlr->msi_count == 1) in nvme_ctrlr_setup_interrupts()
391 if (ctrlr->msi_count != num_vectors_requested) { in nvme_ctrlr_setup_interrupts()
393 num_io_queues = ctrlr->msi_count - 1; in nvme_ctrlr_setup_interrupts()
405 ctrlr->msi_count = min(pci_msi_count(dev), 2); in nvme_ctrlr_setup_interrupts()
[all …]
H A Dnvme_ahci.c91 ctrlr->msi_count = 0; in nvme_ahci_attach()
H A Dnvme_private.h259 int msi_count; member
H A Dnvme_qpair.c529 qpair->vector = ctrlr->msi_count > 1 ? qpair->id : 0; in nvme_qpair_construct()
672 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.c126 u_int msi_count:8; /* Messages in this group. (g) */ member
214 for (u_int i = 0; i < msi->msi_count; i++) in msi_enable_intr()
236 for (u_int i = 0; i < msi->msi_count; i++) in msi_disable_intr()
291 if (msi->msi_count > 1) { in msi_assign_cpu()
294 msi->msi_count, msi->msi_maxcount); in msi_assign_cpu()
304 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
315 for (i = 1; i < msi->msi_count; i++) { in msi_assign_cpu()
341 for (i = 0; i < msi->msi_count; i++) in msi_assign_cpu()
345 for (i = 1; i < msi->msi_count; i++) in msi_assign_cpu()
520 fsrc->msi_count = count; in msi_alloc()
[all …]
/freebsd/sys/dev/ahci/
H A Dahci_pci.c478 int msi_count, msix_count; in ahci_pci_attach() local
481 msi_count = pci_msi_count(dev); in ahci_pci_attach()
627 if (msi_count == 0 && msix_count == 0) in ahci_pci_attach()
632 msi_count = min(1, msi_count); in ahci_pci_attach()
652 if ((error != 0) && (msi_count > 0)) { in ahci_pci_attach()
653 error = pci_alloc_msi(dev, &msi_count); in ahci_pci_attach()
655 ctlr->numirqs = msi_count; in ahci_pci_attach()
/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/amd64/vmm/io/
H A Dppt.c730 int msi_count, startrid, error, tmp; in ppt_setup_msi() local
754 msi_count = pci_msi_count(ppt->dev); in ppt_setup_msi()
755 if (msi_count == 0) { in ppt_setup_msi()
757 msi_count = 1; in ppt_setup_msi()
766 if (numvec > msi_count) { in ppt_setup_msi()
/freebsd/sys/x86/iommu/
H A Damd_drv.c343 int error, msi_count, msix_count; in amdiommu_setup_intr() local
345 msi_count = pci_msi_count(sc->iommu.dev); in amdiommu_setup_intr()
347 if (msi_count == 0 && msix_count == 0) { in amdiommu_setup_intr()
385 if (error != 0 && msi_count > 0) { in amdiommu_setup_intr()
386 error = pci_alloc_msi(sc->iommu.dev, &msi_count); in amdiommu_setup_intr()
388 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.c8926 int msi_count = 0; in bxe_interrupt_alloc() local
8939 msi_count = pci_msi_count(sc->dev); in bxe_interrupt_alloc()
8943 msi_count, msix_count); in bxe_interrupt_alloc()
9021 (msi_count < 1)) { in bxe_interrupt_alloc()