/freebsd-current/sys/x86/x86/ |
H A D | msi.c | 92 #define INTEL_ADDR(msi) \ 93 (MSI_INTEL_ADDR_BASE | (msi)->msi_cpu << 12 | \ 95 #define INTEL_DATA(msi) \ 96 (MSI_INTEL_DATA_TRGREDG | MSI_INTEL_DATA_DELFIXED | (msi)->msi_vector) 98 static MALLOC_DEFINE(M_MSI, "msi", "PCI MSI"); 206 struct msi_intsrc *msi = (struct msi_intsrc *)isrc; local 208 msi = msi->msi_first; 209 if (msi->msi_enabled == 0) { 210 for (u_int i = 0; i < msi 219 struct msi_intsrc *msi = (struct msi_intsrc *)isrc; local 232 struct msi_intsrc *msi = (struct msi_intsrc *)isrc; local 255 struct msi_intsrc *sib, *msi = (struct msi_intsrc *)isrc; local 380 struct msi_intsrc *msi; local 405 struct msi_intsrc *msi, *fsrc; local 519 struct msi_intsrc *msi, *first; local 587 struct msi_intsrc *msi; local 660 struct msi_intsrc *msi; local 751 struct msi_intsrc *msi; local [all...] |
/freebsd-current/sys/arm/arm/ |
H A D | gic_acpi.c | 271 ACPI_MADT_GENERIC_MSI_FRAME *msi; local 278 msi = (ACPI_MADT_GENERIC_MSI_FRAME *)entry; 280 device_printf(dev, "frame: %x %lx %x %u %u\n", msi->MsiFrameId, 281 msi->BaseAddress, msi->Flags, msi->SpiCount, msi->SpiBase); 290 msi->BaseAddress, msi->BaseAddress + PAGE_SIZE - 1,
|
/freebsd-current/sys/amd64/vmm/io/ |
H A D | ppt.c | 94 } msi; member in struct:pptdev 244 if (ppt->msi.num_msgs == 0) 247 for (i = 0; i < ppt->msi.num_msgs; i++) { 248 rid = ppt->msi.startrid + i; 249 res = ppt->msi.res[i]; 250 cookie = ppt->msi.cookie[i]; 258 ppt->msi.res[i] = NULL; 259 ppt->msi.cookie[i] = NULL; 262 if (ppt->msi.startrid == 1) 265 ppt->msi [all...] |
/freebsd-current/sys/dev/mvs/ |
H A D | mvs_pci.c | 292 int msi = 0; local 296 device_get_unit(dev), "msi", &msi); local 297 if (msi < 0) 298 msi = 0; 299 else if (msi > 0) 300 msi = min(1, pci_msi_count(dev)); 302 if (msi && pci_alloc_msi(dev, &msi) != 0) 303 msi [all...] |
/freebsd-current/sys/dev/ahci/ |
H A D | ahci_pci.c | 646 ctlr->msi = 0; 649 ctlr->msi = 1; 651 ctlr->msi = 2; 653 device_get_unit(dev), "msi", &ctlr->msi); 656 ctlr->msi = 0; 657 if (ctlr->msi < 0) 658 ctlr->msi = 0; 659 else if (ctlr->msi == 1) { 662 } else if (ctlr->msi > [all...] |
/freebsd-current/sys/dev/dpaa2/ |
H A D | dpaa2_mc.h | 107 } msi[DPAA2_MC_MSI_COUNT]; member in struct:dpaa2_mc_softc 151 * msi: Information about MSI messages supported by the DPAA2 object. 163 struct dpaa2_msinfo msi; member in struct:dpaa2_devinfo
|
H A D | dpaa2_mc.c | 783 sc->msi[i].child = NULL; 784 sc->msi[i].irq = msi_irqs[i]; 797 if (sc->msi[i].child != NULL) 808 sc->msi[i + j].child = child; 809 irqs[j] = sc->msi[i + j].irq; 834 if (sc->msi[i].child != child) 837 if (sc->msi[i].irq == irqs[j]) { 838 sc->msi[i].child = NULL; 866 if (sc->msi[i].child == child && sc->msi[ [all...] |
H A D | dpaa2_rc.c | 323 if (dinfo->msi.msi_alloc != 0) { 325 dinfo->msi.msi_alloc); 366 KASSERT(dinfo->msi.msi_alloc > 0, 393 dinfo->msi.msi_handlers++; 426 dinfo->msi.msi_handlers--; 490 if (dinfo->msi.msi_alloc != 0) 494 actual = min(*count, dinfo->msi.msi_msgnum); 560 dinfo->msi.msi_alloc = actual; 561 dinfo->msi.msi_handlers = 0; 584 if (dinfo->msi [all...] |
/freebsd-current/sys/dev/pci/ |
H A D | pci.c | 932 cfg->msi.msi_location = ptr; 933 cfg->msi.msi_ctrl = REG(ptr + PCIR_MSI_CTRL, 2); 934 cfg->msi.msi_msgnum = 1 << ((cfg->msi.msi_ctrl & 1814 if (cfg->msi.msi_alloc != 0 || cfg->msix.msix_alloc != 0) 2340 struct pcicfg_msi *msi = &dinfo->cfg.msi; local 2343 pci_write_config(child, msi->msi_location + PCIR_MSI_ADDR, 2345 if (msi->msi_ctrl & PCIM_MSICTRL_64BIT) { 2346 pci_write_config(child, msi 2367 struct pcicfg_msi *msi = &dinfo->cfg.msi; local 2387 struct pcicfg_msi *msi = &dinfo->cfg.msi; local 2701 struct pcicfg_msi *msi = &dinfo->cfg.msi; local 2755 struct pcicfg_msi *msi = &dinfo->cfg.msi; local [all...] |
/freebsd-current/sys/dev/nvme/ |
H A D | nvme_pci.c | 276 goto msi; 310 goto msi; 323 msi:
|
/freebsd-current/sys/kern/ |
H A D | subr_intr.c | 961 struct intr_map_data_msi *msi; local 976 msi = (struct intr_map_data_msi *)data; 977 *isrc = msi->isrc; 1358 struct intr_map_data_msi *msi; local 1371 * interrupt controller to map memory the msi source will need. 1386 msi = (struct intr_map_data_msi *)intr_alloc_map_data( 1387 INTR_MAP_DATA_MSI, sizeof(*msi), M_WAITOK | M_ZERO); 1388 msi-> isrc = isrc[i]; 1391 (struct intr_map_data *)msi); 1404 struct intr_map_data_msi *msi; local 1446 struct intr_map_data_msi *msi; local 1482 struct intr_map_data_msi *msi; local [all...] |
/freebsd-current/sys/contrib/dev/athk/ath11k/ |
H A D | pci.c | 8 #include <linux/msi.h> 446 const struct ath11k_msi_config *msi_config = ab->pci.msi.config; 468 ab->pci.msi.config = &msi_config_one_msi; 469 ath11k_dbg(ab, ATH11K_DBG_PCI, "request one msi vector\n"); 482 ab->pci.msi.ep_base_data = msi_desc->msg.data; 485 &ab->pci.msi.addr_lo); 489 &ab->pci.msi.addr_hi); 491 ab->pci.msi.addr_hi = 0; 494 ath11k_dbg(ab, ATH11K_DBG_PCI, "msi base data is %d\n", ab->pci.msi [all...] |
H A D | pcic.c | 133 ath11k_err(ab, "failed to fetch msi config, unsupported hw version: 0x%x\n", 138 ab->pci.msi.config = msi_config; 255 *msi_addr_lo = ab->pci.msi.addr_lo; 256 *msi_addr_hi = ab->pci.msi.addr_hi; 264 const struct ath11k_msi_config *msi_config = ab->pci.msi.config; 271 *user_base_data = *base_vector + ab->pci.msi.ep_base_data; 274 "msi assignment %s num_vectors %d user_base_data %u base_vector %u\n",
|
H A D | ahb.c | 146 return ab->pci.msi.irqs[vector]; 825 ath11k_err(ab, "failed to init msi config: %d\n", ret); 841 ab->pci.msi.addr_lo = lower_32_bits(msi_addr_iova); 842 ab->pci.msi.addr_hi = upper_32_bits(msi_addr_iova); 848 ab->pci.msi.ep_base_data = int_prop + 32; 850 for (i = 0; i < ab->pci.msi.config->total_vectors; i++) { 855 ab->pci.msi.irqs[i] = ret;
|
H A D | mhi.c | 7 #include <linux/msi.h> 413 ath11k_err(ab, "failed to get msi for mhi\n");
|
/freebsd-current/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_amd.c | 858 amd_ntb_setup_isr(struct amd_ntb_softc *ntb, uint16_t num_vectors, bool msi, argument 885 if (msi || intx) { 938 bool msi = false, intx = false; local 958 msi = true; 966 msi = true; 972 msi = true; 975 * num_vectors, msi=false and dont release msi. 981 if (msi) { 989 msi [all...] |
/freebsd-current/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_interrupts.c | 85 u_int8_t msi, 102 if (msi == HAL_MSIVEC_RXHP) { 106 } else if (msi == HAL_MSIVEC_RXLP) { 111 } else if (msi == HAL_MSIVEC_TX) { 115 } else if (msi == HAL_MSIVEC_MISC) { 81 ar9300_get_pending_interrupts( struct ath_hal *ah, HAL_INT *masked, HAL_INT_TYPE type, u_int8_t msi, HAL_BOOL nortc) argument
|
/freebsd-current/sys/dev/ata/ |
H A D | ata-pci.c | 796 int i, msi = 0; local 800 device_get_unit(dev), "msi", &i) == 0 && i != 0) 801 msi = 1; 802 if (msi && pci_msi_count(dev) > 0 && pci_alloc_msi(dev, &msi) == 0) { 805 msi = 0; 811 if (msi) 820 if (msi)
|
/freebsd-current/sys/dev/hptnr/ |
H A D | hptnr_config.h | 118 #define msi hptnr_msi macro
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_removal.c | 1625 uint64_t msi; local 1626 for (msi = start_offset >> vd->vdev_ms_shift; 1627 msi < vd->vdev_ms_count && !svr->svr_thread_exit; msi++) { 1628 metaslab_t *msp = vd->vdev_ms[msi]; 1629 ASSERT3U(msi, <=, vd->vdev_ms_count); 1882 for (uint64_t msi = 0; msi < vd->vdev_ms_count; msi++) { 1883 metaslab_t *msp = vd->vdev_ms[msi]; [all...] |
/freebsd-current/sys/dev/siis/ |
H A D | siis.c | 260 int msi = ctlr->quirks & SIIS_Q_NOMSI ? 0 : 1; local 264 device_get_unit(dev), "msi", &msi); local 265 if (msi < 0) 266 msi = 0; 267 else if (msi > 0) 268 msi = min(1, pci_msi_count(dev)); 270 if (msi && pci_alloc_msi(dev, &msi) != 0) 271 msi [all...] |
/freebsd-current/sys/powerpc/powernv/ |
H A D | opal_pci.c | 419 if (OF_getproplen(node, "ibm,opal-msi-ranges") > 0) { 421 OF_getencprop(node, "ibm,opal-msi-ranges", 674 if (dinfo->cfg.msi.msi_alloc > 0 && 675 (dinfo->cfg.msi.msi_ctrl & PCIM_MSICTRL_64BIT) == 0) {
|
/freebsd-current/sys/arm/allwinner/ |
H A D | a10_ahci.c | 363 ctlr->msi = 0;
|
/freebsd-current/sys/dev/mfi/ |
H A D | mfi_pci.c | 110 SYSCTL_INT(_hw_mfi, OID_AUTO, msi, CTLFLAG_RDTUN, &mfi_msi, 0,
|
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 1308 struct pcicfg_msi *msi; local 1329 msi = &dinfo->cfg.msi; 1334 (msi->msi_ctrl & PCIM_MSICTRL_64BIT) ? true : false; 1335 desc->msg.data = msi->msi_data;
|