Searched refs:encl_page (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | encl.c | 132 static int __sgx_encl_eldu(struct sgx_encl_page *encl_page, in __sgx_encl_eldu() argument 136 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_MASK; in __sgx_encl_eldu() 137 struct sgx_encl *encl = encl_page->encl; in __sgx_encl_eldu() 147 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in __sgx_encl_eldu() 162 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_eldu() 173 sgx_get_epc_virt_addr(encl_page->va_page->epc_page) + va_offset); in __sgx_encl_eldu() 211 static struct sgx_epc_page *sgx_encl_eldu(struct sgx_encl_page *encl_page, in sgx_encl_eldu() argument 215 unsigned long va_offset = encl_page->desc & SGX_ENCL_PAGE_VA_OFFSET_MASK; in sgx_encl_eldu() 216 struct sgx_encl *encl = encl_page->encl; in sgx_encl_eldu() 220 epc_page = sgx_alloc_epc_page(encl_page, false); in sgx_encl_eldu() [all …]
|
D | main.c | 200 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_encl_ewb() local 201 struct sgx_encl *encl = encl_page->encl; in sgx_encl_ewb() 207 encl_page->desc &= ~SGX_ENCL_PAGE_BEING_RECLAIMED; in sgx_encl_ewb() 245 encl_page->desc |= va_offset; in sgx_encl_ewb() 246 encl_page->va_page = va_page; in sgx_encl_ewb() 253 struct sgx_encl_page *encl_page = epc_page->owner; in sgx_reclaimer_write() local 254 struct sgx_encl *encl = encl_page->encl; in sgx_reclaimer_write() 261 encl_page->epc_page = NULL; in sgx_reclaimer_write() 300 struct sgx_encl_page *encl_page; in sgx_reclaim_pages() local 315 encl_page = epc_page->owner; in sgx_reclaim_pages() [all …]
|
D | ioctl.c | 200 struct sgx_encl_page *encl_page, in __sgx_encl_add_page() argument 222 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_add_page() 263 struct sgx_encl_page *encl_page; in sgx_encl_add_page() local 268 encl_page = sgx_encl_page_alloc(encl, offset, secinfo->flags); in sgx_encl_add_page() 269 if (IS_ERR(encl_page)) in sgx_encl_add_page() 270 return PTR_ERR(encl_page); in sgx_encl_add_page() 272 epc_page = sgx_alloc_epc_page(encl_page, true); in sgx_encl_add_page() 274 kfree(encl_page); in sgx_encl_add_page() 299 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_add_page() 300 encl_page, GFP_KERNEL); in sgx_encl_add_page() [all …]
|