Searched refs:pool (Results 1 – 5 of 5) sorted by relevance
/lib/ |
D | percpu_ida.c | 60 static inline void steal_tags(struct percpu_ida *pool, in steal_tags() argument 63 unsigned cpus_have_tags, cpu = pool->cpu_last_stolen; in steal_tags() 66 for (cpus_have_tags = cpumask_weight(&pool->cpus_have_tags); in steal_tags() 68 cpu = cpumask_next(cpu, &pool->cpus_have_tags); in steal_tags() 71 cpu = cpumask_first(&pool->cpus_have_tags); in steal_tags() 76 pool->cpu_last_stolen = cpu; in steal_tags() 77 remote = per_cpu_ptr(pool->tag_cpu, cpu); in steal_tags() 79 cpumask_clear_cpu(cpu, &pool->cpus_have_tags); in steal_tags() 106 static inline void alloc_global_tags(struct percpu_ida *pool, in alloc_global_tags() argument 110 pool->freelist, &pool->nr_free, in alloc_global_tags() [all …]
|
D | genalloc.c | 154 struct gen_pool *pool; in gen_pool_create() local 156 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); in gen_pool_create() 157 if (pool != NULL) { in gen_pool_create() 158 spin_lock_init(&pool->lock); in gen_pool_create() 159 INIT_LIST_HEAD(&pool->chunks); in gen_pool_create() 160 pool->min_alloc_order = min_alloc_order; in gen_pool_create() 161 pool->algo = gen_pool_first_fit; in gen_pool_create() 162 pool->data = NULL; in gen_pool_create() 163 pool->name = NULL; in gen_pool_create() 165 return pool; in gen_pool_create() [all …]
|
D | iommu-common.c | 106 struct iommu_pool *pool; in iommu_tbl_range_alloc() local 126 pool = &(iommu->large_pool); in iommu_tbl_range_alloc() 131 pool = &(iommu->pools[pool_nr]); in iommu_tbl_range_alloc() 133 spin_lock_irqsave(&pool->lock, flags); in iommu_tbl_range_alloc() 137 (*handle >= pool->start) && (*handle < pool->end)) in iommu_tbl_range_alloc() 140 start = pool->hint; in iommu_tbl_range_alloc() 142 limit = pool->end; in iommu_tbl_range_alloc() 151 start = pool->start; in iommu_tbl_range_alloc() 160 spin_unlock(&(pool->lock)); in iommu_tbl_range_alloc() 161 pool = &(iommu->pools[0]); in iommu_tbl_range_alloc() [all …]
|
D | sg_pool.c | 13 mempool_t *pool; member 58 mempool_free(sgl, sgp->pool); in sg_pool_free() 66 return mempool_alloc(sgp->pool, gfp_mask); in sg_pool_alloc() 137 sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE, in sg_pool_init() 139 if (!sgp->pool) { in sg_pool_init() 151 if (sgp->pool) in sg_pool_init() 152 mempool_destroy(sgp->pool); in sg_pool_init() 166 mempool_destroy(sgp->pool); in sg_pool_exit()
|
D | Kconfig.debug | 876 worker pool doesn't make forward progress on a pending work
|