Searched refs:zs_pool (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/include/linux/
H A Dzsmalloc.h37 struct zs_pool;
39 struct zs_pool *zs_create_pool(char *name, gfp_t flags);
40 void zs_destroy_pool(struct zs_pool *pool);
42 unsigned long zs_malloc(struct zs_pool *pool, size_t size);
43 void zs_free(struct zs_pool *pool, unsigned long obj);
45 void *zs_map_object(struct zs_pool *pool, unsigned long handle,
47 void zs_unmap_object(struct zs_pool *pool, unsigned long handle);
49 unsigned long zs_get_total_pages(struct zs_pool *pool);
50 unsigned long zs_compact(struct zs_pool *pool);
/linux-4.1.27/mm/
H A Dzsmalloc.c249 struct zs_pool { struct
283 static int create_handle_cache(struct zs_pool *pool) create_handle_cache()
290 static void destroy_handle_cache(struct zs_pool *pool) destroy_handle_cache()
296 static unsigned long alloc_handle(struct zs_pool *pool) alloc_handle()
302 static void free_handle(struct zs_pool *pool, unsigned long handle) free_handle()
492 struct zs_pool *pool = s->private; zs_stats_size_show()
556 static int zs_pool_stat_create(char *name, struct zs_pool *pool) zs_pool_stat_create()
581 static void zs_pool_stat_destroy(struct zs_pool *pool) zs_pool_stat_destroy()
613 static inline int zs_pool_stat_create(char *name, struct zs_pool *pool) zs_pool_stat_create()
618 static inline void zs_pool_stat_destroy(struct zs_pool *pool) zs_pool_stat_destroy()
1241 unsigned long zs_get_total_pages(struct zs_pool *pool) zs_get_total_pages()
1261 void *zs_map_object(struct zs_pool *pool, unsigned long handle, zs_map_object()
1315 void zs_unmap_object(struct zs_pool *pool, unsigned long handle) zs_unmap_object()
1391 unsigned long zs_malloc(struct zs_pool *pool, size_t size) zs_malloc()
1438 static void obj_free(struct zs_pool *pool, struct size_class *class, obj_free()
1470 void zs_free(struct zs_pool *pool, unsigned long handle) zs_free()
1617 static int migrate_zspage(struct zs_pool *pool, struct size_class *class, migrate_zspage()
1686 static void putback_zspage(struct zs_pool *pool, struct size_class *class, putback_zspage()
1718 static unsigned long __zs_compact(struct zs_pool *pool, __zs_compact()
1771 unsigned long zs_compact(struct zs_pool *pool) zs_compact()
1800 struct zs_pool *zs_create_pool(char *name, gfp_t flags) zs_create_pool()
1803 struct zs_pool *pool; zs_create_pool()
1883 void zs_destroy_pool(struct zs_pool *pool) zs_destroy_pool()
/linux-4.1.27/drivers/block/zram/
H A Dzram_drv.h99 struct zs_pool *mem_pool;

Completed in 147 milliseconds