Searched refs:va_page (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | ioctl.c | 22 struct sgx_va_page *va_page = NULL; in sgx_encl_grow() local 29 va_page = kzalloc(sizeof(*va_page), GFP_KERNEL); in sgx_encl_grow() 30 if (!va_page) in sgx_encl_grow() 33 va_page->epc_page = sgx_alloc_va_page(reclaim); in sgx_encl_grow() 34 if (IS_ERR(va_page->epc_page)) { in sgx_encl_grow() 35 err = ERR_CAST(va_page->epc_page); in sgx_encl_grow() 36 kfree(va_page); in sgx_encl_grow() 43 return va_page; in sgx_encl_grow() 46 void sgx_encl_shrink(struct sgx_encl *encl, struct sgx_va_page *va_page) in sgx_encl_shrink() argument 50 if (va_page) { in sgx_encl_shrink() [all …]
|
D | encl.h | 34 struct sgx_va_page *va_page; member 120 unsigned int sgx_alloc_va_slot(struct sgx_va_page *va_page); 121 void sgx_free_va_slot(struct sgx_va_page *va_page, unsigned int offset); 122 bool sgx_va_page_full(struct sgx_va_page *va_page); 127 void sgx_encl_shrink(struct sgx_encl *encl, struct sgx_va_page *va_page);
|
D | encl.c | 173 sgx_get_epc_virt_addr(encl_page->va_page->epc_page) + va_offset); in __sgx_encl_eldu() 230 sgx_free_va_slot(encl_page->va_page, va_offset); in sgx_encl_eldu() 231 list_move(&encl_page->va_page->list, &encl->va_pages); in sgx_encl_eldu() 321 struct sgx_va_page *va_page; in sgx_encl_eaug_page() local 349 va_page = sgx_encl_grow(encl, false); in sgx_encl_eaug_page() 350 if (IS_ERR(va_page)) { in sgx_encl_eaug_page() 351 if (PTR_ERR(va_page) == -EBUSY) in sgx_encl_eaug_page() 356 if (va_page) in sgx_encl_eaug_page() 357 list_add(&va_page->list, &encl->va_pages); in sgx_encl_eaug_page() 400 sgx_encl_shrink(encl, va_page); in sgx_encl_eaug_page() [all …]
|
D | main.c | 202 struct sgx_va_page *va_page; in sgx_encl_ewb() local 209 va_page = list_first_entry(&encl->va_pages, struct sgx_va_page, in sgx_encl_ewb() 211 va_offset = sgx_alloc_va_slot(va_page); in sgx_encl_ewb() 212 va_slot = sgx_get_epc_virt_addr(va_page->epc_page) + va_offset; in sgx_encl_ewb() 213 if (sgx_va_page_full(va_page)) in sgx_encl_ewb() 214 list_move_tail(&va_page->list, &encl->va_pages); in sgx_encl_ewb() 243 sgx_free_va_slot(va_page, va_offset); in sgx_encl_ewb() 246 encl_page->va_page = va_page; in sgx_encl_ewb()
|