Lines Matching refs:oid
80 u64 oid[3]; member
91 static inline int xen_tmem_op(u32 tmem_cmd, u32 tmem_pool, struct tmem_oid oid, in xen_tmem_op() argument
99 op.u.gen.oid[0] = oid.oid[0]; in xen_tmem_op()
100 op.u.gen.oid[1] = oid.oid[1]; in xen_tmem_op()
101 op.u.gen.oid[2] = oid.oid[2]; in xen_tmem_op()
131 static int xen_tmem_put_page(u32 pool_id, struct tmem_oid oid, in xen_tmem_put_page() argument
136 return xen_tmem_op(TMEM_PUT_PAGE, pool_id, oid, index, in xen_tmem_put_page()
140 static int xen_tmem_get_page(u32 pool_id, struct tmem_oid oid, in xen_tmem_get_page() argument
145 return xen_tmem_op(TMEM_GET_PAGE, pool_id, oid, index, in xen_tmem_get_page()
149 static int xen_tmem_flush_page(u32 pool_id, struct tmem_oid oid, u32 index) in xen_tmem_flush_page() argument
151 return xen_tmem_op(TMEM_FLUSH_PAGE, pool_id, oid, index, in xen_tmem_flush_page()
155 static int xen_tmem_flush_object(u32 pool_id, struct tmem_oid oid) in xen_tmem_flush_object() argument
157 return xen_tmem_op(TMEM_FLUSH_OBJECT, pool_id, oid, 0, 0, 0, 0, 0); in xen_tmem_flush_object()
164 struct tmem_oid oid = { { 0 } }; in xen_tmem_destroy_pool() local
166 return xen_tmem_op(TMEM_DESTROY_POOL, pool_id, oid, 0, 0, 0, 0, 0); in xen_tmem_destroy_pool()
175 struct tmem_oid oid = *(struct tmem_oid *)&key; in tmem_cleancache_put_page() local
183 (void)xen_tmem_put_page((u32)pool, oid, ind, pfn); in tmem_cleancache_put_page()
190 struct tmem_oid oid = *(struct tmem_oid *)&key; in tmem_cleancache_get_page() local
199 ret = xen_tmem_get_page((u32)pool, oid, ind, pfn); in tmem_cleancache_get_page()
210 struct tmem_oid oid = *(struct tmem_oid *)&key; in tmem_cleancache_flush_page() local
216 (void)xen_tmem_flush_page((u32)pool, oid, ind); in tmem_cleancache_flush_page()
221 struct tmem_oid oid = *(struct tmem_oid *)&key; in tmem_cleancache_flush_inode() local
225 (void)xen_tmem_flush_object((u32)pool, oid); in tmem_cleancache_flush_inode()
279 struct tmem_oid oid = { .oid = { 0 } }; in oswiz() local
280 oid.oid[0] = _oswiz(type, ind); in oswiz()
281 return oid; in oswiz()