Lines Matching refs:irq_count
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()
457 if (irq_count == 0) in fsl_mc_allocate_irqs()
469 if (res_pool->free_count < irq_count) { in fsl_mc_allocate_irqs()
471 "Not able to allocate %u irqs for device\n", irq_count); in fsl_mc_allocate_irqs()
475 irqs = devm_kcalloc(&mc_dev->dev, irq_count, sizeof(irqs[0]), in fsl_mc_allocate_irqs()
480 for (i = 0; i < irq_count; i++) { in fsl_mc_allocate_irqs()
514 int irq_count; in fsl_mc_free_irqs() local
521 irq_count = mc_dev->obj_desc.irq_count; in fsl_mc_free_irqs()
531 for (i = 0; i < irq_count; i++) { in fsl_mc_free_irqs()