/drivers/irqchip/ |
D | irq-mmp.c | 39 int nr_irqs; member 257 icu_data[0].nr_irqs = 64; in icu_init_irq() 280 icu_data[0].nr_irqs = 64; in mmp2_init_icu() 288 icu_data[0].nr_irqs; in mmp2_init_icu() 290 icu_data[1].nr_irqs = 2; in mmp2_init_icu() 292 icu_data[1].virq_base = icu_data[0].virq_base + icu_data[0].nr_irqs; in mmp2_init_icu() 293 icu_data[1].domain = irq_domain_add_legacy(NULL, icu_data[1].nr_irqs, in mmp2_init_icu() 299 icu_data[2].nr_irqs = 2; in mmp2_init_icu() 301 icu_data[2].virq_base = icu_data[1].virq_base + icu_data[1].nr_irqs; in mmp2_init_icu() 302 icu_data[2].domain = irq_domain_add_legacy(NULL, icu_data[2].nr_irqs, in mmp2_init_icu() [all …]
|
D | spear-shirq.c | 47 u32 nr_irqs; member 90 .nr_irqs = 9, 106 .nr_irqs = 8, 114 .nr_irqs = 5, 122 .nr_irqs = 1, 130 .nr_irqs = 3, 150 .nr_irqs = 7, 156 .nr_irqs = 3, 164 .nr_irqs = 1, 172 .nr_irqs = 11, [all …]
|
D | irq-hip04.c | 56 unsigned int nr_irqs; member 250 unsigned int nr_irqs = intc->nr_irqs; in hip04_irq_dist_init() local 260 for (i = 32; i < nr_irqs; i += 2) in hip04_irq_dist_init() 263 gic_dist_config(base, nr_irqs, NULL); in hip04_irq_dist_init() 359 int nr_irqs, irq_base, i; in hip04_of_init() local 381 nr_irqs = readl_relaxed(hip04_data.dist_base + GIC_DIST_CTR) & 0x1f; in hip04_of_init() 382 nr_irqs = (nr_irqs + 1) * 32; in hip04_of_init() 383 if (nr_irqs > HIP04_MAX_IRQS) in hip04_of_init() 384 nr_irqs = HIP04_MAX_IRQS; in hip04_of_init() 385 hip04_data.nr_irqs = nr_irqs; in hip04_of_init() [all …]
|
D | irq-ixp4xx.c | 154 unsigned int irq, unsigned int nr_irqs, in ixp4xx_irq_domain_alloc() argument 168 for (i = 0; i < nr_irqs; i++) { in ixp4xx_irq_domain_alloc() 221 int nr_irqs; member 228 .nr_irqs = 6, 233 .nr_irqs = 11, 238 .nr_irqs = 2, 244 .nr_irqs = 10, 260 int nr_irqs; in ixp4xx_irq_setup() local 278 nr_irqs = 64; in ixp4xx_irq_setup() 280 nr_irqs = 32; in ixp4xx_irq_setup() [all …]
|
D | irq-armada-370-xp.c | 230 unsigned int nr_irqs, void *args) in armada_370_xp_msi_alloc() argument 236 order_base_2(nr_irqs)); in armada_370_xp_msi_alloc() 242 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_msi_alloc() 253 unsigned int virq, unsigned int nr_irqs) in armada_370_xp_msi_free() argument 258 bitmap_release_region(msi_used, d->hwirq, order_base_2(nr_irqs)); in armada_370_xp_msi_free() 382 unsigned int nr_irqs, void *args) in armada_370_xp_ipi_alloc() argument 386 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_ipi_alloc() 399 unsigned int nr_irqs) in armada_370_xp_ipi_free() argument 473 int nr_irqs, i; in armada_xp_mpic_smp_cpu_init() local 476 nr_irqs = (control >> 2) & 0x3ff; in armada_xp_mpic_smp_cpu_init() [all …]
|
D | irq-gic-v3-mbi.c | 76 int nr_irqs) in mbi_free_msi() argument 80 get_count_order(nr_irqs)); in mbi_free_msi() 85 unsigned int nr_irqs, void *args) in mbi_irq_domain_alloc() argument 95 get_count_order(nr_irqs)); in mbi_irq_domain_alloc() 113 for (i = 0; i < nr_irqs; i++) { in mbi_irq_domain_alloc() 125 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in mbi_irq_domain_alloc() 126 mbi_free_msi(mbi, hwirq, nr_irqs); in mbi_irq_domain_alloc() 131 unsigned int virq, unsigned int nr_irqs) in mbi_irq_domain_free() argument 136 mbi_free_msi(mbi, d->hwirq, nr_irqs); in mbi_irq_domain_free() 137 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in mbi_irq_domain_free()
|
D | irq-mst-intc.c | 22 unsigned int irq_start, nr_irqs; member 112 if (fwspec->param[1] >= cd->nr_irqs) in mst_intc_domain_translate() 124 unsigned int nr_irqs, void *data) in mst_intc_domain_alloc() argument 140 for (i = 0; i < nr_irqs; i++) in mst_intc_domain_alloc() 148 return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_fwspec); in mst_intc_domain_alloc() 187 cd->nr_irqs = irq_end - irq_start + 1; in mst_intc_of_init() 188 domain = irq_domain_add_hierarchy(domain_parent, 0, cd->nr_irqs, dn, in mst_intc_of_init()
|
D | irq-loongson-pch-msi.c | 113 unsigned int nr_irqs, void *args) in pch_msi_middle_domain_alloc() argument 118 hwirq = pch_msi_allocate_hwirq(priv, nr_irqs); in pch_msi_middle_domain_alloc() 122 for (i = 0; i < nr_irqs; i++) { in pch_msi_middle_domain_alloc() 134 pch_msi_free_hwirq(priv, hwirq, nr_irqs); in pch_msi_middle_domain_alloc() 142 unsigned int nr_irqs) in pch_msi_middle_domain_free() argument 147 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in pch_msi_middle_domain_free() 148 pch_msi_free_hwirq(priv, d->hwirq, nr_irqs); in pch_msi_middle_domain_free()
|
D | irq-alpine-msi.c | 147 unsigned int nr_irqs, void *args) in alpine_msix_middle_domain_alloc() argument 152 sgi = alpine_msix_allocate_sgi(priv, nr_irqs); in alpine_msix_middle_domain_alloc() 156 for (i = 0; i < nr_irqs; i++) { in alpine_msix_middle_domain_alloc() 169 alpine_msix_free_sgi(priv, sgi, nr_irqs); in alpine_msix_middle_domain_alloc() 175 unsigned int nr_irqs) in alpine_msix_middle_domain_free() argument 180 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in alpine_msix_middle_domain_free() 181 alpine_msix_free_sgi(priv, d->hwirq, nr_irqs); in alpine_msix_middle_domain_free()
|
D | irq-sifive-plic.c | 198 unsigned int nr_irqs, void *arg) in plic_irq_domain_alloc() argument 209 for (i = 0; i < nr_irqs; i++) { in plic_irq_domain_alloc() 286 u32 nr_irqs; in plic_init() local 301 of_property_read_u32(node, "riscv,ndev", &nr_irqs); in plic_init() 302 if (WARN_ON(!nr_irqs)) in plic_init() 310 priv->irqdomain = irq_domain_add_linear(node, nr_irqs + 1, in plic_init() 373 for (hwirq = 1; hwirq <= nr_irqs; hwirq++) in plic_init() 391 " %d contexts.\n", node, nr_irqs, nr_handlers, nr_contexts); in plic_init()
|
D | irq-gic-v2m.c | 169 int nr_irqs) in gicv2m_unalloc_msi() argument 173 get_count_order(nr_irqs)); in gicv2m_unalloc_msi() 178 unsigned int nr_irqs, void *args) in gicv2m_irq_domain_alloc() argument 187 get_count_order(nr_irqs)); in gicv2m_irq_domain_alloc() 205 for (i = 0; i < nr_irqs; i++) { in gicv2m_irq_domain_alloc() 217 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicv2m_irq_domain_alloc() 218 gicv2m_unalloc_msi(v2m, hwirq, nr_irqs); in gicv2m_irq_domain_alloc() 223 unsigned int virq, unsigned int nr_irqs) in gicv2m_irq_domain_free() argument 228 gicv2m_unalloc_msi(v2m, d->hwirq, nr_irqs); in gicv2m_irq_domain_free() 229 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicv2m_irq_domain_free()
|
D | irq-mvebu-sei.c | 168 unsigned int nr_irqs, void *arg) in mvebu_sei_domain_alloc() argument 181 unsigned int nr_irqs) in mvebu_sei_domain_free() argument 185 for (i = 0; i < nr_irqs; i++) { in mvebu_sei_domain_free() 209 unsigned int nr_irqs, void *arg) in mvebu_sei_ap_alloc() argument 249 unsigned int virq, unsigned int nr_irqs, in mvebu_sei_cp_domain_alloc() argument 258 if (nr_irqs != 1) in mvebu_sei_cp_domain_alloc() 291 unsigned int virq, unsigned int nr_irqs) in mvebu_sei_cp_domain_free() argument 296 if (nr_irqs != 1 || d->hwirq >= sei->caps->cp_range.size) { in mvebu_sei_cp_domain_free()
|
D | irq-mbigen.c | 197 unsigned int nr_irqs, in mbigen_irq_domain_alloc() argument 210 err = platform_msi_domain_alloc(domain, virq, nr_irqs); in mbigen_irq_domain_alloc() 216 for (i = 0; i < nr_irqs; i++) in mbigen_irq_domain_alloc() 224 unsigned int nr_irqs) in mbigen_irq_domain_free() argument 226 platform_msi_domain_free(domain, virq, nr_irqs); in mbigen_irq_domain_free()
|
D | irq-crossbar.c | 112 unsigned int nr_irqs, void *data) in crossbar_domain_alloc() argument 124 if ((hwirq + nr_irqs) > cb->max_crossbar_sources) in crossbar_domain_alloc() 127 for (i = 0; i < nr_irqs; i++) { in crossbar_domain_alloc() 153 unsigned int nr_irqs) in crossbar_domain_free() argument 158 for (i = 0; i < nr_irqs; i++) { in crossbar_domain_free()
|
D | irq-loongson-htvec.c | 109 unsigned int nr_irqs, void *arg) in htvec_domain_alloc() argument 120 for (i = 0; i < nr_irqs; i++) { in htvec_domain_alloc() 129 unsigned int nr_irqs) in htvec_domain_free() argument 133 for (i = 0; i < nr_irqs; i++) { in htvec_domain_free()
|
D | irq-mvebu-icu.c | 197 unsigned int nr_irqs, void *args) in mvebu_icu_irq_domain_alloc() argument 224 err = platform_msi_domain_alloc(domain, virq, nr_irqs); in mvebu_icu_irq_domain_alloc() 248 platform_msi_domain_free(domain, virq, nr_irqs); in mvebu_icu_irq_domain_alloc() 256 unsigned int nr_irqs) in mvebu_icu_irq_domain_free() argument 263 platform_msi_domain_free(domain, virq, nr_irqs); in mvebu_icu_irq_domain_free()
|
D | irq-mips-gic.c | 549 unsigned int nr_irqs, void *arg) in gic_irq_domain_alloc() argument 563 unsigned int nr_irqs) in gic_irq_domain_free() argument 592 unsigned int nr_irqs, void *arg) in gic_ipi_domain_alloc() argument 603 for (i = base_hwirq; i < nr_irqs; i++) { in gic_ipi_domain_alloc() 607 bitmap_clear(ipi_available, base_hwirq, nr_irqs); in gic_ipi_domain_alloc() 639 bitmap_set(ipi_available, base_hwirq, nr_irqs); in gic_ipi_domain_alloc() 644 unsigned int nr_irqs) in gic_ipi_domain_free() argument 654 bitmap_set(ipi_available, base_hwirq, nr_irqs); in gic_ipi_domain_free()
|
D | irq-partition-percpu.c | 139 unsigned int nr_irqs, void *arg) in partition_domain_alloc() argument 147 BUG_ON(nr_irqs != 1); in partition_domain_alloc() 166 unsigned int nr_irqs) in partition_domain_free() argument 170 BUG_ON(nr_irqs != 1); in partition_domain_free()
|
D | irq-mvebu-gicp.c | 81 unsigned int nr_irqs, void *args) in gicp_irq_domain_alloc() argument 121 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicp_irq_domain_alloc() 130 unsigned int virq, unsigned int nr_irqs) in gicp_irq_domain_free() argument 140 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicp_irq_domain_free()
|
/drivers/pci/controller/ |
D | pcie-iproc-msi.c | 97 int nr_irqs; member 148 return (hwirq % msi->nr_irqs); in hwirq_to_group() 247 unsigned int virq, unsigned int nr_irqs, in iproc_msi_irq_domain_alloc() argument 253 if (msi->nr_cpus > 1 && nr_irqs > 1) in iproc_msi_irq_domain_alloc() 263 order_base_2(msi->nr_cpus * nr_irqs)); in iproc_msi_irq_domain_alloc() 270 for (i = 0; i < nr_irqs; i++) { in iproc_msi_irq_domain_alloc() 281 unsigned int virq, unsigned int nr_irqs) in iproc_msi_irq_domain_free() argument 291 order_base_2(msi->nr_cpus * nr_irqs)); in iproc_msi_irq_domain_free() 295 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in iproc_msi_irq_domain_free() 412 for (eq = 0; eq < msi->nr_irqs; eq++) { in iproc_msi_enable() [all …]
|
/drivers/iommu/ |
D | hyperv-iommu.c | 69 unsigned int virq, unsigned int nr_irqs, in hyperv_irq_remapping_alloc() argument 77 if (!info || info->type != X86_IRQ_ALLOC_TYPE_IOAPIC || nr_irqs > 1) in hyperv_irq_remapping_alloc() 80 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in hyperv_irq_remapping_alloc() 86 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_alloc() 117 unsigned int virq, unsigned int nr_irqs) in hyperv_irq_remapping_free() argument 119 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_free()
|
/drivers/dma/dw-edma/ |
D | dw-edma-pcie.c | 72 int err, nr_irqs; in dw_edma_pcie_probe() local 128 nr_irqs = pci_alloc_irq_vectors(pdev, 1, pdata->irqs, in dw_edma_pcie_probe() 130 if (nr_irqs < 1) { in dw_edma_pcie_probe() 132 nr_irqs); in dw_edma_pcie_probe() 162 dw->nr_irqs = nr_irqs; in dw_edma_pcie_probe() 183 pci_dbg(pdev, "Nr. IRQs:\t%u\n", dw->nr_irqs); in dw_edma_pcie_probe() 191 dw->irq = devm_kcalloc(dev, nr_irqs, sizeof(*dw->irq), GFP_KERNEL); in dw_edma_pcie_probe()
|
D | dw-edma-core.c | 683 for (j = 0; (alloc || dw->nr_irqs == 1) && j < cnt; j++, i++) { in dw_edma_channel_setup() 708 if (dw->nr_irqs == 1) in dw_edma_channel_setup() 773 static inline void dw_edma_dec_irq_alloc(int *nr_irqs, u32 *alloc, u16 cnt) in dw_edma_dec_irq_alloc() argument 775 if (*nr_irqs && *alloc < cnt) { in dw_edma_dec_irq_alloc() 777 (*nr_irqs)--; in dw_edma_dec_irq_alloc() 800 if (dw->nr_irqs < 1) in dw_edma_irq_request() 803 if (dw->nr_irqs == 1) { in dw_edma_irq_request() 809 dw->nr_irqs = 0; in dw_edma_irq_request() 817 int tmp = dw->nr_irqs; in dw_edma_irq_request() 836 dw->nr_irqs = i; in dw_edma_irq_request() [all …]
|
/drivers/fpga/ |
D | dfl.c | 400 if (feature->nr_irqs) { in dfl_dev_add() 401 ddev->irqs = kcalloc(feature->nr_irqs, in dfl_dev_add() 408 for (i = 0; i < feature->nr_irqs; i++) in dfl_dev_add() 411 ddev->num_irqs = feature->nr_irqs; in dfl_dev_add() 697 unsigned int nr_irqs; member 724 unsigned int nr_irqs; member 819 if (finfo->nr_irqs) { in build_info_commit_dev() 820 ctx = devm_kcalloc(binfo->dev, finfo->nr_irqs, in build_info_commit_dev() 825 for (i = 0; i < finfo->nr_irqs; i++) in build_info_commit_dev() 830 feature->nr_irqs = finfo->nr_irqs; in build_info_commit_dev() [all …]
|
/drivers/bus/mhi/host/ |
D | pci_generic.c | 220 mhi_cntrl->nr_irqs = 1 + mhi_cntrl_config->num_events; in mhi_pci_get_irqs() 222 nr_vectors = pci_alloc_irq_vectors(pdev, 1, mhi_cntrl->nr_irqs, PCI_IRQ_MSI); in mhi_pci_get_irqs() 229 if (nr_vectors < mhi_cntrl->nr_irqs) { in mhi_pci_get_irqs() 234 irq = devm_kcalloc(&pdev->dev, mhi_cntrl->nr_irqs, sizeof(int), GFP_KERNEL); in mhi_pci_get_irqs() 238 for (i = 0; i < mhi_cntrl->nr_irqs; i++) { in mhi_pci_get_irqs()
|