Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 8 of 8) sorted by relevance

/mm/
Dmempool.c25 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument
28 const int nr = pool->curr_nr; in poison_error()
34 pr_err("Mempool %p size %zu\n", pool, size); in poison_error()
42 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element() argument
51 poison_error(pool, element, size, i); in __check_element()
58 static void check_element(mempool_t *pool, void *element) in check_element() argument
61 if (pool->free == mempool_free_slab || pool->free == mempool_kfree) in check_element()
62 __check_element(pool, element, ksize(element)); in check_element()
65 if (pool->free == mempool_free_pages) { in check_element()
66 int order = (int)(long)pool->pool_data; in check_element()
[all …]
Dz3fold.c75 int (*evict)(struct z3fold_pool *pool, unsigned long handle);
92 unsigned long pool; /* back link + flags */ member
119 struct z3fold_pool *pool; member
196 static inline struct z3fold_buddy_slots *alloc_slots(struct z3fold_pool *pool, in alloc_slots() argument
201 slots = kmem_cache_alloc(pool->c_handle, in alloc_slots()
206 slots->pool = (unsigned long)pool; in alloc_slots()
214 return (struct z3fold_pool *)(s->pool & ~HANDLE_FLAG_MASK); in slots_to_pool()
243 struct z3fold_pool *pool = slots_to_pool(slots); in free_handle() local
245 kmem_cache_free(pool->c_handle, slots); in free_handle()
278 static int z3fold_register_migration(struct z3fold_pool *pool) in z3fold_register_migration() argument
[all …]
Ddmapool.c71 struct dma_pool *pool; in show_pools() local
81 list_for_each_entry(pool, &dev->dma_pools, pools) { in show_pools()
85 spin_lock_irq(&pool->lock); in show_pools()
86 list_for_each_entry(page, &pool->page_list, page_list) { in show_pools()
90 spin_unlock_irq(&pool->lock); in show_pools()
94 pool->name, blocks, in show_pools()
95 pages * (pool->allocation / pool->size), in show_pools()
96 pool->size, pages); in show_pools()
205 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) in pool_initialise_page() argument
208 unsigned int next_boundary = pool->boundary; in pool_initialise_page()
[all …]
Dzbud.c129 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict() argument
131 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in zbud_zpool_evict()
132 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict()
145 struct zbud_pool *pool; in zbud_zpool_create() local
147 pool = zbud_create_pool(gfp, zpool_ops ? &zbud_zpool_ops : NULL); in zbud_zpool_create()
148 if (pool) { in zbud_zpool_create()
149 pool->zpool = zpool; in zbud_zpool_create()
150 pool->zpool_ops = zpool_ops; in zbud_zpool_create()
152 return pool; in zbud_zpool_create()
155 static void zbud_zpool_destroy(void *pool) in zbud_zpool_destroy() argument
[all …]
Dzswap.c156 struct zswap_pool *pool; member
203 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle);
204 static int zswap_pool_get(struct zswap_pool *pool);
205 static void zswap_pool_put(struct zswap_pool *pool);
219 struct zswap_pool *pool; in zswap_update_total_size() local
224 list_for_each_entry_rcu(pool, &zswap_pools, list) in zswap_update_total_size()
225 total += zpool_get_total_size(pool->zpool); in zswap_update_total_size()
328 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry()
329 zswap_pool_put(entry->pool); in zswap_free_entry()
400 struct zswap_pool *pool = hlist_entry(node, struct zswap_pool, node); in zswap_cpu_comp_prepare() local
[all …]
Dzsmalloc.c306 static int zs_register_migration(struct zs_pool *pool);
307 static void zs_unregister_migration(struct zs_pool *pool);
311 static void kick_deferred_free(struct zs_pool *pool);
312 static void init_deferred_free(struct zs_pool *pool);
313 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage);
317 static int zs_register_migration(struct zs_pool *pool) { return 0; } in zs_register_migration() argument
318 static void zs_unregister_migration(struct zs_pool *pool) {} in zs_unregister_migration() argument
322 static void kick_deferred_free(struct zs_pool *pool) {} in kick_deferred_free() argument
323 static void init_deferred_free(struct zs_pool *pool) {} in init_deferred_free() argument
324 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {} in SetZsPageMovable() argument
[all …]
Dzpool.c23 void *pool; member
183 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool()
187 if (!zpool->pool) { in zpool_create_pool()
221 zpool->driver->destroy(zpool->pool); in zpool_destroy_pool()
276 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc()
295 zpool->driver->free(zpool->pool, handle); in zpool_free()
319 zpool->driver->shrink(zpool->pool, pages, reclaimed) : -EINVAL; in zpool_shrink()
347 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle()
362 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
375 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()
DKconfig533 compress them into a dynamically allocated RAM-based memory pool.