/mm/ |
D | page_owner.c | 27 depot_stack_handle_t handle; member 104 depot_stack_handle_t handle; in get_page_owner_handle() local 115 handle = READ_ONCE(page_owner->handle); in get_page_owner_handle() 116 return handle; in get_page_owner_handle() 123 depot_stack_handle_t handle; in save_stack() local 139 handle = stack_depot_save(entries, nr_entries, flags); in save_stack() 140 if (!handle) in save_stack() 141 handle = failure_handle; in save_stack() 144 return handle; in save_stack() 151 depot_stack_handle_t handle; in __reset_page_owner() local [all …]
|
D | zbud.c | 78 int (*evict)(struct zbud_pool *pool, unsigned long handle); 176 unsigned long handle; in encode_handle() local 184 handle = (unsigned long)zhdr; in encode_handle() 187 handle += ZHDR_SIZE_ALIGNED; in encode_handle() 189 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle() 190 return handle; in encode_handle() 194 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header() argument 196 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header() 269 unsigned long *handle) in zbud_alloc() argument 327 *handle = encode_handle(zhdr, bud); in zbud_alloc() [all …]
|
D | zsmalloc.c | 248 unsigned long handle; member 353 static void cache_free_handle(struct zs_pool *pool, unsigned long handle) in cache_free_handle() argument 355 kmem_cache_free(pool->handle_cachep, (void *)handle); in cache_free_handle() 369 static void record_obj(unsigned long handle, unsigned long obj) in record_obj() argument 376 WRITE_ONCE(*(unsigned long *)handle, obj); in record_obj() 401 unsigned long *handle) in zs_zpool_malloc() argument 403 *handle = zs_malloc(pool, size, gfp); in zs_zpool_malloc() 404 return *handle ? 0 : -1; in zs_zpool_malloc() 406 static void zs_zpool_free(void *pool, unsigned long handle) in zs_zpool_free() argument 408 zs_free(pool, handle); in zs_zpool_free() [all …]
|
D | z3fold.c | 76 int (*evict)(struct z3fold_pool *pool, unsigned long handle); 235 static inline struct z3fold_buddy_slots *handle_to_slots(unsigned long handle) in handle_to_slots() argument 237 return (struct z3fold_buddy_slots *)(handle & ~(SLOTS_ALIGN - 1)); in handle_to_slots() 259 static inline struct z3fold_header *get_z3fold_header(unsigned long handle) in get_z3fold_header() argument 265 if (!(handle & (1 << PAGE_HEADLESS))) { in get_z3fold_header() 266 slots = handle_to_slots(handle); in get_z3fold_header() 271 addr = *(unsigned long *)handle; in get_z3fold_header() 280 zhdr = (struct z3fold_header *)(handle & PAGE_MASK); in get_z3fold_header() 294 static inline void free_handle(unsigned long handle, struct z3fold_header *zhdr) in free_handle() argument 300 if (handle & (1 << PAGE_HEADLESS)) in free_handle() [all …]
|
D | page_pinner.c | 21 depot_stack_handle_t handle; member 33 depot_stack_handle_t handle; member 119 depot_stack_handle_t handle; in save_stack() local 123 handle = stack_depot_save(entries, nr_entries, flags); in save_stack() 124 if (!handle) in save_stack() 125 handle = failure_handle; in save_stack() 127 return handle; in save_stack() 175 record.handle = save_stack(GFP_NOWAIT|__GFP_NOWARN); in __free_page_pinner() 232 nr_entries = stack_depot_fetch(record->handle, &entries); in print_page_pinner() 277 record.handle = save_stack(GFP_NOWAIT|__GFP_NOWARN); in __page_pinner_failure_detect() [all …]
|
D | zpool.c | 276 unsigned long *handle) in zpool_malloc() argument 278 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc() 295 void zpool_free(struct zpool *zpool, unsigned long handle) in zpool_free() argument 297 zpool->driver->free(zpool->pool, handle); in zpool_free() 346 void *zpool_map_handle(struct zpool *zpool, unsigned long handle, in zpool_map_handle() argument 349 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle() 362 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle) in zpool_unmap_handle() argument 364 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
|
D | zswap.c | 178 unsigned long handle; member 223 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle); 355 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry() 927 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle) in zswap_writeback_entry() argument 952 zhdr = zpool_map_handle(pool, handle, ZPOOL_MM_RO); in zswap_writeback_entry() 963 zpool_unmap_handle(pool, handle); in zswap_writeback_entry() 974 zpool_unmap_handle(pool, handle); in zswap_writeback_entry() 1049 zpool_unmap_handle(pool, handle); in zswap_writeback_entry() 1091 unsigned long handle, value; in zswap_frontswap_store() local 1194 ret = zpool_malloc(entry->pool->zpool, hlen + dlen, gfp, &handle); in zswap_frontswap_store() [all …]
|
D | dmapool.c | 315 dma_addr_t *handle) in dma_pool_alloc() argument 345 *handle = offset + page->dma; in dma_pool_alloc()
|
D | Kconfig | 705 non-standard allocator interface where a handle, not a pointer, is 706 returned by an alloc(). This handle must be mapped in order to 962 Try to handle user space page faults without holding the mmap lock.
|
D | memcontrol.c | 1920 bool mem_cgroup_oom_synchronize(bool handle) in mem_cgroup_oom_synchronize() argument 1930 if (!handle) in mem_cgroup_oom_synchronize()
|