Home
last modified time | relevance | path

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

/arch/x86/kernel/cpu/sgx/
Dencl.c108 unsigned long page_index) in sgx_encl_get_backing_page_pcmd_offset() argument
112 return epc_end_off + page_index * sizeof(struct sgx_pcmd); in sgx_encl_get_backing_page_pcmd_offset()
118 static inline void sgx_encl_truncate_backing_page(struct sgx_encl *encl, unsigned long page_index) in sgx_encl_truncate_backing_page() argument
122 shmem_truncate_range(inode, PFN_PHYS(page_index), PFN_PHYS(page_index) + PAGE_SIZE - 1); in sgx_encl_truncate_backing_page()
135 pgoff_t page_index, page_pcmd_off; in __sgx_encl_eldu() local
144 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in __sgx_encl_eldu()
146 page_index = PFN_DOWN(encl->size); in __sgx_encl_eldu()
151 pcmd_first_page = PFN_PHYS(page_index & ~PCMD_FIRST_MASK) + encl->base; in __sgx_encl_eldu()
153 page_pcmd_off = sgx_encl_get_backing_page_pcmd_offset(encl, page_index); in __sgx_encl_eldu()
155 ret = sgx_encl_lookup_backing(encl, page_index, &b); in __sgx_encl_eldu()
[all …]
Dencl.h81 pgoff_t page_index; member
109 int sgx_encl_lookup_backing(struct sgx_encl *encl, unsigned long page_index,
111 int sgx_encl_alloc_backing(struct sgx_encl *encl, unsigned long page_index,
Dmain.c339 pgoff_t page_index; in sgx_reclaim_pages() local
371 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in sgx_reclaim_pages()
374 ret = sgx_encl_alloc_backing(encl_page->encl, page_index, &backing[i]); in sgx_reclaim_pages()