Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dzsmalloc.h42 struct zs_pool;
44 struct zs_pool *zs_create_pool(const char *name, gfp_t flags);
45 void zs_destroy_pool(struct zs_pool *pool);
47 unsigned long zs_malloc(struct zs_pool *pool, size_t size);
48 void zs_free(struct zs_pool *pool, unsigned long obj);
50 void *zs_map_object(struct zs_pool *pool, unsigned long handle,
52 void zs_unmap_object(struct zs_pool *pool, unsigned long handle);
54 unsigned long zs_get_total_pages(struct zs_pool *pool);
55 unsigned long zs_compact(struct zs_pool *pool);
57 void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats);
/linux-4.4.14/mm/
Dzsmalloc.c244 struct zs_pool { struct
287 static int create_handle_cache(struct zs_pool *pool) in create_handle_cache()
294 static void destroy_handle_cache(struct zs_pool *pool) in destroy_handle_cache()
299 static unsigned long alloc_handle(struct zs_pool *pool) in alloc_handle()
305 static void free_handle(struct zs_pool *pool, unsigned long handle) in free_handle()
501 struct zs_pool *pool = s->private; in zs_stats_size_show()
565 static int zs_pool_stat_create(const char *name, struct zs_pool *pool) in zs_pool_stat_create()
590 static void zs_pool_stat_destroy(struct zs_pool *pool) in zs_pool_stat_destroy()
605 static inline int zs_pool_stat_create(const char *name, struct zs_pool *pool) in zs_pool_stat_create()
610 static inline void zs_pool_stat_destroy(struct zs_pool *pool) in zs_pool_stat_destroy()
[all …]
/linux-4.4.14/drivers/block/zram/
Dzram_drv.h92 struct zs_pool *mem_pool;