/mm/ |
D | mempool.c | 24 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument 27 const int nr = pool->curr_nr; in poison_error() 33 pr_err("Mempool %p size %zu\n", pool, size); in poison_error() 41 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element() argument 50 poison_error(pool, element, size, i); in __check_element() 57 static void check_element(mempool_t *pool, void *element) in check_element() argument 60 if (pool->free == mempool_free_slab || pool->free == mempool_kfree) in check_element() 61 __check_element(pool, element, ksize(element)); in check_element() 64 if (pool->free == mempool_free_pages) { in check_element() 65 int order = (int)(long)pool->pool_data; in check_element() [all …]
|
D | dmapool.c | 74 struct dma_pool *pool; in show_pools() local 84 list_for_each_entry(pool, &dev->dma_pools, pools) { in show_pools() 88 spin_lock_irq(&pool->lock); in show_pools() 89 list_for_each_entry(page, &pool->page_list, page_list) { in show_pools() 93 spin_unlock_irq(&pool->lock); in show_pools() 97 pool->name, blocks, in show_pools() 98 pages * (pool->allocation / pool->size), in show_pools() 99 pool->size, pages); in show_pools() 206 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) in pool_initialise_page() argument 209 unsigned int next_boundary = pool->boundary; in pool_initialise_page() [all …]
|
D | zbud.c | 128 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict() argument 130 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in zbud_zpool_evict() 131 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict() 144 struct zbud_pool *pool; in zbud_zpool_create() local 146 pool = zbud_create_pool(gfp, zpool_ops ? &zbud_zpool_ops : NULL); in zbud_zpool_create() 147 if (pool) { in zbud_zpool_create() 148 pool->zpool = zpool; in zbud_zpool_create() 149 pool->zpool_ops = zpool_ops; in zbud_zpool_create() 151 return pool; in zbud_zpool_create() 154 static void zbud_zpool_destroy(void *pool) in zbud_zpool_destroy() argument [all …]
|
D | zswap.c | 155 struct zswap_pool *pool; member 196 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle); 197 static int zswap_pool_get(struct zswap_pool *pool); 198 static void zswap_pool_put(struct zswap_pool *pool); 212 struct zswap_pool *pool; in zswap_update_total_size() local 217 list_for_each_entry_rcu(pool, &zswap_pools, list) in zswap_update_total_size() 218 total += zpool_get_total_size(pool->zpool); in zswap_update_total_size() 318 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry() 319 zswap_pool_put(entry->pool); in zswap_free_entry() 430 static int __zswap_cpu_comp_notifier(struct zswap_pool *pool, in __zswap_cpu_comp_notifier() argument [all …]
|
D | zsmalloc.c | 287 static int create_handle_cache(struct zs_pool *pool) in create_handle_cache() argument 289 pool->handle_cachep = kmem_cache_create("zs_handle", ZS_HANDLE_SIZE, in create_handle_cache() 291 return pool->handle_cachep ? 0 : 1; in create_handle_cache() 294 static void destroy_handle_cache(struct zs_pool *pool) in destroy_handle_cache() argument 296 kmem_cache_destroy(pool->handle_cachep); in destroy_handle_cache() 299 static unsigned long alloc_handle(struct zs_pool *pool) in alloc_handle() argument 301 return (unsigned long)kmem_cache_alloc(pool->handle_cachep, in alloc_handle() 302 pool->flags & ~__GFP_HIGHMEM); in alloc_handle() 305 static void free_handle(struct zs_pool *pool, unsigned long handle) in free_handle() argument 307 kmem_cache_free(pool->handle_cachep, (void *)handle); in free_handle() [all …]
|
D | zpool.c | 22 void *pool; member 181 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool() 184 if (!zpool->pool) { in zpool_create_pool() 218 zpool->driver->destroy(zpool->pool); in zpool_destroy_pool() 257 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc() 276 zpool->driver->free(zpool->pool, handle); in zpool_free() 299 return zpool->driver->shrink(zpool->pool, pages, reclaimed); in zpool_shrink() 327 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle() 342 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle() 355 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()
|
D | Kconfig | 287 # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often 289 # a 32-bit address to OHCI. So we need to use a bounce pool instead. 541 compress them into a dynamically allocated RAM-based memory pool.
|