Home
last modified time | relevance | path

Searched refs:num_irqs (Results 1 – 25 of 175) sorted by relevance

1234567

/linux-6.6.21/drivers/ntb/test/
Dntb_msi_test.c15 static int num_irqs = 4; variable
16 module_param(num_irqs, int, 0644);
17 MODULE_PARM_DESC(num_irqs, "number of irqs to use");
35 int num_irqs; member
72 for (i = 0; i < num_irqs; i++) { in ntb_msit_setup_work()
111 for (i = 0; i < num_irqs; i++) { in ntb_msit_desc_changed()
135 int irq_count = nm->peers[peer].num_irqs; in ntb_msit_copy_peer_desc()
173 nm->peers[peer].num_irqs = irq_count; in ntb_msit_db_event()
188 if (idx >= peer->num_irqs) in ntb_msit_dbgfs_trigger()
217 *count = peer->num_irqs; in ntb_msit_dbgfs_count_get()
[all …]
/linux-6.6.21/drivers/perf/
Darm_pmu_platform.c97 int i = 0, num_irqs; in pmu_parse_irqs() local
102 num_irqs = platform_irq_count(pdev); in pmu_parse_irqs()
103 if (num_irqs < 0) in pmu_parse_irqs()
104 return dev_err_probe(dev, num_irqs, "unable to count PMU IRQs\n"); in pmu_parse_irqs()
110 if (num_irqs == 0) { in pmu_parse_irqs()
117 if (num_irqs == 1) { in pmu_parse_irqs()
126 for (i = 0; i < num_irqs; i++) { in pmu_parse_irqs()
/linux-6.6.21/kernel/irq/
Dirq_sim.c165 unsigned int num_irqs) in irq_domain_create_sim() argument
173 work_ctx->pending = bitmap_zalloc(num_irqs, GFP_KERNEL); in irq_domain_create_sim()
177 work_ctx->domain = irq_domain_create_linear(fwnode, num_irqs, in irq_domain_create_sim()
183 work_ctx->irq_count = num_irqs; in irq_domain_create_sim()
235 unsigned int num_irqs) in devm_irq_domain_create_sim() argument
240 domain = irq_domain_create_sim(fwnode, num_irqs); in devm_irq_domain_create_sim()
/linux-6.6.21/drivers/irqchip/
Dirq-aspeed-scu-ic.c40 unsigned int num_irqs; member
74 max = scu_ic->num_irqs + bit; in aspeed_scu_ic_irq_handler()
168 scu_ic->irq_domain = irq_domain_add_linear(node, scu_ic->num_irqs, in aspeed_scu_ic_of_init_common()
197 scu_ic->num_irqs = ASPEED_SCU_IC_NUM_IRQS; in aspeed_scu_ic_of_init()
213 scu_ic->num_irqs = ASPEED_AST2600_SCU_IC0_NUM_IRQS; in aspeed_ast2600_scu_ic0_of_init()
229 scu_ic->num_irqs = ASPEED_AST2600_SCU_IC1_NUM_IRQS; in aspeed_ast2600_scu_ic1_of_init()
Dirq-loongson-pch-msi.c24 u32 num_irqs; /* The number of vectors for MSIs */ member
56 first = bitmap_find_free_region(priv->msi_map, priv->num_irqs, in pch_msi_allocate_hwirq()
166 middle_domain = irq_domain_create_hierarchy(parent, 0, priv->num_irqs, in pch_msi_init_domains()
203 priv->num_irqs = irq_count; in pch_msi_init()
205 priv->msi_map = bitmap_zalloc(priv->num_irqs, GFP_KERNEL); in pch_msi_init()
210 priv->num_irqs, priv->irq_first); in pch_msi_init()
Dirq-davinci-cp-intc.c162 unsigned int num_regs = BITS_TO_LONGS(config->num_irqs); in davinci_cp_intc_do_init()
204 num_regs = (config->num_irqs + 3) >> 2; /* 4 channels per register */ in davinci_cp_intc_do_init()
209 irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); in davinci_cp_intc_do_init()
217 node, config->num_irqs, irq_base, 0, in davinci_cp_intc_do_init()
251 ret = of_property_read_u32(node, "ti,intc-size", &config.num_irqs); in davinci_cp_intc_of_init()
/linux-6.6.21/drivers/mfd/
Dsprd-sc27xx-spi.c49 u32 num_irqs; member
60 .num_irqs = SPRD_SC2730_IRQ_NUMS,
66 .num_irqs = SPRD_SC2731_IRQ_NUMS,
187 ddata->irq_chip.num_irqs = pdata->num_irqs; in sprd_pmic_probe()
190 pdata->num_irqs, sizeof(struct regmap_irq), in sprd_pmic_probe()
196 for (i = 0; i < pdata->num_irqs; i++) in sprd_pmic_probe()
Dmax77541.c30 .num_irqs = ARRAY_SIZE(max77541_src_irqs),
48 .num_irqs = ARRAY_SIZE(max77541_topsys_irqs),
64 .num_irqs = ARRAY_SIZE(max77541_buck_irqs),
80 .num_irqs = ARRAY_SIZE(max77541_adc_irqs),
Dintel_soc_pmic_bxtwc.c146 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs),
155 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_pwrbtn),
164 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_tmu),
173 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_bcu),
182 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_adc),
191 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_chgr),
200 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_crit),
Dsec-irq.c302 .num_irqs = ARRAY_SIZE(s2mps11_irqs),
311 .num_irqs = ARRAY_SIZE(s2mps14_irqs), \
335 .num_irqs = ARRAY_SIZE(s2mpu02_irqs),
345 .num_irqs = ARRAY_SIZE(s5m8767_irqs),
Dstmpe.c425 .num_irqs = STMPE801_NR_INTERNAL_IRQS,
589 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
604 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
660 .num_irqs = STMPE1600_NR_INTERNAL_IRQS,
824 .num_irqs = STMPE1601_NR_INTERNAL_IRQS,
933 .num_irqs = STMPE1801_NR_INTERNAL_IRQS,
1039 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1053 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1084 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq()
1143 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq_sync_unlock()
[all …]
Dmax77693.c71 .num_irqs = ARRAY_SIZE(max77693_led_irqs),
86 .num_irqs = ARRAY_SIZE(max77693_topsys_irqs),
103 .num_irqs = ARRAY_SIZE(max77693_charger_irqs),
139 .num_irqs = ARRAY_SIZE(max77693_muic_irqs),
Dqcom-pm8xxx.c66 int num_irqs; member
490 .num_irqs = PM8XXX_NR_IRQS,
496 .num_irqs = PM8821_NR_IRQS,
550 struct_size(chip, config, data->num_irqs), in pm8xxx_probe()
557 chip->num_blocks = DIV_ROUND_UP(data->num_irqs, 8); in pm8xxx_probe()
563 data->num_irqs, in pm8xxx_probe()
/linux-6.6.21/include/linux/
Dirq_sim.h20 unsigned int num_irqs);
23 unsigned int num_irqs);
/linux-6.6.21/drivers/power/supply/
Dlp8788-charger.c109 int num_irqs; member
430 for (i = 0; i < pchg->num_irqs; i++) { in lp8788_find_irq_id()
495 nr_irq = pchg->num_irqs; in lp8788_set_irqs()
500 pchg->num_irqs++; in lp8788_set_irqs()
515 for (i = 0; i < pchg->num_irqs; i++) in lp8788_set_irqs()
530 pchg->num_irqs = 0; in lp8788_irq_register()
540 if (pchg->num_irqs > LP8788_MAX_CHG_IRQS) { in lp8788_irq_register()
542 pchg->num_irqs); in lp8788_irq_register()
556 for (i = 0; i < pchg->num_irqs; i++) { in lp8788_irq_unregister()
Daxp20x_ac_power.c47 unsigned int num_irqs; member
298 while (i < power->num_irqs) in axp20x_ac_power_suspend()
311 while (i < power->num_irqs) in axp20x_ac_power_resume()
363 power->num_irqs = axp_data->num_irq_names; in axp20x_ac_power_probe()
/linux-6.6.21/drivers/media/platform/verisilicon/
Drockchip_vpu_hw.c667 .num_irqs = ARRAY_SIZE(rockchip_vdpu1_irqs),
692 .num_irqs = ARRAY_SIZE(rockchip_vpu1_irqs),
712 .num_irqs = ARRAY_SIZE(rockchip_vpu1_irqs),
728 .num_irqs = ARRAY_SIZE(rockchip_vdpu2_irqs),
750 .num_irqs = ARRAY_SIZE(rockchip_vpu2_irqs),
763 .num_irqs = ARRAY_SIZE(rk3568_vepu_irqs),
777 .num_irqs = ARRAY_SIZE(rockchip_vdpu2_irqs),
794 .num_irqs = ARRAY_SIZE(rockchip_vpu2_irqs),
810 .num_irqs = ARRAY_SIZE(rk3588_vpu981_irqs),
Dimx8m_vpu_hw.c355 .num_irqs = ARRAY_SIZE(imx8mq_irqs),
372 .num_irqs = ARRAY_SIZE(imx8mq_irqs),
387 .num_irqs = ARRAY_SIZE(imx8mq_g2_irqs),
399 .num_irqs = ARRAY_SIZE(imx8mq_irqs),
/linux-6.6.21/arch/sparc/kernel/
Dof_device_64.c654 op->archdata.num_irqs = len / 4; in scan_one_device()
657 if (op->archdata.num_irqs > PROMINTR_MAX) { in scan_one_device()
660 dp, op->archdata.num_irqs, PROMINTR_MAX); in scan_one_device()
661 op->archdata.num_irqs = PROMINTR_MAX; in scan_one_device()
663 memcpy(op->archdata.irqs, irq, op->archdata.num_irqs * 4); in scan_one_device()
665 op->archdata.num_irqs = 0; in scan_one_device()
669 for (i = 0; i < op->archdata.num_irqs; i++) in scan_one_device()
Dof_device_32.c358 op->archdata.num_irqs = len / sizeof(struct linux_prom_irqs); in scan_one_device()
359 for (i = 0; i < op->archdata.num_irqs; i++) in scan_one_device()
367 op->archdata.num_irqs = len / sizeof(unsigned int); in scan_one_device()
368 for (i = 0; i < op->archdata.num_irqs; i++) in scan_one_device()
372 op->archdata.num_irqs = 0; in scan_one_device()
/linux-6.6.21/drivers/misc/bcm-vk/
Dbcm_vk_dev.c1367 for (vk->num_irqs = 0; in bcm_vk_probe()
1368 vk->num_irqs < VK_MSIX_MSGQ_MAX; in bcm_vk_probe()
1369 vk->num_irqs++) { in bcm_vk_probe()
1370 err = devm_request_irq(dev, pci_irq_vector(pdev, vk->num_irqs), in bcm_vk_probe()
1375 pdev->irq + vk->num_irqs, vk->num_irqs + 1); in bcm_vk_probe()
1380 err = devm_request_irq(dev, pci_irq_vector(pdev, vk->num_irqs), in bcm_vk_probe()
1385 pdev->irq + vk->num_irqs, vk->num_irqs + 1); in bcm_vk_probe()
1388 vk->num_irqs++; in bcm_vk_probe()
1391 (i < VK_MSIX_TTY_MAX) && (vk->num_irqs < irq); in bcm_vk_probe()
1392 i++, vk->num_irqs++) { in bcm_vk_probe()
[all …]
/linux-6.6.21/drivers/scsi/cxlflash/
Docxl_hw.c189 if (num < 0 || num >= ctx->num_irqs) { in afu_map_irq()
258 if (num < 0 || num >= ctx->num_irqs) { in afu_unmap_irq()
295 if (irq < 0 || irq >= ctx->num_irqs) in ocxlflash_get_irq_objhndl()
601 for (i = ctx->num_irqs; i >= 0; i--) in free_afu_irqs()
655 ctx->num_irqs = num; in alloc_afu_irqs()
1069 bit = find_first_bit(&ctx->irq_bitmap, ctx->num_irqs); in afu_read()
1072 if (bitmap_empty(&ctx->irq_bitmap, ctx->num_irqs)) in afu_read()
1112 for (i = ctx->num_irqs; i >= 0; i--) in afu_release()
1281 for (i = 0; i < ctx->num_irqs; i++) { in ocxlflash_afu_irq()
1285 if (unlikely(i >= ctx->num_irqs)) { in ocxlflash_afu_irq()
[all …]
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c87 unsigned int num_irqs; in nfp_netvf_pci_probe() local
254 num_irqs = nfp_net_irqs_alloc(pdev, vf->irq_entries, in nfp_netvf_pci_probe()
258 if (!num_irqs) { in nfp_netvf_pci_probe()
263 nfp_net_irqs_assign(nn, vf->irq_entries, num_irqs); in nfp_netvf_pci_probe()
/linux-6.6.21/drivers/iio/adc/
Dstm32-adc-core.c80 unsigned int num_irqs; member
417 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
431 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
449 for (i = 0; i < priv->cfg->num_irqs; i++) in stm32_adc_irq_remove()
866 .num_irqs = 1,
875 .num_irqs = 1,
885 .num_irqs = 2,
893 .num_irqs = 1,
/linux-6.6.21/drivers/net/wireless/ti/wlcore/
Dsdio.c264 int irq, wakeirq, num_irqs; in wl1271_probe() local
338 num_irqs = 2; in wl1271_probe()
340 num_irqs = 1; in wl1271_probe()
342 ret = platform_device_add_resources(glue->core, res, num_irqs); in wl1271_probe()

1234567