/linux-6.1.9/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, 158 .nr_irqs = 3, 166 .nr_irqs = 1, 174 .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() 355 int nr_irqs, irq_base, i; in hip04_of_init() local 377 nr_irqs = readl_relaxed(hip04_data.dist_base + GIC_DIST_CTR) & 0x1f; in hip04_of_init() 378 nr_irqs = (nr_irqs + 1) * 32; in hip04_of_init() 379 if (nr_irqs > HIP04_MAX_IRQS) in hip04_of_init() 380 nr_irqs = HIP04_MAX_IRQS; in hip04_of_init() 381 hip04_data.nr_irqs = nr_irqs; in hip04_of_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 | 30 unsigned int irq_start, nr_irqs; member 133 for (i = 0; i < DIV_ROUND_UP(cd->nr_irqs, 16); i++) in mst_intc_polarity_save() 142 for (i = 0; i < DIV_ROUND_UP(cd->nr_irqs, 16); i++) in mst_intc_polarity_restore() 191 if (fwspec->param[1] >= cd->nr_irqs) in mst_intc_domain_translate() 203 unsigned int nr_irqs, void *data) in mst_intc_domain_alloc() argument 219 for (i = 0; i < nr_irqs; i++) in mst_intc_domain_alloc() 236 return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_fwspec); in mst_intc_domain_alloc() 275 cd->nr_irqs = irq_end - irq_start + 1; in mst_intc_of_init() 276 domain = irq_domain_add_hierarchy(domain_parent, 0, cd->nr_irqs, dn, in mst_intc_of_init()
|
D | irq-armada-370-xp.c | 244 unsigned int nr_irqs, void *args) in armada_370_xp_msi_alloc() argument 250 order_base_2(nr_irqs)); in armada_370_xp_msi_alloc() 256 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_msi_alloc() 267 unsigned int virq, unsigned int nr_irqs) in armada_370_xp_msi_free() argument 272 bitmap_release_region(msi_used, d->hwirq, order_base_2(nr_irqs)); in armada_370_xp_msi_free() 401 unsigned int nr_irqs, void *args) in armada_370_xp_ipi_alloc() argument 405 for (i = 0; i < nr_irqs; i++) { in armada_370_xp_ipi_alloc() 418 unsigned int nr_irqs) in armada_370_xp_ipi_free() argument 492 int nr_irqs, i; in armada_xp_mpic_smp_cpu_init() local 495 nr_irqs = (control >> 2) & 0x3ff; in armada_xp_mpic_smp_cpu_init() [all …]
|
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-loongson-pch-msi.c | 117 unsigned int nr_irqs, void *args) in pch_msi_middle_domain_alloc() argument 122 hwirq = pch_msi_allocate_hwirq(priv, nr_irqs); in pch_msi_middle_domain_alloc() 126 for (i = 0; i < nr_irqs; i++) { in pch_msi_middle_domain_alloc() 138 pch_msi_free_hwirq(priv, hwirq, nr_irqs); in pch_msi_middle_domain_alloc() 146 unsigned int nr_irqs) in pch_msi_middle_domain_free() argument 151 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in pch_msi_middle_domain_free() 152 pch_msi_free_hwirq(priv, d->hwirq, nr_irqs); in pch_msi_middle_domain_free()
|
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() 210 int nr_irqs; in ixp4xx_irq_setup() local 228 nr_irqs = 64; in ixp4xx_irq_setup() 230 nr_irqs = 32; in ixp4xx_irq_setup() 238 ixi->domain = irq_domain_create_linear(fwnode, nr_irqs, in ixp4xx_irq_setup()
|
D | irq-sifive-plic.c | 256 unsigned int nr_irqs, void *arg) in plic_irq_domain_alloc() argument 267 for (i = 0; i < nr_irqs; i++) { in plic_irq_domain_alloc() 343 u32 nr_irqs; in __plic_init() local 360 of_property_read_u32(node, "riscv,ndev", &nr_irqs); in __plic_init() 361 if (WARN_ON(!nr_irqs)) in __plic_init() 369 priv->irqdomain = irq_domain_add_linear(node, nr_irqs + 1, in __plic_init() 396 for (hwirq = 1; hwirq <= nr_irqs; hwirq++) in __plic_init() 443 for (hwirq = 1; hwirq <= nr_irqs; hwirq++) { in __plic_init() 464 " %d contexts.\n", node, nr_irqs, nr_handlers, nr_contexts); in __plic_init()
|
D | irq-gic-v2m.c | 168 int nr_irqs) in gicv2m_unalloc_msi() argument 172 get_count_order(nr_irqs)); in gicv2m_unalloc_msi() 177 unsigned int nr_irqs, void *args) in gicv2m_irq_domain_alloc() argument 186 get_count_order(nr_irqs)); in gicv2m_irq_domain_alloc() 204 for (i = 0; i < nr_irqs; i++) { in gicv2m_irq_domain_alloc() 216 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicv2m_irq_domain_alloc() 217 gicv2m_unalloc_msi(v2m, hwirq, nr_irqs); in gicv2m_irq_domain_alloc() 222 unsigned int virq, unsigned int nr_irqs) in gicv2m_irq_domain_free() argument 227 gicv2m_unalloc_msi(v2m, d->hwirq, nr_irqs); in gicv2m_irq_domain_free() 228 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in gicv2m_irq_domain_free()
|
/linux-6.1.9/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() 410 for (eq = 0; eq < msi->nr_irqs; eq++) { in iproc_msi_enable() [all …]
|
/linux-6.1.9/drivers/iommu/ |
D | hyperv-iommu.c | 66 unsigned int virq, unsigned int nr_irqs, in hyperv_irq_remapping_alloc() argument 73 if (!info || info->type != X86_IRQ_ALLOC_TYPE_IOAPIC || nr_irqs > 1) in hyperv_irq_remapping_alloc() 76 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in hyperv_irq_remapping_alloc() 82 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_alloc() 98 unsigned int virq, unsigned int nr_irqs) in hyperv_irq_remapping_free() argument 100 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_free() 268 unsigned int virq, unsigned int nr_irqs, in hyperv_root_irq_remapping_alloc() argument 276 if (!info || info->type != X86_IRQ_ALLOC_TYPE_IOAPIC || nr_irqs > 1) in hyperv_root_irq_remapping_alloc() 279 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in hyperv_root_irq_remapping_alloc() 285 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_root_irq_remapping_alloc() [all …]
|
/linux-6.1.9/kernel/irq/ |
D | ipi.c | 26 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 144 nr_irqs = cpumask_weight(dest); in irq_destroy_ipi() [all …]
|
D | irqdomain.c | 1053 hint = hwirq % nr_irqs; in irq_domain_alloc_descs() 1181 static void irq_domain_free_irq_data(unsigned int virq, unsigned int nr_irqs) in irq_domain_free_irq_data() argument 1186 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irq_data() 1273 unsigned int virq, unsigned int nr_irqs) in irq_domain_alloc_irq_data() argument 1280 for (i = 0; i < nr_irqs; i++) { in irq_domain_alloc_irq_data() 1370 unsigned int nr_irqs) in irq_domain_free_irqs_common() argument 1375 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irqs_common() 1380 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in irq_domain_free_irqs_common() 1391 unsigned int nr_irqs) in irq_domain_free_irqs_top() argument 1395 for (i = 0; i < nr_irqs; i++) { in irq_domain_free_irqs_top() [all …]
|
/linux-6.1.9/include/linux/ |
D | irqnr.h | 8 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++)
|
D | irqdomain.h | 120 unsigned int nr_irqs, void *arg); 122 unsigned int nr_irqs); 294 extern int irq_domain_alloc_descs(int virq, unsigned int nr_irqs, 506 unsigned int nr_irqs, int node, void *arg, 509 extern void irq_domain_free_irqs(unsigned int virq, unsigned int nr_irqs); 514 unsigned int nr_irqs, int node, void *arg) in irq_domain_alloc_irqs() argument 516 return __irq_domain_alloc_irqs(domain, -1, nr_irqs, node, arg, false, in irq_domain_alloc_irqs() 522 unsigned int nr_irqs, void *arg); 530 unsigned int nr_irqs); 532 unsigned int virq, unsigned int nr_irqs); [all …]
|
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/ |
D | vgic_irq.c | 31 uint32_t nr_irqs; /* number of KVM supported IRQs. */ member 242 for (i = 0; i < args->nr_irqs; i++) in reset_priorities() 418 uint32_t nr_irqs = args->nr_irqs; in test_injection() local 430 guest_inject(args, nr_irqs - 1, 1, f->cmd); in test_injection() 431 guest_inject(args, MIN_SPI, nr_irqs - MIN_SPI, f->cmd); in test_injection() 438 uint32_t bad_intid[] = { args->nr_irqs, 1020, 1024, 1120, 5120, ~0U, }; in test_injection_failure() 478 uint32_t i, nr_irqs = args->nr_irqs; in guest_code() local 484 for (i = 0; i < nr_irqs; i++) in guest_code() 487 for (i = MIN_SPI; i < nr_irqs; i++) in guest_code() 735 args->nr_irqs, args->level_sensitive, in print_args() [all …]
|
/linux-6.1.9/arch/arm/mach-ep93xx/ |
D | edb93xx.c | 246 .nr_irqs = NR_EP93XX_IRQS, 259 .nr_irqs = NR_EP93XX_IRQS, 272 .nr_irqs = NR_EP93XX_IRQS, 285 .nr_irqs = NR_EP93XX_IRQS, 298 .nr_irqs = NR_EP93XX_IRQS, 311 .nr_irqs = NR_EP93XX_IRQS, 324 .nr_irqs = NR_EP93XX_IRQS, 337 .nr_irqs = NR_EP93XX_IRQS,
|
D | micro9.c | 79 .nr_irqs = NR_EP93XX_IRQS, 92 .nr_irqs = NR_EP93XX_IRQS, 105 .nr_irqs = NR_EP93XX_IRQS, 118 .nr_irqs = NR_EP93XX_IRQS,
|
/linux-6.1.9/arch/arm/kernel/ |
D | irq.c | 113 if (unlikely(!irq || irq >= nr_irqs)) in handle_IRQ() 153 nr_irqs = machine_desc->nr_irqs ? machine_desc->nr_irqs : NR_IRQS; in arch_probe_nr_irqs() 154 return nr_irqs; in arch_probe_nr_irqs()
|
/linux-6.1.9/arch/x86/platform/uv/ |
D | uv_irq.c | 76 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-6.1.9/drivers/fpga/ |
D | dfl.c | 399 if (feature->nr_irqs) { in dfl_dev_add() 400 ddev->irqs = kcalloc(feature->nr_irqs, in dfl_dev_add() 407 for (i = 0; i < feature->nr_irqs; i++) in dfl_dev_add() 410 ddev->num_irqs = feature->nr_irqs; in dfl_dev_add() 696 unsigned int nr_irqs; member 724 unsigned int nr_irqs; member 820 if (finfo->nr_irqs) { in build_info_commit_dev() 821 ctx = devm_kcalloc(binfo->dev, finfo->nr_irqs, in build_info_commit_dev() 826 for (i = 0; i < finfo->nr_irqs; i++) in build_info_commit_dev() 831 feature->nr_irqs = finfo->nr_irqs; in build_info_commit_dev() [all …]
|
/linux-6.1.9/arch/alpha/kernel/ |
D | sys_cabriolet.c | 331 .nr_irqs = 35, 357 .nr_irqs = 35, 382 .nr_irqs = 35, 407 .nr_irqs = 35, 432 .nr_irqs = 35,
|
/linux-6.1.9/arch/arm/mach-omap1/ |
D | irq.c | 195 unsigned long nr_irqs; in omap1_init_irq() local 226 nr_irqs = irq_bank_count * 32; in omap1_init_irq() 228 irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0); in omap1_init_irq() 236 domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0, in omap1_init_irq() 240 nr_irqs, irq_bank_count); in omap1_init_irq()
|