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 …]
250 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_encl_ewb() local251 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() local304 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() local365 encl_page = epc_page->owner; in sgx_reclaim_pages()[all …]
129 static int __sgx_encl_eldu(struct sgx_encl_page *encl_page, in __sgx_encl_eldu() argument133 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_MASK; in __sgx_encl_eldu()134 struct sgx_encl *encl = encl_page->encl; in __sgx_encl_eldu()144 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in __sgx_encl_eldu()159 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_eldu()170 sgx_get_epc_virt_addr(encl_page->va_page->epc_page) + va_offset); in __sgx_encl_eldu()208 static struct sgx_epc_page *sgx_encl_eldu(struct sgx_encl_page *encl_page, in sgx_encl_eldu() argument212 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_MASK; in sgx_encl_eldu()213 struct sgx_encl *encl = encl_page->encl; in sgx_encl_eldu()217 epc_page = sgx_alloc_epc_page(encl_page, false); in sgx_encl_eldu()[all …]