Home
last modified time | relevance | path

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

1234

/linux-6.6.21/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()
126 int irq, ret, irq_count; in hsta_msi_probe() local
135 irq_count = of_irq_count(dev->of_node); in hsta_msi_probe()
136 if (!irq_count) { in hsta_msi_probe()
144 ppc4xx_hsta_msi.irq_count = irq_count; in hsta_msi_probe()
150 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe()
154 ppc4xx_hsta_msi.irq_map = kmalloc_array(irq_count, sizeof(int), in hsta_msi_probe()
162 for (irq = 0; irq < irq_count; irq++) { in hsta_msi_probe()
/linux-6.6.21/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c356 unsigned int irq_count) in fsl_mc_populate_irq_pool() argument
370 if (irq_count == 0 || in fsl_mc_populate_irq_pool()
371 irq_count > FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS) in fsl_mc_populate_irq_pool()
374 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
379 irq_count, sizeof(*irq_resources), in fsl_mc_populate_irq_pool()
386 for (i = 0; i < irq_count; i++) { in fsl_mc_populate_irq_pool()
402 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool()
403 res_pool->free_count = irq_count; in fsl_mc_populate_irq_pool()
446 int irq_count; in fsl_mc_allocate_irqs() local
456 irq_count = mc_dev->obj_desc.irq_count; in fsl_mc_allocate_irqs()
[all …]
Ddprc-driver.c251 unsigned int irq_count = mc_bus_dev->obj_desc.irq_count; in dprc_scan_objects() local
310 irq_count += obj_desc->irq_count; in dprc_scan_objects()
328 if (irq_count > FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS) { in dprc_scan_objects()
331 irq_count, FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS); in dprc_scan_objects()
Dfsl-mc-msi.c212 int fsl_mc_msi_domain_alloc_irqs(struct device *dev, unsigned int irq_count) in fsl_mc_msi_domain_alloc_irqs() argument
223 error = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, irq_count - 1); in fsl_mc_msi_domain_alloc_irqs()
/linux-6.6.21/drivers/vfio/fsl-mc/
Dvfio_fsl_mc_intr.c19 int irq_count; in vfio_fsl_mc_irqs_allocate() local
23 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate()
30 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate()
32 mc_irq = kcalloc(irq_count, sizeof(*mc_irq), GFP_KERNEL_ACCOUNT); in vfio_fsl_mc_irqs_allocate()
43 for (i = 0; i < irq_count; i++) { in vfio_fsl_mc_irqs_allocate()
177 int irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_cleanup() local
187 for (i = 0; i < irq_count; i++) in vfio_fsl_mc_irqs_cleanup()
Dvfio_fsl_mc.c147 info.num_irqs = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_ioctl()
187 if (info.index >= mc_dev->obj_desc.irq_count) in vfio_fsl_mc_ioctl()
209 ret = vfio_set_irqs_validate_and_prepare(&hdr, mc_dev->obj_desc.irq_count, in vfio_fsl_mc_ioctl()
210 mc_dev->obj_desc.irq_count, &data_size); in vfio_fsl_mc_ioctl()
/linux-6.6.21/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.6.21/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.6.21/drivers/irqchip/
Dirq-imx-irqsteer.c33 int irq_count; member
100 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_get_hwirq_base()
177 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()
239 for (i = 0; i < irqsteer_data->irq_count; i++) in imx_irqsteer_remove()
Dirq-loongson-pch-msi.c189 static int pch_msi_init(phys_addr_t msg_address, int irq_base, int irq_count, in pch_msi_init() argument
203 priv->num_irqs = irq_count; in pch_msi_init()
231 int irq_base, irq_count; in pch_msi_of_init() local
251 if (of_property_read_u32(node, "loongson,msi-num-vecs", &irq_count)) { in pch_msi_of_init()
256 err = pch_msi_init(res.start, irq_base, irq_count, parent_domain, of_node_to_fwnode(node)); in pch_msi_of_init()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/tools/tracing/rtla/src/
Dtimerlat_hist.c61 int irq_count; member
185 data->hist[cpu].irq_count++; in timerlat_hist_update()
260 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_hist_header()
299 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
304 data->hist[cpu].irq_count); in timerlat_print_summary()
323 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
347 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
351 if (data->hist[cpu].irq_count) in timerlat_print_summary()
353 data->hist[cpu].sum_irq / data->hist[cpu].irq_count); in timerlat_print_summary()
383 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary()
[all …]
Dtimerlat_top.c52 int irq_count; member
132 cpu_data->irq_count++; in timerlat_top_update()
232 if (!cpu_data->irq_count && !cpu_data->thread_count) in timerlat_top_print()
238 trace_seq_printf(s, "%3d #%-9d |", cpu, cpu_data->irq_count); in timerlat_top_print()
240 if (!cpu_data->irq_count) { in timerlat_top_print()
248 trace_seq_printf(s, "%9llu ", (cpu_data->sum_irq / cpu_data->irq_count) / divisor); in timerlat_top_print()
/linux-6.6.21/include/linux/
Dpreempt.h112 # define irq_count() ((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) | softirq_count()) macro
115 # define irq_count() (preempt_count() & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_MASK)) macro
143 #define in_interrupt() (irq_count())
/linux-6.6.21/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.6.21/kernel/
Ddelayacct.c190 d->irq_count += tsk->delays->irq_count; in delayacct_add_tsk()
287 task->delays->irq_count++; in __delayacct_irq()
/linux-6.6.21/drivers/gpio/
Dgpio-mxc.c425 int irq_count; in mxc_gpio_probe() local
440 irq_count = platform_irq_count(pdev); in mxc_gpio_probe()
441 if (irq_count < 0) in mxc_gpio_probe()
442 return irq_count; in mxc_gpio_probe()
444 if (irq_count > 1) { in mxc_gpio_probe()
/linux-6.6.21/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.6.21/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_interrupts.c588 int i, irq_count; in dpu_debugfs_core_irq_show() local
593 irq_count = atomic_read(&dpu_kms->hw_intr->irq_tbl[i].count); in dpu_debugfs_core_irq_show()
597 if (irq_count || cb) in dpu_debugfs_core_irq_show()
598 seq_printf(s, "idx:%d irq:%d cb:%ps\n", i, irq_count, cb); in dpu_debugfs_core_irq_show()
/linux-6.6.21/drivers/pci/controller/dwc/
Dpci-keystone.c641 int irq_count, irq, ret, i; in ks_pcie_config_msi_irq() local
654 irq_count = of_irq_count(intc_np); in ks_pcie_config_msi_irq()
655 if (!irq_count) { in ks_pcie_config_msi_irq()
661 for (i = 0; i < irq_count; i++) { in ks_pcie_config_msi_irq()
695 int irq_count, irq, ret = 0, i; in ks_pcie_config_legacy_irq() local
709 irq_count = of_irq_count(intc_np); in ks_pcie_config_legacy_irq()
710 if (!irq_count) { in ks_pcie_config_legacy_irq()
716 for (i = 0; i < irq_count; i++) { in ks_pcie_config_legacy_irq()
/linux-6.6.21/kernel/sched/
Dcputime.c66 pc = irq_count() - offset; in irqtime_account_irq()
192 if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) { in account_system_time()
442 unsigned int pc = irq_count() - offset; in vtime_account_irq()
509 else if ((p != this_rq()->idle) || (irq_count() != HARDIRQ_OFFSET)) in account_process_tick()
687 account_system_time(tsk, irq_count(), vtime->stime); in vtime_account_system()

1234