Home
last modified time | relevance | path

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

1234

/linux-6.1.9/arch/powerpc/platforms/4xx/
Dhsta_msi.c34 int irq_count; member
97 for (irq = 0; irq < ppc4xx_hsta_msi.irq_count; irq++) in hsta_find_hwirq_offset()
125 int irq, ret, irq_count; in hsta_msi_probe() local
134 irq_count = of_irq_count(dev->of_node); in hsta_msi_probe()
135 if (!irq_count) { in hsta_msi_probe()
143 ppc4xx_hsta_msi.irq_count = irq_count; in hsta_msi_probe()
149 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe()
153 ppc4xx_hsta_msi.irq_map = kmalloc_array(irq_count, sizeof(int), in hsta_msi_probe()
161 for (irq = 0; irq < irq_count; irq++) { in hsta_msi_probe()
/linux-6.1.9/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c350 unsigned int irq_count) in fsl_mc_populate_irq_pool() argument
364 if (irq_count == 0 || in fsl_mc_populate_irq_pool()
365 irq_count > FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS) in fsl_mc_populate_irq_pool()
368 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
373 irq_count, sizeof(*irq_resources), in fsl_mc_populate_irq_pool()
380 for (i = 0; i < irq_count; i++) { in fsl_mc_populate_irq_pool()
396 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool()
397 res_pool->free_count = irq_count; in fsl_mc_populate_irq_pool()
440 int irq_count; in fsl_mc_allocate_irqs() local
450 irq_count = mc_dev->obj_desc.irq_count; in fsl_mc_allocate_irqs()
[all …]
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()
Dfsl-mc-msi.c214 int fsl_mc_msi_domain_alloc_irqs(struct device *dev, unsigned int irq_count) in fsl_mc_msi_domain_alloc_irqs() argument
238 error = msi_domain_alloc_irqs(msi_domain, dev, irq_count); in fsl_mc_msi_domain_alloc_irqs()
/linux-6.1.9/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()
/linux-6.1.9/arch/powerpc/sysdev/
Dmsi_bitmap.c22 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
24 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs()
96 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs()
112 int __ref msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, in msi_bitmap_alloc() argument
117 if (!irq_count) in msi_bitmap_alloc()
120 size = BITS_TO_LONGS(irq_count) * sizeof(long); in msi_bitmap_alloc()
143 bmp->irq_count = irq_count; in msi_bitmap_alloc()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/irqchip/
Dirq-imx-irqsteer.c32 int irq_count; member
99 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_get_hwirq_base()
176 data->irq_count = DIV_ROUND_UP(irqs_num, 64); in imx_irqsteer_probe()
205 if (!data->irq_count || data->irq_count > CHAN_MAX_OUTPUT_INT) { in imx_irqsteer_probe()
210 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_probe()
238 for (i = 0; i < irqsteer_data->irq_count; i++) in imx_irqsteer_remove()
Dirq-loongson-pch-msi.c190 static int pch_msi_init(phys_addr_t msg_address, int irq_base, int irq_count, in pch_msi_init() argument
204 priv->num_irqs = irq_count; in pch_msi_init()
232 int irq_base, irq_count; in pch_msi_of_init() local
252 if (of_property_read_u32(node, "loongson,msi-num-vecs", &irq_count)) { in pch_msi_of_init()
257 err = pch_msi_init(res.start, irq_base, irq_count, parent_domain, of_node_to_fwnode(node)); in pch_msi_of_init()
/linux-6.1.9/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 …]
/linux-6.1.9/tools/tracing/rtla/src/
Dtimerlat_hist.c49 int irq_count; member
159 data->hist[cpu].irq_count++; in timerlat_hist_update()
228 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_hist_header()
264 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
269 data->hist[cpu].irq_count); in timerlat_print_summary()
284 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
304 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
308 if (data->hist[cpu].irq_count) in timerlat_print_summary()
310 data->hist[cpu].sum_irq / data->hist[cpu].irq_count); in timerlat_print_summary()
332 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
[all …]
Dtimerlat_top.c38 int irq_count; member
111 cpu_data->irq_count++; in timerlat_top_update()
191 if (!cpu_data->irq_count && !cpu_data->thread_count) in timerlat_top_print()
197 trace_seq_printf(s, "%3d #%-9d |", cpu, cpu_data->irq_count); in timerlat_top_print()
199 if (!cpu_data->irq_count) { in timerlat_top_print()
207 trace_seq_printf(s, "%9llu ", (cpu_data->sum_irq / cpu_data->irq_count) / divisor); in timerlat_top_print()
/linux-6.1.9/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,
/linux-6.1.9/kernel/irq/
Dirq_sim.c16 unsigned int irq_count; member
108 while (!bitmap_empty(work_ctx->pending, work_ctx->irq_count)) { in irq_sim_handle_irq()
110 work_ctx->irq_count, offset); in irq_sim_handle_irq()
183 work_ctx->irq_count = num_irqs; in irq_domain_create_sim()
Dspurious.c410 desc->irq_count++; in note_interrupt()
411 if (likely(desc->irq_count < 100000)) in note_interrupt()
414 desc->irq_count = 0; in note_interrupt()
/linux-6.1.9/drivers/crypto/ccp/
Dsp-platform.c30 unsigned int irq_count; member
90 sp_platform->irq_count = platform_irq_count(pdev); in sp_get_irqs()
99 if (sp_platform->irq_count == 1) { in sp_get_irqs()
/linux-6.1.9/drivers/gpio/
Dgpio-mxc.c371 int irq_count; in mxc_gpio_probe() local
387 irq_count = platform_irq_count(pdev); in mxc_gpio_probe()
388 if (irq_count < 0) in mxc_gpio_probe()
389 return irq_count; in mxc_gpio_probe()
391 if (irq_count > 1) { in mxc_gpio_probe()
/linux-6.1.9/include/linux/
Dpreempt.h108 #define irq_count() (nmi_count() | hardirq_count() | softirq_count()) macro
131 #define in_interrupt() (irq_count())
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_interrupts.c515 int i, irq_count; in dpu_debugfs_core_irq_show() local
520 irq_count = atomic_read(&dpu_kms->hw_intr->irq_tbl[i].count); in dpu_debugfs_core_irq_show()
524 if (irq_count || cb) in dpu_debugfs_core_irq_show()
525 seq_printf(s, "idx:%d irq:%d cb:%ps\n", i, irq_count, cb); in dpu_debugfs_core_irq_show()
/linux-6.1.9/drivers/net/wwan/t7xx/
Dt7xx_pcie_mac.h29 void t7xx_pcie_set_mac_msix_cfg(struct t7xx_pci_dev *t7xx_dev, unsigned int irq_count);
Dt7xx_pcie_mac.c257 void t7xx_pcie_set_mac_msix_cfg(struct t7xx_pci_dev *t7xx_dev, unsigned int irq_count) in t7xx_pcie_set_mac_msix_cfg() argument
259 u32 val = ffs(irq_count) * 2 - 1; in t7xx_pcie_set_mac_msix_cfg()
/linux-6.1.9/drivers/pci/controller/dwc/
Dpci-keystone.c642 int irq_count, irq, ret, i; in ks_pcie_config_msi_irq() local
655 irq_count = of_irq_count(intc_np); in ks_pcie_config_msi_irq()
656 if (!irq_count) { in ks_pcie_config_msi_irq()
662 for (i = 0; i < irq_count; i++) { in ks_pcie_config_msi_irq()
696 int irq_count, irq, ret = 0, i; in ks_pcie_config_legacy_irq() local
710 irq_count = of_irq_count(intc_np); in ks_pcie_config_legacy_irq()
711 if (!irq_count) { in ks_pcie_config_legacy_irq()
717 for (i = 0; i < irq_count; i++) { in ks_pcie_config_legacy_irq()
/linux-6.1.9/arch/powerpc/platforms/52xx/
Dmpc52xx_lpbfifo.c309 req->irq_count++; in mpc52xx_lpbfifo_irq()
343 req->irq_count++; in mpc52xx_lpbfifo_bcom_irq()
414 req->irq_count = 0; in mpc52xx_lpbfifo_submit()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_pmu.h134 unsigned long irq_count; member
/linux-6.1.9/kernel/sched/
Dcputime.c62 pc = irq_count() - offset; in irqtime_account_irq()
188 if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) { in account_system_time()
438 unsigned int pc = irq_count() - offset; in vtime_account_irq()
505 else if ((p != this_rq()->idle) || (irq_count() != HARDIRQ_OFFSET)) in account_process_tick()
683 account_system_time(tsk, irq_count(), vtime->stime); in vtime_account_system()

1234