/linux/drivers/pci/controller/ |
H A D | pcie-iproc-msi.c | 62 struct iproc_msi *msi; member 128 static inline u32 iproc_msi_read_reg(struct iproc_msi *msi, in iproc_msi_read_reg() argument 132 struct iproc_pcie *pcie = msi->pcie; in iproc_msi_read_reg() 134 return readl_relaxed(pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_read_reg() 137 static inline void iproc_msi_write_reg(struct iproc_msi *msi, in iproc_msi_write_reg() argument 141 struct iproc_pcie *pcie = msi->pcie; in iproc_msi_write_reg() 143 writel_relaxed(val, pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_write_reg() 146 static inline u32 hwirq_to_group(struct iproc_msi *msi, unsigned long hwirq) in hwirq_to_group() argument 148 return (hwirq % msi->nr_irqs); in hwirq_to_group() 151 static inline unsigned int iproc_msi_addr_offset(struct iproc_msi *msi, in iproc_msi_addr_offset() argument [all …]
|
H A D | pcie-xilinx-dma-pl.c | 127 struct xilinx_msi msi; member 272 struct xilinx_msi *msi; in xilinx_pl_dma_pcie_msi_handler_high() local 277 msi = &port->msi; in xilinx_pl_dma_pcie_msi_handler_high() 283 virq = irq_find_mapping(msi->dev_domain, bit); in xilinx_pl_dma_pcie_msi_handler_high() 295 struct xilinx_msi *msi; in xilinx_pl_dma_pcie_msi_handler_low() local 299 msi = &port->msi; in xilinx_pl_dma_pcie_msi_handler_low() 304 virq = irq_find_mapping(msi->dev_domain, bit); in xilinx_pl_dma_pcie_msi_handler_low() 409 struct xilinx_msi *msi = &pcie->msi; in xilinx_irq_domain_alloc() local 412 mutex_lock(&msi->lock); in xilinx_irq_domain_alloc() 413 bit = bitmap_find_free_region(msi->bitmap, XILINX_NUM_MSI_IRQS, in xilinx_irq_domain_alloc() [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | pci-msi.txt | 23 Documentation/devicetree/bindings/interrupt-controller/msi.txt. 32 - msi-map: Maps a Requester ID to an MSI controller and associated 33 msi-specifier data. The property is an arbitrary number of tuples of 34 (rid-base,msi-controller,msi-base,length), where: 38 * msi-controller is a single phandle to an MSI controller 40 * msi-base is an msi-specifier describing the msi-specifier produced for the 47 the listed msi-controller, with the msi-specifier (r - rid-base + msi-base). 49 - msi-map-mask: A mask to be applied to each Requester ID prior to being mapped 50 to an msi-specifier per the msi-map property. 52 - msi-parent: Describes the MSI parent of the root complex itself. Where [all …]
|
H A D | xgene-pci-msi.txt | 5 - compatible: should be "apm,xgene1-msi" to identify 7 - msi-controller: indicates that this is an X-Gene v1 PCIe MSI controller node 16 Each PCIe node needs to have property msi-parent that points to an MSI 24 msi@79000000 { 25 compatible = "apm,xgene1-msi"; 26 msi-controller; 46 + PCIe controller node with msi-parent property pointing to MSI node: 67 msi-parent= <&msi>;
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-irqfd.c | 55 e->msi.address_lo = ue->u.msi.address_lo; in kvm_set_routing_entry() 56 e->msi.address_hi = ue->u.msi.address_hi; in kvm_set_routing_entry() 57 e->msi.data = ue->u.msi.data; in kvm_set_routing_entry() 58 e->msi.flags = ue->flags; in kvm_set_routing_entry() 59 e->msi.devid = ue->u.msi.devid; in kvm_set_routing_entry() 70 struct kvm_msi *msi) in kvm_populate_msi() argument 72 msi->address_lo = e->msi.address_lo; in kvm_populate_msi() 73 msi->address_hi = e->msi.address_hi; in kvm_populate_msi() 74 msi->data = e->msi.data; in kvm_populate_msi() 75 msi->flags = e->msi.flags; in kvm_populate_msi() [all …]
|
/linux/arch/powerpc/sysdev/ |
H A D | fsl_msi.c | 39 #define msi_hwirq(msi, msir_index, intr_index) \ argument 40 ((msir_index) << (msi)->srs_shift | \ 41 ((intr_index) << (msi)->ibs_shift)) 325 struct fsl_msi *msi = platform_get_drvdata(ofdev); in fsl_of_msi_remove() local 328 if (msi->list.prev != NULL) in fsl_of_msi_remove() 329 list_del(&msi->list); in fsl_of_msi_remove() 331 if (msi->cascade_array[i]) { in fsl_of_msi_remove() 332 virq = msi->cascade_array[i]->virq; in fsl_of_msi_remove() 336 free_irq(virq, msi->cascade_array[i]); in fsl_of_msi_remove() 337 kfree(msi->cascade_array[i]); in fsl_of_msi_remove() [all …]
|
/linux/arch/riscv/kvm/ |
H A D | vm.c | 71 struct kvm_msi msi; in kvm_set_msi() local 76 msi.address_lo = e->msi.address_lo; in kvm_set_msi() 77 msi.address_hi = e->msi.address_hi; in kvm_set_msi() 78 msi.data = e->msi.data; in kvm_set_msi() 79 msi.flags = e->msi.flags; in kvm_set_msi() 80 msi.devid = e->msi.devid; in kvm_set_msi() 82 return kvm_riscv_aia_inject_msi(kvm, &msi); in kvm_set_msi() 135 e->msi.address_lo = ue->u.msi.address_lo; in kvm_set_routing_entry() 136 e->msi.address_hi = ue->u.msi.address_hi; in kvm_set_routing_entry() 137 e->msi.data = ue->u.msi.data; in kvm_set_routing_entry() [all …]
|
/linux/drivers/ntb/ |
H A D | msi.c | 45 ntb->msi = devm_kzalloc(&ntb->dev, struct_size(ntb->msi, peer_mws, peers), in ntb_msi_init() 47 if (!ntb->msi) in ntb_msi_init() 50 ntb->msi->desc_changed = desc_changed; in ntb_msi_init() 60 ntb->msi->peer_mws[i] = devm_ioremap(&ntb->dev, mw_phys_addr, in ntb_msi_init() 62 if (!ntb->msi->peer_mws[i]) { in ntb_msi_init() 72 if (ntb->msi->peer_mws[i]) in ntb_msi_init() 73 devm_iounmap(&ntb->dev, ntb->msi->peer_mws[i]); in ntb_msi_init() 75 devm_kfree(&ntb->dev, ntb->msi); in ntb_msi_init() 76 ntb->msi = NULL; in ntb_msi_init() 106 if (!ntb->msi) in ntb_msi_setup_mws() [all …]
|
/linux/drivers/pci/controller/mobiveil/ |
H A D | pcie-mobiveil-host.c | 88 struct mobiveil_msi *msi = &rp->msi; in mobiveil_pcie_isr() local 154 generic_handle_domain_irq(msi->dev_domain, msi_data); in mobiveil_pcie_isr() 202 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_pcie_enable_msi() local 204 msi->num_of_vectors = PCI_NUM_MSI; in mobiveil_pcie_enable_msi() 205 msi->msi_pages_phys = (phys_addr_t)msg_addr; in mobiveil_pcie_enable_msi() 391 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_irq_msi_domain_alloc() local 395 mutex_lock(&msi->lock); in mobiveil_irq_msi_domain_alloc() 397 bit = find_first_zero_bit(msi->msi_irq_in_use, msi->num_of_vectors); in mobiveil_irq_msi_domain_alloc() 398 if (bit >= msi->num_of_vectors) { in mobiveil_irq_msi_domain_alloc() 399 mutex_unlock(&msi->lock); in mobiveil_irq_msi_domain_alloc() [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | msi.txt | 40 - msi-controller: Identifies the node as an MSI controller. 45 - #msi-cells: The number of cells in an msi-specifier, required if not zero. 50 The meaning of the msi-specifier is defined by the device tree binding of 64 - msi-parent: A list of phandle + msi-specifier pairs, one for each MSI 68 MSI controllers listed in the msi-parent property. 73 When #msi-cells is non-zero, busses with an msi-parent will require 85 msi_a: msi-controller@a { 88 msi-controller; 89 /* No sideband data, so #msi-cells omitted */ 92 msi_b: msi-controller@b { [all …]
|
H A D | al,alpine-msix.txt | 10 - msi-controller: identifies the node as an PCI Message Signaled Interrupt 12 - al,msi-base-spi: SPI base of the MSI frame 13 - al,msi-num-spis: number of SPIs assigned to the MSI frame, relative to SPI0 22 msi-controller; 23 al,msi-base-spi = <160>; 24 al,msi-num-spis = <160>;
|
/linux/drivers/pci/controller/plda/ |
H A D | pcie-plda-host.c | 33 struct plda_msi *msi = &port->msi; in plda_handle_msi() local 46 for_each_set_bit(bit, &status, msi->num_vectors) { in plda_handle_msi() 47 ret = generic_handle_domain_irq(msi->dev_domain, bit); in plda_handle_msi() 69 phys_addr_t addr = port->msi.vector_phy; in plda_compose_msi_msg() 91 struct plda_msi *msi = &port->msi; in plda_irq_msi_domain_alloc() local 94 mutex_lock(&msi->lock); in plda_irq_msi_domain_alloc() 95 bit = find_first_zero_bit(msi->used, msi->num_vectors); in plda_irq_msi_domain_alloc() 96 if (bit >= msi->num_vectors) { in plda_irq_msi_domain_alloc() 97 mutex_unlock(&msi->lock); in plda_irq_msi_domain_alloc() 101 set_bit(bit, msi->used); in plda_irq_msi_domain_alloc() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | base.c | 35 if (pci && pci->msi) in nvkm_pci_msi_rearm() 131 if (pci->msi) in nvkm_pci_init() 144 if (pci->msi) in nvkm_pci_dtor() 187 pci->msi = true; in nvkm_pci_new_() 193 pci->msi = false; in nvkm_pci_new_() 196 pci->msi = nvkm_boolopt(device->cfgopt, "NvMSI", pci->msi); in nvkm_pci_new_() 197 if (pci->msi && func->msi_rearm) { in nvkm_pci_new_() 198 pci->msi = pci_enable_msi(pci->pdev) == 0; in nvkm_pci_new_() 199 if (pci->msi) in nvkm_pci_new_() 202 pci->msi = false; in nvkm_pci_new_()
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | msi-pic.txt | 5 The first is "fsl,CHIP-msi", where CHIP is the processor(mpc8610, mpc8572, 6 etc.) and the second is "fsl,mpic-msi" or "fsl,ipic-msi" or 7 "fsl,mpic-msi-v4.3" depending on the parent type and version. If mpic 9 provided to access these 16 registers, and compatible "fsl,mpic-msi-v4.3" 21 be set as edge sensitive. If msi-available-ranges is present, only 25 - msi-available-ranges: use <start count> style section to define which 26 msi interrupt can be used in the 256 msi interrupts. This property is 33 - msi-address-64: 64-bit PCI address of the MSIIR register. The MSIIR register 43 msi@41600 { 44 compatible = "fsl,mpc8610-msi", "fsl,mpic-msi"; [all …]
|
/linux/drivers/virt/acrn/ |
H A D | vm.c | 106 struct acrn_msi_entry *msi; in acrn_msi_inject() local 110 msi = kzalloc(sizeof(*msi), GFP_ATOMIC); in acrn_msi_inject() 111 if (!msi) in acrn_msi_inject() 118 msi->msi_addr = msi_addr; in acrn_msi_inject() 119 msi->msi_data = msi_data; in acrn_msi_inject() 120 ret = hcall_inject_msi(vm->vmid, virt_to_phys(msi)); in acrn_msi_inject() 124 kfree(msi); in acrn_msi_inject()
|
/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge-main.c | 37 static int msi = 1; variable 39 static int msi; variable 41 module_param(msi, int, 0444); 43 MODULE_PARM_DESC(msi, "Control MSI interrupts: 0-disable, 1-enable (default)"); 45 MODULE_PARM_DESC(msi, "Control MSI interrupts: 0-disable (default), 1-enable"); 62 if (dev->msi) in ddb_msi_exit() 70 if (dev->msi == 2) in ddb_irq_exit() 98 if (msi && pci_msi_enabled()) { in ddb_irq_msi() 102 dev->msi = stat; in ddb_irq_msi() 104 dev->msi); in ddb_irq_msi() [all …]
|
/linux/arch/mips/boot/dts/loongson/ |
H A D | loongson64c_4core_ls7a.dts | 28 msi: msi-controller@2ff00000 { label 29 compatible = "loongson,pch-msi-1.0"; 32 msi-controller; 33 loongson,msi-base-vec = <64>; 34 loongson,msi-num-vecs = <64>;
|
H A D | loongson64g_4core_ls7a.dts | 32 msi: msi-controller@2ff00000 { label 33 compatible = "loongson,pch-msi-1.0"; 37 msi-controller; 38 loongson,msi-base-vec = <64>; 39 loongson,msi-num-vecs = <192>;
|
/linux/virt/kvm/ |
H A D | irqchip.c | 48 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_send_userspace_msi() argument 52 if (!kvm_arch_irqchip_in_kernel(kvm) || (msi->flags & ~KVM_MSI_VALID_DEVID)) in kvm_send_userspace_msi() 55 route.msi.address_lo = msi->address_lo; in kvm_send_userspace_msi() 56 route.msi.address_hi = msi->address_hi; in kvm_send_userspace_msi() 57 route.msi.data = msi->data; in kvm_send_userspace_msi() 58 route.msi.flags = msi->flags; in kvm_send_userspace_msi() 59 route.msi.devid = msi->devid; in kvm_send_userspace_msi()
|
/linux/tools/pci/ |
H A D | pcitest.sh | 23 msi=1 25 while [ $msi -lt 33 ] 27 pcitest -m $msi 28 msi=`expr $msi + 1`
|
/linux/arch/arm64/boot/dts/marvell/ |
H A D | armada-ap80x.dtsi | 97 msi-controller; 99 arm,msi-base-spi = <160>; 100 arm,msi-num-spis = <32>; 104 msi-controller; 106 arm,msi-base-spi = <192>; 107 arm,msi-num-spis = <32>; 111 msi-controller; 113 arm,msi-base-spi = <224>; 114 arm,msi-num-spis = <32>; 118 msi-controller; [all …]
|
/linux/arch/s390/pci/ |
H A D | pci_irq.c | 303 struct msi_desc *msi; in arch_setup_msi_irqs() local 334 msi_for_each_desc(msi, &pdev->dev, MSI_DESC_NOTASSOCIATED) { in arch_setup_msi_irqs() 337 irqs_per_msi = min_t(unsigned int, msi_vecs, msi->nvec_used); in arch_setup_msi_irqs() 340 msi->affinity : NULL); in arch_setup_msi_irqs() 345 rc = irq_set_msi_desc_off(irq, i, msi); in arch_setup_msi_irqs() 354 if (msi->affinity) in arch_setup_msi_irqs() 355 cpu = cpumask_first(&msi->affinity->mask); in arch_setup_msi_irqs() 391 struct msi_desc *msi; in arch_teardown_msi_irqs() local 401 msi_for_each_desc(msi, &pdev->dev, MSI_DESC_ASSOCIATED) { in arch_teardown_msi_irqs() 402 for (i = 0; i < msi->nvec_used; i++) { in arch_teardown_msi_irqs() [all …]
|
/linux/arch/powerpc/boot/dts/fsl/ |
H A D | mpc8641si-post.dtsi | 75 msi@41600 { 76 compatible = "fsl,mpc8641-msi", "fsl,mpic-msi"; 78 msi@41800 { 79 compatible = "fsl,mpc8641-msi", "fsl,mpic-msi"; 81 msi@41a00 { 82 compatible = "fsl,mpc8641-msi", "fsl,mpic-msi";
|
H A D | qoriq-mpic.dtsi | 54 msi0: msi@41600 { 55 compatible = "fsl,mpic-msi"; 57 msi-available-ranges = <0 0x100>; 69 msi1: msi@41800 { 70 compatible = "fsl,mpic-msi"; 72 msi-available-ranges = <0 0x100>; 84 msi2: msi@41a00 { 85 compatible = "fsl,mpic-msi"; 87 msi-available-ranges = <0 0x100>;
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-platform-msi-laptop | 1 What: /sys/devices/platform/msi-laptop-pf/lcd_level 8 What: /sys/devices/platform/msi-laptop-pf/auto_brightness 17 What: /sys/devices/platform/msi-laptop-pf/wlan 24 What: /sys/devices/platform/msi-laptop-pf/bluetooth 33 What: /sys/devices/platform/msi-laptop-pf/touchpad 41 What: /sys/devices/platform/msi-laptop-pf/turbo_mode 54 What: /sys/devices/platform/msi-laptop-pf/eco_mode 64 What: /sys/devices/platform/msi-laptop-pf/turbo_cooldown 75 What: /sys/devices/platform/msi-laptop-pf/auto_fan
|