Lines Matching refs:encl_page
250 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_encl_ewb() local
251 struct sgx_encl *encl = encl_page->encl; in sgx_encl_ewb()
257 encl_page->desc &= ~SGX_ENCL_PAGE_BEING_RECLAIMED; in sgx_encl_ewb()
295 encl_page->desc |= va_offset; in sgx_encl_ewb()
296 encl_page->va_page = va_page; in sgx_encl_ewb()
303 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_reclaimer_write() local
304 struct sgx_encl *encl = encl_page->encl; in sgx_reclaimer_write()
311 encl_page->epc_page = NULL; in sgx_reclaimer_write()
350 struct sgx_encl_page *encl_page; in sgx_reclaim_pages() local
365 encl_page = epc_page->owner; in sgx_reclaim_pages()
367 if (kref_get_unless_zero(&encl_page->encl->refcount) != 0) in sgx_reclaim_pages()
379 encl_page = epc_page->owner; in sgx_reclaim_pages()
384 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in sgx_reclaim_pages()
386 mutex_lock(&encl_page->encl->lock); in sgx_reclaim_pages()
387 ret = sgx_encl_alloc_backing(encl_page->encl, page_index, &backing[i]); in sgx_reclaim_pages()
389 mutex_unlock(&encl_page->encl->lock); in sgx_reclaim_pages()
393 encl_page->desc |= SGX_ENCL_PAGE_BEING_RECLAIMED; in sgx_reclaim_pages()
394 mutex_unlock(&encl_page->encl->lock); in sgx_reclaim_pages()
402 kref_put(&encl_page->encl->refcount, sgx_encl_release); in sgx_reclaim_pages()
418 encl_page = epc_page->owner; in sgx_reclaim_pages()
421 kref_put(&encl_page->encl->refcount, sgx_encl_release); in sgx_reclaim_pages()