Home
last modified time | relevance | path

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

123

/linux/arch/powerpc/platforms/4xx/
A 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()
/linux/drivers/bus/fsl-mc/
A 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()
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()
456 if (irq_count == 0) in fsl_mc_allocate_irqs()
479 for (i = 0; i < irq_count; i++) { in fsl_mc_allocate_irqs()
513 int irq_count; in fsl_mc_free_irqs() local
[all …]
A 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()
A 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()
/linux/drivers/vfio/fsl-mc/
A 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()
A 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/drivers/ntb/test/
A 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/arch/powerpc/sysdev/
A 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()
/linux/drivers/irqchip/
A Dirq-imx-irqsteer.c31 int irq_count; member
98 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_get_hwirq_base()
175 data->irq_count = DIV_ROUND_UP(irqs_num, 64); in imx_irqsteer_probe()
203 if (!data->irq_count || data->irq_count > CHAN_MAX_OUTPUT_INT) { in imx_irqsteer_probe()
208 for (i = 0; i < data->irq_count; i++) { in imx_irqsteer_probe()
233 for (i = 0; i < irqsteer_data->irq_count; i++) in imx_irqsteer_remove()
/linux/drivers/input/rmi4/
A 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()
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()
1016 int irq_count = 0; in rmi_probe_interrupts() local
1047 data->irq_count = irq_count; in rmi_probe_interrupts()
1048 data->num_of_irq_regs = (data->irq_count + 7) / 8; in rmi_probe_interrupts()
[all …]
/linux/kernel/irq/
A 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()
A 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/arch/powerpc/include/asm/
A Dmsi_bitmap.h16 unsigned int irq_count; member
27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
/linux/drivers/gpio/
A Dgpio-mxc.c359 int irq_count; in mxc_gpio_probe() local
375 irq_count = platform_irq_count(pdev); in mxc_gpio_probe()
376 if (irq_count < 0) in mxc_gpio_probe()
377 return irq_count; in mxc_gpio_probe()
379 if (irq_count > 1) { in mxc_gpio_probe()
/linux/drivers/pci/controller/dwc/
A 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/include/linux/
A Dpreempt.h108 #define irq_count() (nmi_count() | hardirq_count() | softirq_count()) macro
131 #define in_interrupt() (irq_count())
/linux/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_hw_interrupts.c523 int i, irq_count, cb_count; in dpu_debugfs_core_irq_show() local
531 irq_count = atomic_read(&dpu_kms->hw_intr->irq_counts[i]); in dpu_debugfs_core_irq_show()
536 if (irq_count || cb_count) in dpu_debugfs_core_irq_show()
538 i, irq_count, cb_count); in dpu_debugfs_core_irq_show()
/linux/drivers/crypto/ccp/
A Dsp-platform.c30 unsigned int irq_count; member
98 sp_platform->irq_count = count; in sp_get_irqs()
/linux/arch/arm64/kvm/vgic/
A 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()
341 if (i == irq_count) in vgic_copy_lpi_list()
1310 int irq_count, i; in vgic_its_cmd_handle_invall() local
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
1367 if (irq_count < 0) in vgic_its_cmd_handle_movall()
1368 return irq_count; in vgic_its_cmd_handle_movall()
[all …]
/linux/arch/powerpc/platforms/52xx/
A 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()
/linux/kernel/sched/
A Dcputime.c63 pc = irq_count() - offset; in irqtime_account_irq()
189 if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) { in account_system_time()
424 unsigned int pc = irq_count() - offset; in vtime_account_irq()
491 else if ((p != this_rq()->idle) || (irq_count() != HARDIRQ_OFFSET)) in account_process_tick()
669 account_system_time(tsk, irq_count(), vtime->stime); in vtime_account_system()
/linux/drivers/mfd/
A Dab8500-debugfs.c99 static u32 *irq_count; variable
1261 irq_count[irq_abb]++; in ab8500_debug_handler()
1838 return sprintf(buf, "%u\n", irq_count[irq_index]); in show_irq()
1930 irq_count[irq_index] = 0; in ab8500_unsubscribe_write()
2013 irq_count = devm_kcalloc(&plf->dev, in ab8500_debug_probe()
2014 num_irqs, sizeof(*irq_count), GFP_KERNEL); in ab8500_debug_probe()
2015 if (!irq_count) in ab8500_debug_probe()
/linux/sound/soc/codecs/
A Dwm_adsp.c133 __be32 irq_count; /* bits 1-31 count IRQ assertions */ member
157 u32 irq_count; member
1366 buf->irq_count = 0xFFFFFFFF; in wm_adsp_buffer_clear()
1701 ret = wm_adsp_buffer_read(buf, HOST_BUFFER_FIELD(irq_count), in wm_adsp_compr_handle_irq()
1702 &buf->irq_count); in wm_adsp_compr_handle_irq()
1714 if (wm_adsp_fw[dsp->fw].voice_trigger && buf->irq_count == 2) in wm_adsp_compr_handle_irq()
1731 if (buf->irq_count & 0x01) in wm_adsp_buffer_reenable_irq()
1734 compr_dbg(buf, "Enable IRQ(0x%x) for next fragment\n", buf->irq_count); in wm_adsp_buffer_reenable_irq()
1736 buf->irq_count |= 0x01; in wm_adsp_buffer_reenable_irq()
1739 buf->irq_count); in wm_adsp_buffer_reenable_irq()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
A Ddispc-compat.c41 unsigned irq_count; member
76 seq_printf(s, "irqs %d\n", stats.irq_count); in dispc_dump_irqs()
273 dispc_compat.irq_stats.irq_count++; in omap_dispc_irq_handler()
/linux/drivers/gpu/drm/i915/
A Di915_pmu.h134 unsigned long irq_count; member

Completed in 58 milliseconds

123