Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 7 of 7) sorted by relevance

/mm/
Dzbud.c124 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict() argument
126 return zpool_evict(pool, handle); in zbud_zpool_evict()
145 unsigned long *handle) in zbud_zpool_malloc() argument
147 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc()
149 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free() argument
151 zbud_free(pool, handle); in zbud_zpool_free()
173 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map() argument
176 return zbud_map(pool, handle); in zbud_zpool_map()
178 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap() argument
180 zbud_unmap(pool, handle); in zbud_zpool_unmap()
[all …]
Dzsmalloc.c245 unsigned long handle; member
302 static void free_handle(struct zs_pool *pool, unsigned long handle) in free_handle() argument
304 kmem_cache_free(pool->handle_cachep, (void *)handle); in free_handle()
307 static void record_obj(unsigned long handle, unsigned long obj) in record_obj() argument
309 *(unsigned long *)handle = obj; in record_obj()
327 unsigned long *handle) in zs_zpool_malloc() argument
329 *handle = zs_malloc(pool, size); in zs_zpool_malloc()
330 return *handle ? 0 : -1; in zs_zpool_malloc()
332 static void zs_zpool_free(void *pool, unsigned long handle) in zs_zpool_free() argument
334 zs_free(pool, handle); in zs_zpool_free()
[all …]
Dzpool.c84 int zpool_evict(void *pool, unsigned long handle) in zpool_evict() argument
94 return zpool->ops->evict(zpool, handle); in zpool_evict()
247 unsigned long *handle) in zpool_malloc() argument
249 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc()
266 void zpool_free(struct zpool *zpool, unsigned long handle) in zpool_free() argument
268 zpool->driver->free(zpool->pool, handle); in zpool_free()
316 void *zpool_map_handle(struct zpool *zpool, unsigned long handle, in zpool_map_handle() argument
319 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle()
332 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle) in zpool_unmap_handle() argument
334 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
Dzswap.c185 unsigned long handle; member
297 zpool_free(zswap_pool, entry->handle); in zswap_free_entry()
533 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle) in zswap_writeback_entry() argument
549 zhdr = zpool_map_handle(pool, handle, ZPOOL_MM_RO); in zswap_writeback_entry()
551 zpool_unmap_handle(pool, handle); in zswap_writeback_entry()
581 src = (u8 *)zpool_map_handle(zswap_pool, entry->handle, in zswap_writeback_entry()
587 zpool_unmap_handle(zswap_pool, entry->handle); in zswap_writeback_entry()
647 unsigned long handle; in zswap_frontswap_store() local
688 &handle); in zswap_frontswap_store()
697 zhdr = zpool_map_handle(zswap_pool, handle, ZPOOL_MM_RW); in zswap_frontswap_store()
[all …]
Ddmapool.c319 dma_addr_t *handle) in dma_pool_alloc() argument
349 *handle = offset + page->dma; in dma_pool_alloc()
DKconfig587 non-standard allocator interface where a handle, not a pointer, is
588 returned by an alloc(). This handle must be mapped in order to
Dmemcontrol.c2148 bool mem_cgroup_oom_synchronize(bool handle) in mem_cgroup_oom_synchronize() argument
2158 if (!handle) in mem_cgroup_oom_synchronize()