/linux/arch/powerpc/platforms/4xx/ |
A D | hsta_msi.c | 33 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 D | fsl-mc-allocator.c | 350 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 D | fsl-mc-msi.c | 223 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 D | dprc-driver.c | 246 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 D | vfio_fsl_mc_intr.c | 20 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 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/drivers/ntb/test/ |
A 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/arch/powerpc/sysdev/ |
A D | msi_bitmap.c | 21 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 D | irq-imx-irqsteer.c | 31 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 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() 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 D | irq_sim.c | 16 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 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/arch/powerpc/include/asm/ |
A D | msi_bitmap.h | 16 unsigned int irq_count; member 27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
|
/linux/drivers/gpio/ |
A D | gpio-mxc.c | 359 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 D | pci-keystone.c | 642 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 D | preempt.h | 108 #define irq_count() (nmi_count() | hardirq_count() | softirq_count()) macro 131 #define in_interrupt() (irq_count())
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_hw_interrupts.c | 523 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 D | sp-platform.c | 30 unsigned int irq_count; member 98 sp_platform->irq_count = count; in sp_get_irqs()
|
/linux/arch/arm64/kvm/vgic/ |
A D | vgic-its.c | 325 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 D | mpc52xx_lpbfifo.c | 308 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 D | cputime.c | 63 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 D | ab8500-debugfs.c | 99 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 D | wm_adsp.c | 133 __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 D | dispc-compat.c | 41 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 D | i915_pmu.h | 134 unsigned long irq_count; member
|