Lines Matching refs:pool
171 static void tmem_cleancache_put_page(int pool, struct cleancache_filekey key, in tmem_cleancache_put_page() argument
178 if (pool < 0) in tmem_cleancache_put_page()
183 (void)xen_tmem_put_page((u32)pool, oid, ind, pfn); in tmem_cleancache_put_page()
186 static int tmem_cleancache_get_page(int pool, struct cleancache_filekey key, in tmem_cleancache_get_page() argument
195 if (pool < 0) in tmem_cleancache_get_page()
199 ret = xen_tmem_get_page((u32)pool, oid, ind, pfn); in tmem_cleancache_get_page()
206 static void tmem_cleancache_flush_page(int pool, struct cleancache_filekey key, in tmem_cleancache_flush_page() argument
212 if (pool < 0) in tmem_cleancache_flush_page()
216 (void)xen_tmem_flush_page((u32)pool, oid, ind); in tmem_cleancache_flush_page()
219 static void tmem_cleancache_flush_inode(int pool, struct cleancache_filekey key) in tmem_cleancache_flush_inode() argument
223 if (pool < 0) in tmem_cleancache_flush_inode()
225 (void)xen_tmem_flush_object((u32)pool, oid); in tmem_cleancache_flush_inode()
228 static void tmem_cleancache_flush_fs(int pool) in tmem_cleancache_flush_fs() argument
230 if (pool < 0) in tmem_cleancache_flush_fs()
232 (void)xen_tmem_destroy_pool((u32)pool); in tmem_cleancache_flush_fs()
291 int pool = tmem_frontswap_poolid; in tmem_frontswap_store() local
294 if (pool < 0) in tmem_frontswap_store()
299 ret = xen_tmem_put_page(pool, oswiz(type, ind), iswiz(ind), pfn); in tmem_frontswap_store()
317 int pool = tmem_frontswap_poolid; in tmem_frontswap_load() local
320 if (pool < 0) in tmem_frontswap_load()
324 ret = xen_tmem_get_page(pool, oswiz(type, ind), iswiz(ind), pfn); in tmem_frontswap_load()
337 int pool = tmem_frontswap_poolid; in tmem_frontswap_flush_page() local
339 if (pool < 0) in tmem_frontswap_flush_page()
343 (void) xen_tmem_flush_page(pool, oswiz(type, ind), iswiz(ind)); in tmem_frontswap_flush_page()
349 int pool = tmem_frontswap_poolid; in tmem_frontswap_flush_area() local
352 if (pool < 0) in tmem_frontswap_flush_area()
355 (void)xen_tmem_flush_object(pool, oswiz(type, ind)); in tmem_frontswap_flush_area()