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()182 encl_page->desc = encl->base + offset; in sgx_encl_page_alloc()183 encl_page->encl = encl; in sgx_encl_page_alloc()198 encl_page->vm_max_prot_bits = calc_vm_prot_bits(prot, 0); in sgx_encl_page_alloc()200 return encl_page; in sgx_encl_page_alloc()231 struct sgx_encl_page *encl_page, in __sgx_encl_add_page() argument253 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_add_page()294 struct sgx_encl_page *encl_page; in sgx_encl_add_page() local[all …]
228 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_encl_ewb() local229 struct sgx_encl *encl = encl_page->encl; in sgx_encl_ewb()235 encl_page->desc &= ~SGX_ENCL_PAGE_BEING_RECLAIMED; in sgx_encl_ewb()273 encl_page->desc |= va_offset; in sgx_encl_ewb()274 encl_page->va_page = va_page; in sgx_encl_ewb()281 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_reclaimer_write() local282 struct sgx_encl *encl = encl_page->encl; in sgx_reclaimer_write()289 encl_page->epc_page = NULL; in sgx_reclaimer_write()328 struct sgx_encl_page *encl_page; in sgx_reclaim_pages() local344 encl_page = epc_page->owner; in sgx_reclaim_pages()[all …]
19 static int __sgx_encl_eldu(struct sgx_encl_page *encl_page, in __sgx_encl_eldu() argument23 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_MASK; in __sgx_encl_eldu()24 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()50 sgx_get_epc_virt_addr(encl_page->va_page->epc_page) + va_offset); in __sgx_encl_eldu()66 static struct sgx_epc_page *sgx_encl_eldu(struct sgx_encl_page *encl_page, in sgx_encl_eldu() argument70 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_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()[all …]