Searched refs:pool (Results 1 - 2 of 2) sorted by relevance

/lib/
H A Dpercpu_ida.c63 static inline void steal_tags(struct percpu_ida *pool, argument
66 unsigned cpus_have_tags, cpu = pool->cpu_last_stolen;
69 for (cpus_have_tags = cpumask_weight(&pool->cpus_have_tags);
71 cpu = cpumask_next(cpu, &pool->cpus_have_tags);
74 cpu = cpumask_first(&pool->cpus_have_tags);
79 pool->cpu_last_stolen = cpu;
80 remote = per_cpu_ptr(pool->tag_cpu, cpu);
82 cpumask_clear_cpu(cpu, &pool->cpus_have_tags);
109 static inline void alloc_global_tags(struct percpu_ida *pool, argument
113 pool
147 percpu_ida_alloc(struct percpu_ida *pool, int state) argument
219 percpu_ida_free(struct percpu_ida *pool, unsigned tag) argument
269 percpu_ida_destroy(struct percpu_ida *pool) argument
289 __percpu_ida_init(struct percpu_ida *pool, unsigned long nr_tags, unsigned long max_size, unsigned long batch_size) argument
344 percpu_ida_for_each_free(struct percpu_ida *pool, percpu_ida_cb fn, void *data) argument
385 percpu_ida_free_tags(struct percpu_ida *pool, int cpu) argument
[all...]
H A Dgenalloc.c15 * available. If new memory is added to the pool a lock has to be
146 * gen_pool_create - create a new special memory pool
148 * @nid: node id of the node the pool structure should be allocated on, or -1
150 * Create a new special memory pool that can be used to manage special purpose
155 struct gen_pool *pool; local
157 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid);
158 if (pool != NULL) {
159 spin_lock_init(&pool->lock);
160 INIT_LIST_HEAD(&pool->chunks);
161 pool
182 gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, size_t size, int nid) argument
214 gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) argument
239 gen_pool_destroy(struct gen_pool *pool) argument
271 gen_pool_alloc(struct gen_pool *pool, size_t size) argument
326 gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) argument
354 gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) argument
392 gen_pool_for_each_chunk(struct gen_pool *pool, void (*func)(struct gen_pool *pool, struct gen_pool_chunk *chunk, void *data), void *data) argument
414 addr_in_gen_pool(struct gen_pool *pool, unsigned long start, size_t size) argument
440 gen_pool_avail(struct gen_pool *pool) argument
459 gen_pool_size(struct gen_pool *pool) argument
482 gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo, void *data) argument
587 struct gen_pool **ptr, *pool; local
[all...]

Completed in 95 milliseconds