Home
last modified time | relevance | path

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

/Linux-v6.1/arch/x86/kernel/cpu/sgx/
Dencls.h140 static inline int __ecreate(struct sgx_pageinfo *pginfo, void *secs) in __ecreate() argument
142 return __encls_2(ECREATE, pginfo, secs); in __ecreate()
155 static inline int __eadd(struct sgx_pageinfo *pginfo, void *addr) in __eadd() argument
157 return __encls_2(EADD, pginfo, addr); in __eadd()
191 static inline int __eldu(struct sgx_pageinfo *pginfo, void *addr, in __eldu() argument
194 return __encls_ret_3(ELDU, pginfo, addr, va); in __eldu()
212 static inline int __ewb(struct sgx_pageinfo *pginfo, void *addr, in __ewb() argument
215 return __encls_ret_3(EWB, pginfo, addr, va); in __ewb()
231 static inline int __eaug(struct sgx_pageinfo *pginfo, void *addr) in __eaug() argument
233 return __encls_2(EAUG, pginfo, addr); in __eaug()
Dencl.c140 struct sgx_pageinfo pginfo; in __sgx_encl_eldu() local
162 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_eldu()
163 pginfo.contents = (unsigned long)kmap_atomic(b.contents); in __sgx_encl_eldu()
165 pginfo.metadata = (unsigned long)pcmd_page + b.pcmd_offset; in __sgx_encl_eldu()
168 pginfo.secs = (u64)sgx_get_epc_virt_addr(secs_page); in __sgx_encl_eldu()
170 pginfo.secs = 0; in __sgx_encl_eldu()
172 ret = __eldu(&pginfo, sgx_get_epc_virt_addr(epc_page), in __sgx_encl_eldu()
191 kunmap_atomic((void *)(unsigned long)pginfo.contents); in __sgx_encl_eldu()
318 struct sgx_pageinfo pginfo = {0}; in sgx_encl_eaug_page() local
368 pginfo.secs = (unsigned long)sgx_get_epc_virt_addr(encl->secs.epc_page); in sgx_encl_eaug_page()
[all …]
Dioctl.c61 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()
100 ret = __ecreate((void *)&pginfo, sgx_get_epc_virt_addr(secs_epc)); in sgx_encl_create()
204 struct sgx_pageinfo pginfo; in __sgx_encl_add_page() local
221 pginfo.secs = (unsigned long)sgx_get_epc_virt_addr(encl->secs.epc_page); in __sgx_encl_add_page()
222 pginfo.addr = encl_page->desc & PAGE_MASK; in __sgx_encl_add_page()
223 pginfo.metadata = (unsigned long)secinfo; in __sgx_encl_add_page()
[all …]
Dmain.c162 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()
176 kunmap_atomic((void *)(unsigned long)(pginfo.metadata - in __sgx_encl_ewb()
178 kunmap_atomic((void *)(unsigned long)pginfo.contents); in __sgx_encl_ewb()