Home
last modified time | relevance | path

Searched refs:va_page (Results 1 – 4 of 4) sorted by relevance

/linux/arch/x86/kernel/cpu/sgx/
A Dioctl.c29 va_page = kzalloc(sizeof(*va_page), GFP_KERNEL); in sgx_encl_grow()
30 if (!va_page) in sgx_encl_grow()
36 kfree(va_page); in sgx_encl_grow()
43 return va_page; in sgx_encl_grow()
50 if (va_page) { in sgx_encl_shrink()
53 kfree(va_page); in sgx_encl_shrink()
68 if (IS_ERR(va_page)) in sgx_encl_create()
69 return PTR_ERR(va_page); in sgx_encl_create()
70 else if (va_page) in sgx_encl_create()
310 if (IS_ERR(va_page)) { in sgx_encl_add_page()
[all …]
A Dencl.c85 sgx_free_va_slot(encl_page->va_page, va_offset); in sgx_encl_eldu()
86 list_move(&encl_page->va_page->list, &encl->va_pages); in sgx_encl_eldu()
394 struct sgx_va_page *va_page; in sgx_encl_release() local
423 va_page = list_first_entry(&encl->va_pages, struct sgx_va_page, in sgx_encl_release()
425 list_del(&va_page->list); in sgx_encl_release()
426 sgx_encl_free_epc_page(va_page->epc_page); in sgx_encl_release()
427 kfree(va_page); in sgx_encl_release()
704 unsigned int sgx_alloc_va_slot(struct sgx_va_page *va_page) in sgx_alloc_va_slot() argument
709 set_bit(slot, va_page->slots); in sgx_alloc_va_slot()
723 clear_bit(offset >> 3, va_page->slots); in sgx_free_va_slot()
[all …]
A Dencl.h33 struct sgx_va_page *va_page; member
115 unsigned int sgx_alloc_va_slot(struct sgx_va_page *va_page);
116 void sgx_free_va_slot(struct sgx_va_page *va_page, unsigned int offset);
117 bool sgx_va_page_full(struct sgx_va_page *va_page);
A Dmain.c229 struct sgx_va_page *va_page; in sgx_encl_ewb() local
236 va_page = list_first_entry(&encl->va_pages, struct sgx_va_page, in sgx_encl_ewb()
238 va_offset = sgx_alloc_va_slot(va_page); in sgx_encl_ewb()
239 va_slot = sgx_get_epc_virt_addr(va_page->epc_page) + va_offset; in sgx_encl_ewb()
240 if (sgx_va_page_full(va_page)) in sgx_encl_ewb()
241 list_move_tail(&va_page->list, &encl->va_pages); in sgx_encl_ewb()
270 sgx_free_va_slot(va_page, va_offset); in sgx_encl_ewb()
273 encl_page->va_page = va_page; in sgx_encl_ewb()

Completed in 10 milliseconds