Searched refs:encl_page (Results 1 – 3 of 3) sorted by relevance
175 struct sgx_encl_page *encl_page; in sgx_encl_page_alloc() local178 encl_page = kzalloc(sizeof(*encl_page), GFP_KERNEL); in sgx_encl_page_alloc()179 if (!encl_page) in sgx_encl_page_alloc()183 encl_page->encl = encl; in sgx_encl_page_alloc()200 return encl_page; in sgx_encl_page_alloc()300 if (IS_ERR(encl_page)) in sgx_encl_add_page()301 return PTR_ERR(encl_page); in sgx_encl_add_page()305 kfree(encl_page); in sgx_encl_add_page()331 encl_page, GFP_KERNEL); in sgx_encl_add_page()345 encl_page->encl = encl; in sgx_encl_add_page()[all …]
228 struct sgx_encl *encl = encl_page->encl; in sgx_encl_ewb()272 encl_page->desc |= va_offset; in sgx_encl_ewb()273 encl_page->va_page = va_page; in sgx_encl_ewb()288 encl_page->epc_page = NULL; in sgx_reclaimer_write()327 struct sgx_encl_page *encl_page; in sgx_reclaim_pages() local343 encl_page = epc_page->owner; in sgx_reclaim_pages()357 encl_page = epc_page->owner; in sgx_reclaim_pages()362 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in sgx_reclaim_pages()367 mutex_lock(&encl_page->encl->lock); in sgx_reclaim_pages()369 mutex_unlock(&encl_page->encl->lock); in sgx_reclaim_pages()[all …]
19 static int __sgx_encl_eldu(struct sgx_encl_page *encl_page, in __sgx_encl_eldu() argument24 struct sgx_encl *encl = encl_page->encl; in __sgx_encl_eldu()31 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in __sgx_encl_eldu()39 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_eldu()71 struct sgx_encl *encl = encl_page->encl; in sgx_encl_eldu()75 epc_page = sgx_alloc_epc_page(encl_page, false); in sgx_encl_eldu()79 ret = __sgx_encl_eldu(encl_page, epc_page, secs_page); in sgx_encl_eldu()85 sgx_free_va_slot(encl_page->va_page, va_offset); in sgx_encl_eldu()86 list_move(&encl_page->va_page->list, &encl->va_pages); in sgx_encl_eldu()87 encl_page->desc &= ~SGX_ENCL_PAGE_VA_OFFSET_MASK; in sgx_encl_eldu()[all …]
Completed in 6 milliseconds