Home
last modified time | relevance | path

Searched refs:mem_pool (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/block/zram/
H A Dzram_drv.c271 zs_get_total_pages(zram->mem_pool)); in mem_used_max_store()
1114 zs_compact(zram->mem_pool); in compact_store()
1151 zs_pool_stats(zram->mem_pool, &pool_stats); in mm_stat_show()
1227 zs_destroy_pool(zram->mem_pool); in zram_meta_free()
1241 if (!zram->mem_pool) { in zram_meta_alloc()
1296 zs_free(zram->mem_pool, handle); in zram_free_page()
1353 zs_unmap_object(zram->mem_pool, handle); in zram_read_from_zspool()
1442 zs_free(zram->mem_pool, handle); in zram_write_page()
1493 zs_free(zram->mem_pool, handle); in zram_write_page()
1507 zs_unmap_object(zram->mem_pool, handle); in zram_write_page()
[all …]
H A Dzram_drv.h108 struct zs_pool *mem_pool; member
/openbmc/linux/drivers/firmware/google/
H A Dgsmi.c99 struct kmem_cache *mem_pool; /* kmem cache for gsmi_buf allocations */ member
163 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()
938 gsmi_dev.mem_pool = kmem_cache_create("gsmi", GSMI_BUF_SIZE, in gsmi_init()
941 if (!gsmi_dev.mem_pool) in gsmi_init()
1057 kmem_cache_destroy(gsmi_dev.mem_pool); in gsmi_init()
1082 kmem_cache_destroy(gsmi_dev.mem_pool); in gsmi_exit()
/openbmc/linux/mm/
H A Dkmemleak.c202 static struct kmemleak_object mem_pool[CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE]; variable
203 static int mem_pool_free_count = ARRAY_SIZE(mem_pool);
470 object = &mem_pool[--mem_pool_free_count]; in mem_pool_alloc()
485 if (object < mem_pool || object >= mem_pool + ARRAY_SIZE(mem_pool)) { in mem_pool_free()