Lines Matching refs:free_count
59 if (res_pool->free_count < 0 || in fsl_mc_resource_pool_add_device()
60 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_pool_add_device()
79 res_pool->free_count++; in fsl_mc_resource_pool_add_device()
123 if (res_pool->free_count <= 0 || in fsl_mc_resource_pool_remove_device()
124 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_pool_remove_device()
140 res_pool->free_count--; in fsl_mc_resource_pool_remove_device()
211 if (res_pool->free_count <= 0 || in fsl_mc_resource_allocate()
212 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_allocate()
217 res_pool->free_count--; in fsl_mc_resource_allocate()
236 if (res_pool->free_count < 0 || in fsl_mc_resource_free()
237 res_pool->free_count >= res_pool->max_count) in fsl_mc_resource_free()
244 res_pool->free_count++; in fsl_mc_resource_free()
397 res_pool->free_count = irq_count; in fsl_mc_populate_irq_pool()
423 if (res_pool->free_count != res_pool->max_count) in fsl_mc_cleanup_irq_pool()
428 res_pool->free_count = 0; in fsl_mc_cleanup_irq_pool()
463 if (res_pool->free_count < irq_count) { in fsl_mc_allocate_irqs()
545 res_pool->free_count = 0; in fsl_mc_init_all_resource_pools()
560 int free_count = 0; in fsl_mc_cleanup_resource_pool() local
563 free_count++; in fsl_mc_cleanup_resource_pool()