Searched refs:pginfo (Results 1 – 4 of 4) sorted by relevance
/linux/arch/x86/kernel/cpu/sgx/ |
A D | encls.h | 165 static inline int __ecreate(struct sgx_pageinfo *pginfo, void *secs) in __ecreate() argument 167 return __encls_2(ECREATE, pginfo, secs); in __ecreate() 175 static inline int __eadd(struct sgx_pageinfo *pginfo, void *addr) in __eadd() argument 177 return __encls_2(EADD, pginfo, addr); in __eadd() 205 static inline int __eldu(struct sgx_pageinfo *pginfo, void *addr, in __eldu() argument 208 return __encls_ret_3(ELDU, pginfo, addr, va); in __eldu() 223 static inline int __ewb(struct sgx_pageinfo *pginfo, void *addr, in __ewb() argument 226 return __encls_ret_3(EWB, pginfo, addr, va); in __ewb()
|
A D | ioctl.c | 61 struct sgx_pageinfo pginfo; in sgx_encl_create() local 94 pginfo.addr = 0; in sgx_encl_create() 95 pginfo.contents = (unsigned long)secs; in sgx_encl_create() 96 pginfo.metadata = (unsigned long)&secinfo; in sgx_encl_create() 97 pginfo.secs = 0; in sgx_encl_create() 235 struct sgx_pageinfo pginfo; in __sgx_encl_add_page() local 253 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_add_page() 254 pginfo.metadata = (unsigned long)secinfo; in __sgx_encl_add_page() 255 pginfo.contents = (unsigned long)kmap_atomic(src_page); in __sgx_encl_add_page() 257 ret = __eadd(&pginfo, sgx_get_epc_virt_addr(epc_page)); in __sgx_encl_add_page() [all …]
|
A D | encl.c | 25 struct sgx_pageinfo pginfo; in __sgx_encl_eldu() local 39 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_eldu() 40 pginfo.contents = (unsigned long)kmap_atomic(b.contents); in __sgx_encl_eldu() 41 pginfo.metadata = (unsigned long)kmap_atomic(b.pcmd) + in __sgx_encl_eldu() 45 pginfo.secs = (u64)sgx_get_epc_virt_addr(secs_page); in __sgx_encl_eldu() 47 pginfo.secs = 0; in __sgx_encl_eldu() 49 ret = __eldu(&pginfo, sgx_get_epc_virt_addr(epc_page), in __sgx_encl_eldu() 58 kunmap_atomic((void *)(unsigned long)(pginfo.metadata - b.pcmd_offset)); in __sgx_encl_eldu() 59 kunmap_atomic((void *)(unsigned long)pginfo.contents); in __sgx_encl_eldu()
|
A D | main.c | 162 struct sgx_pageinfo pginfo; in __sgx_encl_ewb() local 165 pginfo.addr = 0; in __sgx_encl_ewb() 166 pginfo.secs = 0; in __sgx_encl_ewb() 168 pginfo.contents = (unsigned long)kmap_atomic(backing->contents); in __sgx_encl_ewb() 169 pginfo.metadata = (unsigned long)kmap_atomic(backing->pcmd) + in __sgx_encl_ewb() 172 ret = __ewb(&pginfo, sgx_get_epc_virt_addr(epc_page), va_slot); in __sgx_encl_ewb() 174 kunmap_atomic((void *)(unsigned long)(pginfo.metadata - in __sgx_encl_ewb() 176 kunmap_atomic((void *)(unsigned long)pginfo.contents); in __sgx_encl_ewb()
|
Completed in 7 milliseconds