Home
last modified time | relevance | path

Searched refs:irq_count (Results 1 – 25 of 72) sorted by relevance

123

/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/
Dhsta_msi.c33 int irq_count; member
96 for (irq = 0; irq < ppc4xx_hsta_msi.irq_count; irq++) in hsta_find_hwirq_offset()
127 int irq, ret, irq_count; in hsta_msi_probe() local
136 irq_count = of_irq_count(dev->of_node); in hsta_msi_probe()
137 if (!irq_count) { in hsta_msi_probe()
145 ppc4xx_hsta_msi.irq_count = irq_count; in hsta_msi_probe()
151 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe()
155 ppc4xx_hsta_msi.irq_map = kmalloc_array(irq_count, sizeof(int), in hsta_msi_probe()
163 for (irq = 0; irq < irq_count; irq++) { in hsta_msi_probe()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dirq_stack.h12 return __this_cpu_read(irq_count) != -1; in irqstack_active()
25 __this_cpu_add(irq_count, 1); in __run_on_irqstack()
27 __this_cpu_sub(irq_count, 1); in __run_on_irqstack()
36 __this_cpu_add(irq_count, 1); in __run_sysvec_on_irqstack()
38 __this_cpu_sub(irq_count, 1); in __run_sysvec_on_irqstack()
47 __this_cpu_add(irq_count, 1); in __run_irq_on_irqstack()
49 __this_cpu_sub(irq_count, 1); in __run_irq_on_irqstack()
/kernel/linux/linux-5.10/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c350 unsigned int irq_count) in fsl_mc_populate_irq_pool() argument
365 if (irq_count == 0 || in fsl_mc_populate_irq_pool()
366 irq_count > FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS) in fsl_mc_populate_irq_pool()
369 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
374 irq_count, sizeof(*irq_resources), in fsl_mc_populate_irq_pool()
381 for (i = 0; i < irq_count; i++) { in fsl_mc_populate_irq_pool()
401 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool()
402 res_pool->free_count = irq_count; in fsl_mc_populate_irq_pool()
445 int irq_count; in fsl_mc_allocate_irqs() local
455 irq_count = mc_dev->obj_desc.irq_count; in fsl_mc_allocate_irqs()
[all …]
Dfsl-mc-msi.c223 static int fsl_mc_msi_alloc_descs(struct device *dev, unsigned int irq_count) in fsl_mc_msi_alloc_descs() argument
230 for (i = 0; i < irq_count; i++) { in fsl_mc_msi_alloc_descs()
251 unsigned int irq_count) in fsl_mc_msi_domain_alloc_irqs() argument
259 error = fsl_mc_msi_alloc_descs(dev, irq_count); in fsl_mc_msi_domain_alloc_irqs()
273 error = msi_domain_alloc_irqs(msi_domain, dev, irq_count); in fsl_mc_msi_domain_alloc_irqs()
Ddprc-driver.c246 unsigned int irq_count = mc_bus_dev->obj_desc.irq_count; in dprc_scan_objects() local
305 irq_count += obj_desc->irq_count; in dprc_scan_objects()
323 if (irq_count > FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS) { in dprc_scan_objects()
326 irq_count, FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS); in dprc_scan_objects()
/kernel/linux/linux-5.10/drivers/vfio/fsl-mc/
Dvfio_fsl_mc_intr.c20 int irq_count; in vfio_fsl_mc_irqs_allocate() local
24 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate()
31 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate()
33 mc_irq = kcalloc(irq_count, sizeof(*mc_irq), GFP_KERNEL); in vfio_fsl_mc_irqs_allocate()
44 for (i = 0; i < irq_count; i++) { in vfio_fsl_mc_irqs_allocate()
178 int irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_cleanup() local
188 for (i = 0; i < irq_count; i++) in vfio_fsl_mc_irqs_cleanup()
Dvfio_fsl_mc.c226 info.num_irqs = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_ioctl()
266 if (info.index >= mc_dev->obj_desc.irq_count) in vfio_fsl_mc_ioctl()
288 ret = vfio_set_irqs_validate_and_prepare(&hdr, mc_dev->obj_desc.irq_count, in vfio_fsl_mc_ioctl()
289 mc_dev->obj_desc.irq_count, &data_size); in vfio_fsl_mc_ioctl()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dmsi_bitmap.c21 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
23 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs()
95 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs()
111 int __ref msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, in msi_bitmap_alloc() argument
116 if (!irq_count) in msi_bitmap_alloc()
119 size = BITS_TO_LONGS(irq_count) * sizeof(long); in msi_bitmap_alloc()
142 bmp->irq_count = irq_count; in msi_bitmap_alloc()
/kernel/linux/linux-5.10/drivers/ntb/test/
Dntb_msi_test.c60 int irq_count = 0; in ntb_msit_setup_work() local
97 irq_count++; in ntb_msit_setup_work()
100 ntb_spad_write(nm->ntb, 0, irq_count); in ntb_msit_setup_work()
135 int irq_count = nm->peers[peer].num_irqs; in ntb_msit_copy_peer_desc() local
137 for (i = 0; i < irq_count; i++) { in ntb_msit_copy_peer_desc()
144 irq_count, peer); in ntb_msit_copy_peer_desc()
154 u32 irq_count; in ntb_msit_db_event() local
163 irq_count = ntb_peer_spad_read(nm->ntb, peer, 0); in ntb_msit_db_event()
164 if (irq_count == -1) in ntb_msit_db_event()
167 desc = kcalloc(irq_count, sizeof(*desc), GFP_ATOMIC); in ntb_msit_db_event()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_core_irq.c112 int dpu_core_irq_enable(struct dpu_kms *dpu_kms, int *irq_idxs, u32 irq_count) in dpu_core_irq_enable() argument
116 if (!irq_idxs || !irq_count) { in dpu_core_irq_enable()
125 for (i = 0; (i < irq_count) && !ret; i++) in dpu_core_irq_enable()
167 int dpu_core_irq_disable(struct dpu_kms *dpu_kms, int *irq_idxs, u32 irq_count) in dpu_core_irq_disable() argument
171 if (!irq_idxs || !irq_count) { in dpu_core_irq_disable()
180 for (i = 0; (i < irq_count) && !ret; i++) in dpu_core_irq_disable()
296 int i, irq_count, enable_count, cb_count; in dpu_debugfs_core_irq_show() local
304 irq_count = atomic_read(&irq_obj->irq_counts[i]); in dpu_debugfs_core_irq_show()
310 if (irq_count || enable_count || cb_count) in dpu_debugfs_core_irq_show()
312 i, irq_count, enable_count, cb_count); in dpu_debugfs_core_irq_show()
Ddpu_core_irq.h58 uint32_t irq_count);
73 uint32_t irq_count);
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-imx-irqsteer.c31 int irq_count; member
98 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_get_hwirq_base()
178 data->irq_count = DIV_ROUND_UP(irqs_num, 64); in imx_irqsteer_probe()
206 if (!data->irq_count || data->irq_count > CHAN_MAX_OUTPUT_INT) { in imx_irqsteer_probe()
211 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_probe()
236 for (i = 0; i < irqsteer_data->irq_count; i++) in imx_irqsteer_remove()
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_driver.c150 data->irq_count); in rmi_process_interrupt_requests()
157 for_each_set_bit(i, data->irq_status, data->irq_count) in rmi_process_interrupt_requests()
375 data->current_irq_mask, mask, data->irq_count); in rmi_driver_set_irq_bits()
388 bitmap_or(data->fn_irq_bits, data->fn_irq_bits, mask, data->irq_count); in rmi_driver_set_irq_bits()
404 data->fn_irq_bits, mask, data->irq_count); in rmi_driver_clear_irq_bits()
406 data->current_irq_mask, mask, data->irq_count); in rmi_driver_clear_irq_bits()
779 int *irq_count = ctx; in rmi_count_irqs() local
782 *irq_count += pdt->interrupt_source_count; in rmi_count_irqs()
842 BITS_TO_LONGS(data->irq_count) * sizeof(unsigned long), in rmi_create_function()
1016 int irq_count = 0; in rmi_probe_interrupts() local
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dmsi_bitmap.h16 unsigned int irq_count; member
27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
/kernel/linux/linux-5.10/kernel/irq/
Dirq_sim.c16 unsigned int irq_count; member
112 while (!bitmap_empty(work_ctx->pending, work_ctx->irq_count)) { in irq_sim_handle_irq()
114 work_ctx->irq_count, offset); in irq_sim_handle_irq()
187 work_ctx->irq_count = num_irqs; in irq_domain_create_sim()
Dspurious.c406 desc->irq_count++; in note_interrupt()
407 if (likely(desc->irq_count < 100000)) in note_interrupt()
410 desc->irq_count = 0; in note_interrupt()
Ddebug.h19 irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); in print_irq_desc()
/kernel/linux/linux-5.10/drivers/staging/kpc2000/kpc2000/
Dcell_probe.c49 u8 irq_count; member
63 cte->irq_count = ((read_val & 0x0000000000000C00UL) >> 10); in parse_core_table_entry_v0()
78 cte->irq_count, in dbg_cte()
202 return sprintf(buf, "%u\n", kudev->cte.irq_count); in irq_count_show()
204 static DEVICE_ATTR_RO(irq_count);
307 if (cte.irq_count > 0) { in probe_core_uio()
478 cte.irq_count = 0; in kp2000_probe_cores()
/kernel/linux/linux-5.10/include/linux/
Dpreempt.h82 #define irq_count() (preempt_count() & (HARDIRQ_MASK | SOFTIRQ_MASK \ macro
100 #define in_interrupt() (irq_count())
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-mxc.c416 int irq_count; in mxc_gpio_probe() local
432 irq_count = platform_irq_count(pdev); in mxc_gpio_probe()
433 if (irq_count < 0) in mxc_gpio_probe()
434 return irq_count; in mxc_gpio_probe()
436 if (irq_count > 1) { in mxc_gpio_probe()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dsp-platform.c30 unsigned int irq_count; member
98 sp_platform->irq_count = count; in sp_get_irqs()
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpci-keystone.c654 int irq_count, irq, ret, i; in ks_pcie_config_msi_irq() local
667 irq_count = of_irq_count(intc_np); in ks_pcie_config_msi_irq()
668 if (!irq_count) { in ks_pcie_config_msi_irq()
674 for (i = 0; i < irq_count; i++) { in ks_pcie_config_msi_irq()
708 int irq_count, irq, ret = 0, i; in ks_pcie_config_legacy_irq() local
722 irq_count = of_irq_count(intc_np); in ks_pcie_config_legacy_irq()
723 if (!irq_count) { in ks_pcie_config_legacy_irq()
729 for (i = 0; i < irq_count; i++) { in ks_pcie_config_legacy_irq()
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
Dmpc52xx_lpbfifo.c308 req->irq_count++; in mpc52xx_lpbfifo_irq()
342 req->irq_count++; in mpc52xx_lpbfifo_bcom_irq()
413 req->irq_count = 0; in mpc52xx_lpbfifo_submit()
/kernel/linux/linux-5.10/drivers/mfd/
Dab8500-debugfs.c99 static u32 *irq_count; variable
1261 irq_count[irq_abb]++; in ab8500_debug_handler()
1850 return sprintf(buf, "%u\n", irq_count[irq_index]); in show_irq()
1942 irq_count[irq_index] = 0; in ab8500_unsubscribe_write()
2025 irq_count = devm_kcalloc(&plf->dev, in ab8500_debug_probe()
2026 num_irqs, sizeof(*irq_count), GFP_KERNEL); in ab8500_debug_probe()
2027 if (!irq_count) in ab8500_debug_probe()
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
Dvgic-its.c325 int irq_count, i = 0; in vgic_copy_lpi_list() local
334 irq_count = READ_ONCE(dist->lpi_list_count); in vgic_copy_lpi_list()
335 intids = kmalloc_array(irq_count, sizeof(intids[0]), GFP_KERNEL); in vgic_copy_lpi_list()
341 if (i == irq_count) in vgic_copy_lpi_list()
1310 int irq_count, i; in vgic_its_cmd_handle_invall() local
1318 irq_count = vgic_copy_lpi_list(kvm, vcpu, &intids); in vgic_its_cmd_handle_invall()
1319 if (irq_count < 0) in vgic_its_cmd_handle_invall()
1320 return irq_count; in vgic_its_cmd_handle_invall()
1322 for (i = 0; i < irq_count; i++) { in vgic_its_cmd_handle_invall()
1354 int irq_count, i; in vgic_its_cmd_handle_movall() local
[all …]

123