/linux-6.12.1/arch/powerpc/platforms/44x/ |
D | hsta_msi.c | 34 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.12.1/drivers/bus/fsl-mc/ |
D | fsl-mc-allocator.c | 356 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 …]
|
D | dprc-driver.c | 251 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()
|
D | fsl-mc-msi.c | 212 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.12.1/drivers/vfio/fsl-mc/ |
D | vfio_fsl_mc_intr.c | 19 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() 176 int irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_cleanup() local 186 for (i = 0; i < irq_count; i++) in vfio_fsl_mc_irqs_cleanup()
|
D | vfio_fsl_mc.c | 147 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.12.1/arch/powerpc/sysdev/ |
D | msi_bitmap.c | 22 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.12.1/drivers/ntb/test/ |
D | ntb_msi_test.c | 60 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.12.1/drivers/irqchip/ |
D | irq-imx-irqsteer.c | 33 int irq_count; member 117 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_get_hwirq_base() 195 data->irq_count = DIV_ROUND_UP(irqs_num, 64); in imx_irqsteer_probe() 224 if (!data->irq_count || data->irq_count > CHAN_MAX_OUTPUT_INT) { in imx_irqsteer_probe() 229 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_probe() 257 for (i = 0; i < irqsteer_data->irq_count; i++) in imx_irqsteer_remove()
|
D | irq-loongson-pch-msi.c | 178 static int pch_msi_init(phys_addr_t msg_address, int irq_base, int irq_count, in pch_msi_init() argument 192 priv->num_irqs = irq_count; in pch_msi_init() 220 int irq_base, irq_count; in pch_msi_of_init() local 240 if (of_property_read_u32(node, "loongson,msi-num-vecs", &irq_count)) { in pch_msi_of_init() 245 err = pch_msi_init(res.start, irq_base, irq_count, parent_domain, of_node_to_fwnode(node)); in pch_msi_of_init()
|
/linux-6.12.1/drivers/input/rmi4/ |
D | rmi_driver.c | 150 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.12.1/tools/tracing/rtla/src/ |
D | timerlat_hist.c | 65 int irq_count; member 189 data->hist[cpu].irq_count++; in timerlat_hist_update() 264 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_hist_header() 303 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary() 308 data->hist[cpu].irq_count); in timerlat_print_summary() 327 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary() 331 if (data->hist[cpu].irq_count) in timerlat_print_summary() 363 if (!data->hist[cpu].irq_count && !data->hist[cpu].thread_count) in timerlat_print_summary() 367 if (data->hist[cpu].irq_count) in timerlat_print_summary() 369 data->hist[cpu].sum_irq / data->hist[cpu].irq_count); in timerlat_print_summary() [all …]
|
D | timerlat_top.c | 57 int irq_count; member 140 sum->irq_count += cpu_data->irq_count; in timerlat_top_update_sum() 168 cpu_data->irq_count++; in timerlat_top_update() 277 if (!cpu_data->irq_count && !cpu_data->thread_count) in timerlat_top_print() 283 trace_seq_printf(s, "%3d #%-9d |", cpu, cpu_data->irq_count); in timerlat_top_print() 285 if (!cpu_data->irq_count) { in timerlat_top_print() 290 trace_seq_printf(s, "%9llu ", (cpu_data->sum_irq / cpu_data->irq_count) / divisor); in timerlat_top_print() 330 unsigned long long count = summary->irq_count; in timerlat_top_print_sum() 341 if (!summary->irq_count && !summary->thread_count) in timerlat_top_print_sum() 356 if (!summary->irq_count) { in timerlat_top_print_sum() [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | msi_bitmap.h | 16 unsigned int irq_count; member 27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
|
/linux-6.12.1/kernel/irq/ |
D | irq_sim.c | 16 unsigned int irq_count; member 136 while (!bitmap_empty(work_ctx->pending, work_ctx->irq_count)) { in irq_sim_handle_irq() 138 work_ctx->irq_count, offset); in irq_sim_handle_irq() 220 work_ctx->irq_count = num_irqs; in irq_domain_create_sim_full()
|
D | spurious.c | 410 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.12.1/drivers/crypto/ccp/ |
D | sp-platform.c | 30 unsigned int irq_count; member 84 sp_platform->irq_count = platform_irq_count(pdev); in sp_get_irqs() 93 if (sp_platform->irq_count == 1) { in sp_get_irqs()
|
/linux-6.12.1/include/linux/ |
D | preempt.h | 112 # 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.12.1/drivers/regulator/ |
D | tps6594-regulator.c | 573 unsigned int irq_count; in tps6594_regulator_probe() local 754 irq_count = ARRAY_SIZE(tps65224_ext_regulator_irq_types); in tps6594_regulator_probe() 758 irq_count = ARRAY_SIZE(tps6594_ext_regulator_irq_types); in tps6594_regulator_probe() 761 irq_count = 2; in tps6594_regulator_probe() 765 irq_count, in tps6594_regulator_probe() 771 for (i = 0; i < irq_count; ++i) { in tps6594_regulator_probe()
|
/linux-6.12.1/kernel/ |
D | delayacct.c | 189 d->irq_count += tsk->delays->irq_count; in delayacct_add_tsk() 286 task->delays->irq_count++; in __delayacct_irq()
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-mxc.c | 425 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.12.1/drivers/net/wwan/t7xx/ |
D | t7xx_pcie_mac.h | 29 void t7xx_pcie_set_mac_msix_cfg(struct t7xx_pci_dev *t7xx_dev, unsigned int irq_count);
|
D | t7xx_pcie_mac.c | 257 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.12.1/drivers/pci/controller/dwc/ |
D | pci-keystone.c | 665 int irq_count, irq, ret, i; in ks_pcie_config_msi_irq() local 678 irq_count = of_irq_count(intc_np); in ks_pcie_config_msi_irq() 679 if (!irq_count) { in ks_pcie_config_msi_irq() 685 for (i = 0; i < irq_count; i++) { in ks_pcie_config_msi_irq() 719 int irq_count, irq, ret = 0, i; in ks_pcie_config_intx_irq() local 733 irq_count = of_irq_count(intc_np); in ks_pcie_config_intx_irq() 734 if (!irq_count) { in ks_pcie_config_intx_irq() 740 for (i = 0; i < irq_count; i++) { in ks_pcie_config_intx_irq()
|
/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_interrupts.c | 611 int i, irq_count; in dpu_debugfs_core_irq_show() local 617 irq_count = atomic_read(&irq_entry->count); in dpu_debugfs_core_irq_show() 621 if (irq_count || cb) in dpu_debugfs_core_irq_show() 623 DPU_IRQ_REG(i), DPU_IRQ_BIT(i), irq_count, cb); in dpu_debugfs_core_irq_show()
|