/linux/drivers/pci/controller/ |
A D | pcie-iproc-msi.c | 333 msi = grp->msi; in iproc_msi_handler() 539 pcie->msi = msi; in iproc_msi_init() 559 if (msi->nr_irqs < msi->nr_cpus) { in iproc_msi_init() 566 msi->nr_irqs -= msi->nr_irqs % msi->nr_cpus; in iproc_msi_init() 580 msi->nr_eq_region = msi->nr_irqs; in iproc_msi_init() 581 msi->nr_msi_region = msi->nr_irqs; in iproc_msi_init() 597 msi->grps = devm_kcalloc(pcie->dev, msi->nr_irqs, sizeof(*msi->grps), in iproc_msi_init() 611 msi->grps[i].msi = msi; in iproc_msi_init() 647 msi->eq_cpu, msi->eq_dma); in iproc_msi_init() 661 struct iproc_msi *msi = pcie->msi; in iproc_msi_exit() local [all …]
|
A D | pcie-altera-msi.c | 55 struct altera_msi *msi; in altera_msi_isr() local 122 mutex_lock(&msi->lock); in altera_irq_domain_alloc() 124 bit = find_first_zero_bit(msi->used, msi->num_of_vectors); in altera_irq_domain_alloc() 152 mutex_lock(&msi->lock); in altera_irq_domain_free() 176 msi->inner_domain = irq_domain_add_linear(NULL, msi->num_of_vectors, in altera_allocate_domains() 185 if (!msi->msi_domain) { in altera_allocate_domains() 222 if (!msi) in altera_msi_probe() 226 msi->pdev = pdev; in altera_msi_probe() 252 if (msi->irq < 0) { in altera_msi_probe() 253 ret = msi->irq; in altera_msi_probe() [all …]
|
A D | pci-xgene-msi.c | 27 struct xgene_msi *msi; member 205 bitmap_set(msi->bitmap, msi_irq, msi->num_cpus); in xgene_irq_domain_alloc() 231 bitmap_clear(msi->bitmap, hwirq, msi->num_cpus); in xgene_irq_domain_free() 247 if (!msi->inner_domain) in xgene_allocate_domains() 250 msi->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(msi->node), in xgene_allocate_domains() 254 if (!msi->msi_domain) { in xgene_allocate_domains() 264 if (msi->msi_domain) in xgene_free_domains() 266 if (msi->inner_domain) in xgene_free_domains() 361 kfree(msi->msi_groups); in xgene_msi_remove() 363 kfree(msi->bitmap); in xgene_msi_remove() [all …]
|
A D | pcie-brcmstb.c | 486 dev = msi->dev; in brcm_pcie_msi_isr() 537 hwirq = bitmap_find_free_region(&msi->used, msi->nr, 0); in brcm_msi_alloc() 586 msi->inner_domain = irq_domain_add_linear(NULL, msi->nr, &msi_domain_ops, msi); in brcm_allocate_domains() 612 struct brcm_msi *msi = pcie->msi; in brcm_msi_remove() local 614 if (!msi) in brcm_msi_remove() 653 if (!msi) in brcm_pcie_enable_msi() 657 msi->dev = dev; in brcm_pcie_enable_msi() 665 msi->intr_base = msi->base + PCIE_INTR2_CPU_BASE; in brcm_pcie_enable_msi() 669 msi->intr_base = msi->base + PCIE_MSI_INTR2_BASE; in brcm_pcie_enable_msi() 681 pcie->msi = msi; in brcm_pcie_enable_msi() [all …]
|
A D | pcie-rcar-host.c | 64 struct rcar_msi msi; member 70 return container_of(msi, struct rcar_pcie_host, msi); in msi_to_host() 492 struct rcar_msi *msi = &host->msi; in rcar_pcie_msi_irq() local 612 mutex_lock(&msi->map_lock); in rcar_msi_domain_alloc() 635 mutex_lock(&msi->map_lock); in rcar_msi_domain_free() 668 if (!msi->domain) { in rcar_allocate_domains() 689 struct rcar_msi *msi = &host->msi; in rcar_pcie_enable_msi() local 693 mutex_init(&msi->map_lock); in rcar_pcie_enable_msi() 734 rcar_free_domains(msi); in rcar_pcie_enable_msi() 782 host->msi.irq1 = i; in rcar_pcie_get_resources() [all …]
|
A D | pcie-xilinx-nwl.c | 171 struct nwl_msi msi; member 338 struct nwl_msi *msi; in nwl_pcie_handle_msi_irq() local 342 msi = &pcie->msi; in nwl_pcie_handle_msi_irq() 465 struct nwl_msi *msi = &pcie->msi; in nwl_irq_domain_alloc() local 469 mutex_lock(&msi->lock); in nwl_irq_domain_alloc() 491 struct nwl_msi *msi = &pcie->msi; in nwl_irq_domain_free() local 509 struct nwl_msi *msi = &pcie->msi; in nwl_pcie_init_msi_irq_domain() local 560 struct nwl_msi *msi = &pcie->msi; in nwl_pcie_enable_msi() local 568 if (!msi->bitmap) in nwl_pcie_enable_msi() 636 kfree(msi->bitmap); in nwl_pcie_enable_msi() [all …]
|
A D | pcie-microchip-host.c | 271 struct mc_msi msi; member 387 struct mc_msi *msi = &port->msi; in mc_pcie_enable_msi() local 410 struct mc_msi *msi = &port->msi; in mc_handle_msi() local 474 struct mc_msi *msi = &port->msi; in mc_irq_msi_domain_alloc() local 480 mutex_lock(&msi->lock); in mc_irq_msi_domain_alloc() 481 bit = find_first_zero_bit(msi->used, msi->num_vectors); in mc_irq_msi_domain_alloc() 507 struct mc_msi *msi = &port->msi; in mc_irq_msi_domain_free() local 509 mutex_lock(&msi->lock); in mc_irq_msi_domain_free() 541 struct mc_msi *msi = &port->msi; in mc_allocate_msi_domains() local 545 msi->dev_domain = irq_domain_add_linear(NULL, msi->num_vectors, in mc_allocate_msi_domains() [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
A D | pci-msi.txt | 34 (rid-base,msi-controller,msi-base,length), where: 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). 50 to an msi-specifier per the msi-map property. 66 msi: msi-controller@a { 69 msi-controller; 94 msi: msi-controller@a { 123 msi: msi-controller@a { 140 msi-map = <0x0000 &msi 0x0000 0x8000>, 153 msi: msi-controller@a { [all …]
|
/linux/arch/arm64/kvm/vgic/ |
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() 59 e->msi.devid = ue->u.msi.devid; in kvm_set_routing_entry() 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() 76 msi->devid = e->msi.devid; in kvm_populate_msi() 89 struct kvm_msi msi; in kvm_set_msi() local [all …]
|
/linux/arch/powerpc/platforms/4xx/ |
A D | msi.c | 150 if (!msi->msi_dev) in ppc4xx_setup_pcieh_hw() 153 msi->msi_regs = of_iomap(msi->msi_dev, 0); in ppc4xx_setup_pcieh_hw() 154 if (!msi->msi_regs) { in ppc4xx_setup_pcieh_hw() 160 (u32) (msi->msi_regs + PEIH_TERMADH), (u32) (msi->msi_regs)); in ppc4xx_setup_pcieh_hw() 170 msi->msi_addr_hi, msi->msi_addr_lo); in ppc4xx_setup_pcieh_hw() 176 out_be32(msi->msi_regs + PEIH_TERMADH, msi->msi_addr_hi); in ppc4xx_setup_pcieh_hw() 177 out_be32(msi->msi_regs + PEIH_TERMADL, msi->msi_addr_lo); in ppc4xx_setup_pcieh_hw() 188 iounmap(msi->msi_regs); in ppc4xx_setup_pcieh_hw() 223 msi = devm_kzalloc(&dev->dev, sizeof(*msi), GFP_KERNEL); in ppc4xx_msi_probe() 224 if (!msi) in ppc4xx_msi_probe() [all …]
|
/linux/arch/powerpc/sysdev/ |
A D | fsl_msi.c | 325 if (msi->list.prev != NULL) in fsl_of_msi_remove() 326 list_del(&msi->list); in fsl_of_msi_remove() 328 if (msi->cascade_array[i]) { in fsl_of_msi_remove() 338 if (msi->bitmap.bitmap) in fsl_of_msi_remove() 341 iounmap(msi->msi_regs); in fsl_of_msi_remove() 342 kfree(msi); in fsl_of_msi_remove() 395 struct fsl_msi *msi; in fsl_of_msi_probe() local 412 if (!msi) { in fsl_of_msi_probe() 421 if (msi->irqhost == NULL) { in fsl_of_msi_probe() 440 if (!msi->msi_regs) { in fsl_of_msi_probe() [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
A D | loongson,pch-msi.yaml | 19 const: loongson,pch-msi-1.0 24 loongson,msi-base-vec: 32 loongson,msi-num-vecs: 40 msi-controller: true 45 - msi-controller 46 - loongson,msi-base-vec 47 - loongson,msi-num-vecs 54 msi: msi-controller@2ff00000 { 57 msi-controller; 58 loongson,msi-base-vec = <64>; [all …]
|
A D | fsl,ls-scfg-msi.txt | 5 - compatible: should be "fsl,<soc-name>-msi" to identify 7 "fsl,ls1021a-msi" 8 "fsl,ls1043a-msi" 9 "fsl,ls1046a-msi" 10 "fsl,ls1043a-v1.1-msi" 11 "fsl,ls1012a-msi" 12 - msi-controller: indicates that this is a PCIe MSI controller node 20 Each PCIe node needs to have property msi-parent that points to 25 msi1: msi-controller@1571000 { 26 compatible = "fsl,ls1043a-msi"; [all …]
|
A D | msi.txt | 45 - #msi-cells: The number of cells in an msi-specifier, required if not zero. 64 - msi-parent: A list of phandle + msi-specifier pairs, one for each MSI 73 When #msi-cells is non-zero, busses with an msi-parent will require 85 msi_a: msi-controller@a { 88 msi-controller; 92 msi_b: msi-controller@b { 95 msi-controller; 97 #msi-cells = <1>; 103 msi-controller; 105 #msi-cells = <1>; [all …]
|
A D | arm,gic-v3.yaml | 105 msi-controller: 185 "#msi-cells": 207 - msi-controller 208 - "#msi-cells" 231 msi-controller; 236 msi-controller; 237 #msi-cells = <1>; 261 msi-controller; 262 #msi-cells = <1>; 268 msi-controller; [all …]
|
A D | msi-controller.yaml | 4 $id: http://devicetree.org/schemas/interrupt-controller/msi-controller.yaml# 18 "#msi-cells": 20 The number of cells in an msi-specifier, required if not zero. 26 The meaning of the msi-specifier is defined by the device tree 30 msi-controller: 35 msi-ranges: 44 "#msi-cells": [ msi-controller ]
|
/linux/drivers/ntb/ |
A D | msi.c | 46 struct_size = sizeof(*ntb->msi) + sizeof(*ntb->msi->peer_mws) * peers; in ntb_msi_init() 49 if (!ntb->msi) in ntb_msi_init() 64 if (!ntb->msi->peer_mws[i]) { in ntb_msi_init() 74 if (ntb->msi->peer_mws[i]) in ntb_msi_init() 78 ntb->msi = NULL; in ntb_msi_init() 108 if (!ntb->msi) in ntb_msi_setup_mws() 150 ntb->msi->base_addr = addr; in ntb_msi_setup_mws() 203 if (addr < ntb->msi->base_addr || addr >= ntb->msi->end_addr) { in ntb_msi_set_desc() 207 ntb->msi->end_addr); in ntb_msi_set_desc() 287 if (!ntb->msi) in ntbm_msi_request_threaded_irq() [all …]
|
/linux/drivers/pci/controller/mobiveil/ |
A D | pcie-mobiveil-host.c | 91 struct mobiveil_msi *msi = &rp->msi; in mobiveil_pcie_isr() local 205 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_pcie_enable_msi() local 401 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_irq_msi_domain_alloc() local 405 mutex_lock(&msi->lock); in mobiveil_irq_msi_domain_alloc() 407 bit = find_first_zero_bit(msi->msi_irq_in_use, msi->num_of_vectors); in mobiveil_irq_msi_domain_alloc() 428 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_irq_msi_domain_free() local 430 mutex_lock(&msi->lock); in mobiveil_irq_msi_domain_free() 449 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_allocate_msi_domains() local 451 mutex_init(&msi->lock); in mobiveil_allocate_msi_domains() 452 msi->dev_domain = irq_domain_add_linear(NULL, msi->num_of_vectors, in mobiveil_allocate_msi_domains() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
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 21 be set as edge sensitive. If msi-available-ranges is present, only 26 msi interrupt can be used in the 256 msi interrupts. This property is 43 msi@41600 { 44 compatible = "fsl,mpc8610-msi", "fsl,mpic-msi"; 46 msi-available-ranges = <0 0x100>; 59 msi@41600 { 60 compatible = "fsl,mpic-msi-v4.3"; [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
A D | base.c | 79 if (pci->msi) in nvkm_pci_intr() 147 if (pci->msi) in nvkm_pci_init() 169 if (pci->msi) in nvkm_pci_dtor() 213 pci->msi = true; in nvkm_pci_new_() 219 pci->msi = false; in nvkm_pci_new_() 222 pci->msi = nvkm_boolopt(device->cfgopt, "NvMSI", pci->msi); in nvkm_pci_new_() 223 if (pci->msi && func->msi_rearm) { in nvkm_pci_new_() 224 pci->msi = pci_enable_msi(pci->pdev) == 0; in nvkm_pci_new_() 225 if (pci->msi) in nvkm_pci_new_() 228 pci->msi = false; in nvkm_pci_new_()
|
/linux/drivers/virt/acrn/ |
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/virt/kvm/ |
A D | irqchip.c | 49 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_send_userspace_msi() argument 53 if (!irqchip_in_kernel(kvm) || (msi->flags & ~KVM_MSI_VALID_DEVID)) in kvm_send_userspace_msi() 56 route.msi.address_lo = msi->address_lo; in kvm_send_userspace_msi() 57 route.msi.address_hi = msi->address_hi; in kvm_send_userspace_msi() 58 route.msi.data = msi->data; in kvm_send_userspace_msi() 59 route.msi.flags = msi->flags; in kvm_send_userspace_msi() 60 route.msi.devid = msi->devid; in kvm_send_userspace_msi()
|
/linux/drivers/media/pci/ddbridge/ |
A D | ddbridge-main.c | 46 static int msi = 1; variable 48 static int msi; variable 50 module_param(msi, int, 0444); 71 if (dev->msi) in ddb_msi_exit() 79 if (dev->msi == 2) in ddb_irq_exit() 107 if (msi && pci_msi_enabled()) { in ddb_irq_msi() 111 dev->msi = stat; in ddb_irq_msi() 113 dev->msi); in ddb_irq_msi() 138 if (dev->msi) in ddb_irq_init() 140 if (dev->msi == 2) { in ddb_irq_init() [all …]
|
/linux/arch/mips/boot/dts/loongson/ |
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>;
|
A D | loongson64g_4core_ls7a.dts | 32 msi: msi-controller@2ff00000 { label 33 compatible = "loongson,pch-msi-1.0"; 36 msi-controller; 37 loongson,msi-base-vec = <64>; 38 loongson,msi-num-vecs = <192>;
|