Lines Matching refs:pool
167 static void tmem_cleancache_put_page(int pool, struct cleancache_filekey key, in tmem_cleancache_put_page() argument
173 if (pool < 0) in tmem_cleancache_put_page()
178 (void)xen_tmem_put_page((u32)pool, oid, ind, page); in tmem_cleancache_put_page()
181 static int tmem_cleancache_get_page(int pool, struct cleancache_filekey key, in tmem_cleancache_get_page() argument
189 if (pool < 0) in tmem_cleancache_get_page()
193 ret = xen_tmem_get_page((u32)pool, oid, ind, page); in tmem_cleancache_get_page()
200 static void tmem_cleancache_flush_page(int pool, struct cleancache_filekey key, in tmem_cleancache_flush_page() argument
206 if (pool < 0) in tmem_cleancache_flush_page()
210 (void)xen_tmem_flush_page((u32)pool, oid, ind); in tmem_cleancache_flush_page()
213 static void tmem_cleancache_flush_inode(int pool, struct cleancache_filekey key) in tmem_cleancache_flush_inode() argument
217 if (pool < 0) in tmem_cleancache_flush_inode()
219 (void)xen_tmem_flush_object((u32)pool, oid); in tmem_cleancache_flush_inode()
222 static void tmem_cleancache_flush_fs(int pool) in tmem_cleancache_flush_fs() argument
224 if (pool < 0) in tmem_cleancache_flush_fs()
226 (void)xen_tmem_destroy_pool((u32)pool); in tmem_cleancache_flush_fs()
284 int pool = tmem_frontswap_poolid; in tmem_frontswap_store() local
291 if (pool < 0) in tmem_frontswap_store()
296 ret = xen_tmem_put_page(pool, oswiz(type, ind), iswiz(ind), page); in tmem_frontswap_store()
313 int pool = tmem_frontswap_poolid; in tmem_frontswap_load() local
316 if (pool < 0) in tmem_frontswap_load()
320 ret = xen_tmem_get_page(pool, oswiz(type, ind), iswiz(ind), page); in tmem_frontswap_load()
333 int pool = tmem_frontswap_poolid; in tmem_frontswap_flush_page() local
335 if (pool < 0) in tmem_frontswap_flush_page()
339 (void) xen_tmem_flush_page(pool, oswiz(type, ind), iswiz(ind)); in tmem_frontswap_flush_page()
345 int pool = tmem_frontswap_poolid; in tmem_frontswap_flush_area() local
348 if (pool < 0) in tmem_frontswap_flush_area()
351 (void)xen_tmem_flush_object(pool, oswiz(type, ind)); in tmem_frontswap_flush_area()