Searched refs:mem_pool (Results 1 – 4 of 4) sorted by relevance
286 zs_get_total_pages(zram->mem_pool)); in mem_used_max_store()1064 zs_compact(zram->mem_pool); in compact_store()1101 mem_used = zs_get_total_pages(zram->mem_pool); in mm_stat_show()1102 zs_pool_stats(zram->mem_pool, &pool_stats); in mm_stat_show()1178 zs_destroy_pool(zram->mem_pool); in zram_meta_free()1191 zram->mem_pool = zs_create_pool(zram->disk->disk_name); in zram_meta_alloc()1192 if (!zram->mem_pool) { in zram_meta_alloc()1198 huge_class_size = zs_huge_class_size(zram->mem_pool); in zram_meta_alloc()1242 zs_free(zram->mem_pool, handle); in zram_free_page()1295 src = zs_map_object(zram->mem_pool, handle, ZS_MM_RO); in __zram_bvec_read()[all …]
95 struct zs_pool *mem_pool; member
99 struct kmem_cache *mem_pool; /* kmem cache for gsmi_buf allocations */ member163 smibuf->start = kmem_cache_alloc(gsmi_dev.mem_pool, GFP_KERNEL); in gsmi_buf_alloc()181 kmem_cache_free(gsmi_dev.mem_pool, smibuf->start); in gsmi_buf_free()928 gsmi_dev.mem_pool = kmem_cache_create("gsmi", GSMI_BUF_SIZE, in gsmi_init()931 if (!gsmi_dev.mem_pool) in gsmi_init()1047 kmem_cache_destroy(gsmi_dev.mem_pool); in gsmi_init()1072 kmem_cache_destroy(gsmi_dev.mem_pool); in gsmi_exit()
191 static struct kmemleak_object mem_pool[CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE]; variable192 static int mem_pool_free_count = ARRAY_SIZE(mem_pool);442 object = &mem_pool[--mem_pool_free_count]; in mem_pool_alloc()457 if (object < mem_pool || object >= mem_pool + ARRAY_SIZE(mem_pool)) { in mem_pool_free()