Lines Matching refs:sgx_encl
15 static int sgx_encl_lookup_backing(struct sgx_encl *encl, unsigned long page_index,
54 * Context: Enclave mutex (&sgx_encl->lock) must be held.
58 static int reclaimer_writing_to_pcmd(struct sgx_encl *encl,
110 static inline pgoff_t sgx_encl_get_backing_page_pcmd_offset(struct sgx_encl *encl,
121 static inline void sgx_encl_truncate_backing_page(struct sgx_encl *encl, unsigned long page_index)
137 struct sgx_encl *encl = encl_page->encl;
216 struct sgx_encl *encl = encl_page->encl;
243 static struct sgx_epc_page *sgx_encl_load_secs(struct sgx_encl *encl)
253 static struct sgx_encl_page *__sgx_encl_load_page(struct sgx_encl *encl,
280 static struct sgx_encl_page *sgx_encl_load_page_in_vma(struct sgx_encl *encl,
302 struct sgx_encl_page *sgx_encl_load_page(struct sgx_encl *encl,
328 struct sgx_encl *encl, unsigned long addr)
436 struct sgx_encl *encl;
489 struct sgx_encl *encl = vma->vm_private_data;
522 int sgx_encl_may_map(struct sgx_encl *encl, unsigned long start,
576 static int sgx_encl_debug_read(struct sgx_encl *encl, struct sgx_encl_page *page,
590 static int sgx_encl_debug_write(struct sgx_encl *encl, struct sgx_encl_page *page,
606 static struct sgx_encl_page *sgx_encl_reserve_page(struct sgx_encl *encl,
631 struct sgx_encl *encl = vma->vm_private_data;
695 * @ref: address of a kref inside &sgx_encl
702 struct sgx_encl *encl = container_of(ref, struct sgx_encl, refcount);
815 static struct sgx_encl_mm *sgx_encl_find_mm(struct sgx_encl *encl,
836 int sgx_encl_mm_add(struct sgx_encl *encl, struct mm_struct *mm)
925 const cpumask_t *sgx_encl_cpumask(struct sgx_encl *encl)
949 static struct page *sgx_encl_get_backing_page(struct sgx_encl *encl,
971 static int __sgx_encl_get_backing(struct sgx_encl *encl, unsigned long page_index,
1000 static struct mem_cgroup *sgx_encl_get_mem_cgroup(struct sgx_encl *encl)
1062 int sgx_encl_alloc_backing(struct sgx_encl *encl, unsigned long page_index,
1094 static int sgx_encl_lookup_backing(struct sgx_encl *encl, unsigned long page_index,
1139 struct sgx_encl *encl = page->encl;
1158 struct sgx_encl_page *sgx_encl_page_alloc(struct sgx_encl *encl,
1199 void sgx_zap_enclave_ptes(struct sgx_encl *encl, unsigned long addr)