Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/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-v5.15/drivers/perf/
Darm_pmu_platform.c98 int i = 0, num_irqs; in pmu_parse_irqs() local
103 num_irqs = platform_irq_count(pdev); in pmu_parse_irqs()
104 if (num_irqs < 0) in pmu_parse_irqs()
105 return dev_err_probe(dev, num_irqs, "unable to count PMU IRQs\n"); in pmu_parse_irqs()
111 if (num_irqs == 0) { in pmu_parse_irqs()
118 if (num_irqs == 1) { in pmu_parse_irqs()
127 for (i = 0; i < num_irqs; i++) { in pmu_parse_irqs()
/Linux-v5.15/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-v5.15/drivers/irqchip/
Dirq-aspeed-scu-ic.c39 unsigned int num_irqs; member
73 max = scu_ic->num_irqs + bit; in aspeed_scu_ic_irq_handler()
165 scu_ic->irq_domain = irq_domain_add_linear(node, scu_ic->num_irqs, in aspeed_scu_ic_of_init_common()
194 scu_ic->num_irqs = ASPEED_SCU_IC_NUM_IRQS; in aspeed_scu_ic_of_init()
210 scu_ic->num_irqs = ASPEED_AST2600_SCU_IC0_NUM_IRQS; in aspeed_ast2600_scu_ic0_of_init()
226 scu_ic->num_irqs = ASPEED_AST2600_SCU_IC1_NUM_IRQS; in aspeed_ast2600_scu_ic1_of_init()
Dirq-loongson-pch-msi.c22 u32 num_irqs; /* The number of vectors for MSIs */ member
52 first = bitmap_find_free_region(priv->msi_map, priv->num_irqs, in pch_msi_allocate_hwirq()
163 priv->num_irqs, in pch_msi_init_domains()
222 &priv->num_irqs)) { in pch_msi_init()
228 priv->msi_map = bitmap_zalloc(priv->num_irqs, GFP_KERNEL); in pch_msi_init()
235 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()
Dirq-davinci-aintc.c132 irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); in davinci_aintc_init()
140 config->num_irqs, irq_base, 0, in davinci_aintc_init()
157 irq_off < config->num_irqs; in davinci_aintc_init()
/Linux-v5.15/drivers/mfd/
Dsprd-sc27xx-spi.c46 u32 num_irqs; member
57 .num_irqs = SPRD_SC2731_IRQ_NUMS,
178 ddata->irq_chip.num_irqs = pdata->num_irqs; in sprd_pmic_probe()
182 pdata->num_irqs, sizeof(struct regmap_irq), in sprd_pmic_probe()
188 for (i = 0; i < pdata->num_irqs; i++) in sprd_pmic_probe()
Dintel_soc_pmic_bxtwc.c145 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs),
154 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_pwrbtn),
163 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_tmu),
172 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_bcu),
181 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_adc),
190 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_chgr),
199 .num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_crit),
Dsec-irq.c378 .num_irqs = ARRAY_SIZE(s2mps11_irqs),
387 .num_irqs = ARRAY_SIZE(s2mps14_irqs), \
411 .num_irqs = ARRAY_SIZE(s2mpu02_irqs),
421 .num_irqs = ARRAY_SIZE(s5m8767_irqs),
431 .num_irqs = ARRAY_SIZE(s5m8763_irqs),
Dstmpe.c431 .num_irqs = STMPE801_NR_INTERNAL_IRQS,
595 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
610 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
666 .num_irqs = STMPE1600_NR_INTERNAL_IRQS,
830 .num_irqs = STMPE1601_NR_INTERNAL_IRQS,
939 .num_irqs = STMPE1801_NR_INTERNAL_IRQS,
1045 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1059 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1090 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq()
1149 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq_sync_unlock()
[all …]
Dmax77693.c72 .num_irqs = ARRAY_SIZE(max77693_led_irqs),
88 .num_irqs = ARRAY_SIZE(max77693_topsys_irqs),
106 .num_irqs = ARRAY_SIZE(max77693_charger_irqs),
143 .num_irqs = ARRAY_SIZE(max77693_muic_irqs),
Dqcom-pm8xxx.c66 int num_irqs; member
494 .num_irqs = PM8XXX_NR_IRQS,
500 .num_irqs = PM8821_NR_IRQS,
558 struct_size(chip, config, data->num_irqs), in pm8xxx_probe()
565 chip->num_blocks = DIV_ROUND_UP(data->num_irqs, 8); in pm8xxx_probe()
571 data->num_irqs, in pm8xxx_probe()
/Linux-v5.15/include/linux/
Dirq_sim.h20 unsigned int num_irqs);
23 unsigned int num_irqs);
/Linux-v5.15/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.c48 unsigned int num_irqs; member
299 while (i < power->num_irqs) in axp20x_ac_power_suspend()
312 while (i < power->num_irqs) in axp20x_ac_power_resume()
364 power->num_irqs = axp_data->num_irq_names; in axp20x_ac_power_probe()
/Linux-v5.15/drivers/gpu/drm/via/
Dvia_irq.c134 for (i = 0; i < dev_priv->num_irqs; ++i) { in via_driver_irq_handler()
274 dev_priv->num_irqs = via_num_pro_group_a; in via_driver_irq_preinstall()
278 dev_priv->num_irqs = via_num_unichrome; in via_driver_irq_preinstall()
282 for (i = 0; i < dev_priv->num_irqs; ++i) { in via_driver_irq_preinstall()
354 if (irqwait->request.irq >= dev_priv->num_irqs) { in via_wait_irq()
/Linux-v5.15/drivers/staging/media/hantro/
Drockchip_vpu_hw.c468 .num_irqs = ARRAY_SIZE(rockchip_vdpu1_irqs),
493 .num_irqs = ARRAY_SIZE(rockchip_vpu1_irqs),
513 .num_irqs = ARRAY_SIZE(rockchip_vpu1_irqs),
529 .num_irqs = ARRAY_SIZE(rockchip_vdpu2_irqs),
546 .num_irqs = ARRAY_SIZE(rockchip_vpu2_irqs),
563 .num_irqs = ARRAY_SIZE(rockchip_vpu2_irqs),
/Linux-v5.15/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-v5.15/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-v5.15/drivers/scsi/cxlflash/
Docxl_hw.c188 if (num < 0 || num >= ctx->num_irqs) { in afu_map_irq()
257 if (num < 0 || num >= ctx->num_irqs) { in afu_unmap_irq()
294 if (irq < 0 || irq >= ctx->num_irqs) in ocxlflash_get_irq_objhndl()
600 for (i = ctx->num_irqs; i >= 0; i--) in free_afu_irqs()
654 ctx->num_irqs = num; in alloc_afu_irqs()
1068 bit = find_first_bit(&ctx->irq_bitmap, ctx->num_irqs); in afu_read()
1071 if (bitmap_empty(&ctx->irq_bitmap, ctx->num_irqs)) in afu_read()
1111 for (i = ctx->num_irqs; i >= 0; i--) in afu_release()
1280 for (i = 0; i < ctx->num_irqs; i++) { in ocxlflash_afu_irq()
1284 if (unlikely(i >= ctx->num_irqs)) { in ocxlflash_afu_irq()
[all …]
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c74 unsigned int num_irqs; in nfp_netvf_pci_probe() local
238 num_irqs = nfp_net_irqs_alloc(pdev, vf->irq_entries, in nfp_netvf_pci_probe()
242 if (!num_irqs) { in nfp_netvf_pci_probe()
247 nfp_net_irqs_assign(nn, vf->irq_entries, num_irqs); in nfp_netvf_pci_probe()
/Linux-v5.15/drivers/iio/adc/
Dstm32-adc-core.c73 unsigned int num_irqs; member
355 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_handler()
397 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
411 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
429 for (i = 0; i < priv->cfg->num_irqs; i++) in stm32_adc_irq_remove()
798 .num_irqs = 1,
806 .num_irqs = 1,
814 .num_irqs = 2,
/Linux-v5.15/drivers/net/wireless/ti/wlcore/
Dsdio.c265 int irq, wakeirq, num_irqs; in wl1271_probe() local
339 num_irqs = 2; in wl1271_probe()
341 num_irqs = 1; in wl1271_probe()
343 ret = platform_device_add_resources(glue->core, res, num_irqs); in wl1271_probe()

1234567