Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/perf/
Darm_pmu_platform.c99 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(&pdev->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()
129 for (i = 0; i < num_irqs; i++) { in pmu_parse_irqs()
/kernel/linux/linux-5.10/kernel/irq/
Dirq_sim.c169 unsigned int num_irqs) in irq_domain_create_sim() argument
177 work_ctx->pending = bitmap_zalloc(num_irqs, GFP_KERNEL); in irq_domain_create_sim()
181 work_ctx->domain = irq_domain_create_linear(fwnode, num_irqs, in irq_domain_create_sim()
187 work_ctx->irq_count = num_irqs; in irq_domain_create_sim()
239 unsigned int num_irqs) in devm_irq_domain_create_sim() argument
248 dr->domain = irq_domain_create_sim(fwnode, num_irqs); in devm_irq_domain_create_sim()
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-aspeed-scu-ic.c39 unsigned int num_irqs; member
74 max = scu_ic->num_irqs + bit; in aspeed_scu_ic_irq_handler()
167 scu_ic->irq_domain = irq_domain_add_linear(node, scu_ic->num_irqs, in aspeed_scu_ic_of_init_common()
196 scu_ic->num_irqs = ASPEED_SCU_IC_NUM_IRQS; in aspeed_scu_ic_of_init()
212 scu_ic->num_irqs = ASPEED_AST2600_SCU_IC0_NUM_IRQS; in aspeed_ast2600_scu_ic0_of_init()
228 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()
/kernel/linux/linux-5.10/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()
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),
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),
Dstmpe.c429 .num_irqs = STMPE801_NR_INTERNAL_IRQS,
591 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
606 .num_irqs = STMPE811_NR_INTERNAL_IRQS,
662 .num_irqs = STMPE1600_NR_INTERNAL_IRQS,
826 .num_irqs = STMPE1601_NR_INTERNAL_IRQS,
935 .num_irqs = STMPE1801_NR_INTERNAL_IRQS,
1041 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1055 .num_irqs = STMPE24XX_NR_INTERNAL_IRQS,
1086 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq()
1145 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
496 .num_irqs = PM8XXX_NR_IRQS,
502 .num_irqs = PM8821_NR_IRQS,
560 struct_size(chip, config, data->num_irqs), in pm8xxx_probe()
567 chip->num_blocks = DIV_ROUND_UP(data->num_irqs, 8); in pm8xxx_probe()
573 data->num_irqs, in pm8xxx_probe()
/kernel/linux/linux-5.10/include/linux/
Dirq_sim.h20 unsigned int num_irqs);
23 unsigned int num_irqs);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
598 for (i = ctx->num_irqs; i >= 0; i--) in free_afu_irqs()
652 ctx->num_irqs = num; in alloc_afu_irqs()
1066 bit = find_first_bit(&ctx->irq_bitmap, ctx->num_irqs); in afu_read()
1069 if (bitmap_empty(&ctx->irq_bitmap, ctx->num_irqs)) in afu_read()
1109 for (i = ctx->num_irqs; i >= 0; i--) in afu_release()
1278 for (i = 0; i < ctx->num_irqs; i++) { in ocxlflash_afu_irq()
1282 if (unlikely(i >= ctx->num_irqs)) { in ocxlflash_afu_irq()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dstm32-adc-core.c74 unsigned int num_irqs; member
380 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
394 for (i = 0; i < priv->cfg->num_irqs; i++) { in stm32_adc_irq_probe()
412 for (i = 0; i < priv->cfg->num_irqs; i++) in stm32_adc_irq_remove()
788 .num_irqs = 1,
797 .num_irqs = 1,
806 .num_irqs = 2,
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/vfio/platform/
Dvfio_platform_common.c304 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl()
316 info.num_irqs = vdev->num_irqs; in vfio_platform_ioctl()
354 if (info.index >= vdev->num_irqs) in vfio_platform_ioctl()
374 ret = vfio_set_irqs_validate_and_prepare(&hdr, vdev->num_irqs, in vfio_platform_ioctl()
375 vdev->num_irqs, &data_size); in vfio_platform_ioctl()
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_si_hardcode.c24 static unsigned int num_irqs __initdata;
49 module_param_hw_array(irqs, int, irq, &num_irqs, 0);

1234567