Home
last modified time | relevance | path

Searched refs:nr_irqs (Results 1 – 25 of 265) sorted by relevance

1234567891011

/Linux-v5.10/drivers/irqchip/
Dirq-mmp.c39 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 …]
Dspear-shirq.c47 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 …]
Dirq-hip04.c56 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 …]
Dirq-ixp4xx.c154 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 …]
Dirq-armada-370-xp.c230 unsigned int nr_irqs, void *args) in armada_370_xp_msi_alloc() argument
237 0, nr_irqs, 0); in armada_370_xp_msi_alloc()
243 bitmap_set(msi_used, hwirq, nr_irqs); in armada_370_xp_msi_alloc()
246 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_msi_alloc()
257 unsigned int virq, unsigned int nr_irqs) in armada_370_xp_msi_free() argument
262 bitmap_clear(msi_used, d->hwirq, nr_irqs); in armada_370_xp_msi_free()
377 unsigned int nr_irqs, void *args) in armada_370_xp_ipi_alloc() argument
381 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_ipi_alloc()
394 unsigned int nr_irqs) in armada_370_xp_ipi_free() argument
468 int nr_irqs, i; in armada_xp_mpic_smp_cpu_init() local
[all …]
Dirq-gic-v3-mbi.c76 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()
Dirq-mst-intc.c22 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()
Dirq-loongson-pch-msi.c113 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()
Dirq-alpine-msi.c147 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()
170 alpine_msix_free_sgi(priv, sgi, nr_irqs); in alpine_msix_middle_domain_alloc()
176 unsigned int nr_irqs) in alpine_msix_middle_domain_free() argument
181 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in alpine_msix_middle_domain_free()
182 alpine_msix_free_sgi(priv, d->hwirq, nr_irqs); in alpine_msix_middle_domain_free()
Dirq-sifive-plic.c192 unsigned int nr_irqs, void *arg) in plic_irq_domain_alloc() argument
203 for (i = 0; i < nr_irqs; i++) { in plic_irq_domain_alloc()
280 u32 nr_irqs; in plic_init() local
295 of_property_read_u32(node, "riscv,ndev", &nr_irqs); in plic_init()
296 if (WARN_ON(!nr_irqs)) in plic_init()
304 priv->irqdomain = irq_domain_add_linear(node, nr_irqs + 1, in plic_init()
367 for (hwirq = 1; hwirq <= nr_irqs; hwirq++) in plic_init()
385 " %d contexts.\n", node, nr_irqs, nr_handlers, nr_contexts); in plic_init()
Dirq-gic-v2m.c169 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()
/Linux-v5.10/drivers/pci/controller/
Dpcie-iproc-msi.c97 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
267 for (i = 0; i < nr_irqs; i++) { in iproc_msi_irq_domain_alloc()
278 unsigned int virq, unsigned int nr_irqs) in iproc_msi_irq_domain_free() argument
291 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in iproc_msi_irq_domain_free()
408 for (eq = 0; eq < msi->nr_irqs; eq++) { in iproc_msi_enable()
430 for (eq = 0; eq < msi->nr_irqs; eq++) { in iproc_msi_disable()
476 for (i = cpu; i < msi->nr_irqs; i += msi->nr_cpus) { in iproc_msi_irq_free()
488 for (i = cpu; i < msi->nr_irqs; i += msi->nr_cpus) { in iproc_msi_irq_setup()
[all …]
/Linux-v5.10/kernel/irq/
Dipi.c26 unsigned int nr_irqs, offset; in irq_reserve_ipi() local
40 nr_irqs = cpumask_weight(dest); in irq_reserve_ipi()
41 if (!nr_irqs) { in irq_reserve_ipi()
53 nr_irqs = 1; in irq_reserve_ipi()
78 virq = irq_domain_alloc_descs(-1, nr_irqs, 0, NUMA_NO_NODE, NULL); in irq_reserve_ipi()
84 virq = __irq_domain_alloc_irqs(domain, virq, nr_irqs, NUMA_NO_NODE, in irq_reserve_ipi()
92 for (i = 0; i < nr_irqs; i++) { in irq_reserve_ipi()
101 irq_free_descs(virq, nr_irqs); in irq_reserve_ipi()
120 unsigned int nr_irqs; in irq_destroy_ipi() local
143 nr_irqs = cpumask_weight(dest); in irq_destroy_ipi()
[all …]
Dirqdomain.c1025 hint = hwirq % nr_irqs; in irq_domain_alloc_descs()
1153 static void irq_domain_free_irq_data(unsigned int virq, unsigned int nr_irqs) in irq_domain_free_irq_data() argument
1158 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irq_data()
1244 unsigned int virq, unsigned int nr_irqs) in irq_domain_alloc_irq_data() argument
1251 for (i = 0; i < nr_irqs; i++) { in irq_domain_alloc_irq_data()
1340 unsigned int nr_irqs) in irq_domain_free_irqs_common() argument
1345 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irqs_common()
1350 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in irq_domain_free_irqs_common()
1361 unsigned int nr_irqs) in irq_domain_free_irqs_top() argument
1365 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irqs_top()
[all …]
Dirqdesc.c130 int nr_irqs = NR_IRQS; variable
131 EXPORT_SYMBOL_GPL(nr_irqs);
515 nr_irqs = nr; in irq_expand_nr_irqs()
529 NR_IRQS, nr_irqs, initcnt); in early_irq_init()
531 if (WARN_ON(nr_irqs > IRQ_BITMAP_BITS)) in early_irq_init()
532 nr_irqs = IRQ_BITMAP_BITS; in early_irq_init()
537 if (initcnt > nr_irqs) in early_irq_init()
538 nr_irqs = initcnt; in early_irq_init()
683 if (unlikely(!irq || irq >= nr_irqs)) { in __handle_domain_irq()
746 if (from >= nr_irqs || (from + cnt) > nr_irqs) in irq_free_descs()
[all …]
/Linux-v5.10/include/linux/
Dirqnr.h8 extern int nr_irqs;
13 for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
21 for (irq = nr_irqs - 1, desc = irq_to_desc(irq); irq >= 0; \
28 for (irq = irq_get_next_irq(0); irq < nr_irqs; \
32 for (irq = 0; irq < nr_irqs; irq++)
Dirqdomain.h118 unsigned int nr_irqs, void *arg);
120 unsigned int nr_irqs);
279 extern int irq_domain_alloc_descs(int virq, unsigned int nr_irqs,
482 unsigned int nr_irqs, int node, void *arg,
485 extern void irq_domain_free_irqs(unsigned int virq, unsigned int nr_irqs);
490 unsigned int nr_irqs, int node, void *arg) in irq_domain_alloc_irqs() argument
492 return __irq_domain_alloc_irqs(domain, -1, nr_irqs, node, arg, false, in irq_domain_alloc_irqs()
498 unsigned int nr_irqs, void *arg);
506 unsigned int nr_irqs);
508 unsigned int virq, unsigned int nr_irqs);
[all …]
/Linux-v5.10/drivers/iommu/
Dhyperv-iommu.c69 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()
/Linux-v5.10/arch/arm/kernel/
Dirq.c103 nr_irqs = machine_desc->nr_irqs ? machine_desc->nr_irqs : NR_IRQS; in arch_probe_nr_irqs()
104 return nr_irqs; in arch_probe_nr_irqs()
/Linux-v5.10/drivers/dma/dw-edma/
Ddw-edma-pcie.c72 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()
/Linux-v5.10/arch/x86/platform/uv/
Duv_irq.c76 unsigned int nr_irqs, void *arg) in uv_domain_alloc() argument
83 if (nr_irqs > 1 || !info || info->type != X86_IRQ_ALLOC_TYPE_UV) in uv_domain_alloc()
91 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in uv_domain_alloc()
110 unsigned int nr_irqs) in uv_domain_free() argument
114 BUG_ON(nr_irqs != 1); in uv_domain_free()
118 irq_domain_free_irqs_top(domain, virq, nr_irqs); in uv_domain_free()
/Linux-v5.10/drivers/fpga/
Ddfl.c400 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 …]
/Linux-v5.10/arch/alpha/kernel/
Dsys_cabriolet.c331 .nr_irqs = 35,
357 .nr_irqs = 35,
382 .nr_irqs = 35,
407 .nr_irqs = 35,
432 .nr_irqs = 35,
Dsys_sio.c342 .nr_irqs = 16,
372 .nr_irqs = 16,
401 .nr_irqs = 16,
439 .nr_irqs = 16,
468 .nr_irqs = 16,
/Linux-v5.10/arch/arm/mach-omap1/
Dirq.c197 unsigned long nr_irqs; in omap1_init_irq() local
228 nr_irqs = irq_bank_count * 32; in omap1_init_irq()
230 irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0); in omap1_init_irq()
238 domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0, in omap1_init_irq()
242 nr_irqs, irq_bank_count); in omap1_init_irq()

1234567891011