Home
last modified time | relevance | path

Searched refs:encl_page (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/arch/x86/kernel/cpu/sgx/
Dioctl.c175 struct sgx_encl_page *encl_page; in sgx_encl_page_alloc() local
178 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() argument
253 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 …]
Dmain.c250 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()
[all …]
Dencl.c129 static int __sgx_encl_eldu(struct sgx_encl_page *encl_page, in __sgx_encl_eldu() argument
133 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() argument
212 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 …]