Lines Matching refs:sgx_epc_page
60 struct sgx_epc_page *page; in __sgx_sanitize_pages()
69 page = list_first_entry(dirty_page_list, struct sgx_epc_page, list); in __sgx_sanitize_pages()
110 static bool sgx_reclaimer_age(struct sgx_epc_page *epc_page) in sgx_reclaimer_age()
142 static void sgx_reclaimer_block(struct sgx_epc_page *epc_page) in sgx_reclaimer_block()
160 static int __sgx_encl_ewb(struct sgx_epc_page *epc_page, void *va_slot, in __sgx_encl_ewb()
198 static void sgx_encl_ewb(struct sgx_epc_page *epc_page, in sgx_encl_ewb()
251 static void sgx_reclaimer_write(struct sgx_epc_page *epc_page, in sgx_reclaimer_write()
299 struct sgx_epc_page *chunk[SGX_NR_TO_SCAN]; in sgx_reclaim_pages()
302 struct sgx_epc_page *epc_page; in sgx_reclaim_pages()
314 struct sgx_epc_page, list); in sgx_reclaim_pages()
442 static struct sgx_epc_page *__sgx_alloc_epc_page_from_node(int nid) in __sgx_alloc_epc_page_from_node()
445 struct sgx_epc_page *page = NULL; in __sgx_alloc_epc_page_from_node()
454 page = list_first_entry(&node->free_page_list, struct sgx_epc_page, list); in __sgx_alloc_epc_page_from_node()
474 struct sgx_epc_page *__sgx_alloc_epc_page(void) in __sgx_alloc_epc_page()
476 struct sgx_epc_page *page; in __sgx_alloc_epc_page()
508 void sgx_mark_page_reclaimable(struct sgx_epc_page *page) in sgx_mark_page_reclaimable()
526 int sgx_unmark_page_reclaimable(struct sgx_epc_page *page) in sgx_unmark_page_reclaimable()
561 struct sgx_epc_page *sgx_alloc_epc_page(void *owner, bool reclaim) in sgx_alloc_epc_page()
563 struct sgx_epc_page *page; in sgx_alloc_epc_page()
604 void sgx_free_epc_page(struct sgx_epc_page *page) in sgx_free_epc_page()
633 section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page)); in sgx_setup_epc_section()
660 static struct sgx_epc_page *sgx_paddr_to_page(u64 paddr) in sgx_paddr_to_page()
680 struct sgx_epc_page *page = sgx_paddr_to_page(pfn << PAGE_SHIFT); in arch_memory_failure()