Home
last modified time | relevance | path

Searched refs:encl_size (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/tools/testing/selftests/sgx/
Dload.c27 munmap((void *)encl->encl_base, encl->encl_size); in encl_delete()
93 secs->size = encl->encl_size; in encl_ioc_create()
99 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create()
303 for (encl->encl_size = 4096; encl->encl_size < encl->src_size; ) in encl_load()
304 encl->encl_size <<= 1; in encl_load()
317 size_t encl_size = encl->encl_size; in encl_map_area() local
320 area = mmap(NULL, encl_size * 2, PROT_NONE, in encl_map_area()
327 encl->encl_base = ((uint64_t)area + encl_size - 1) & ~(encl_size - 1); in encl_map_area()
330 munmap((void *)(encl->encl_base + encl_size), in encl_map_area()
331 (uint64_t)area + encl_size - encl->encl_base); in encl_map_area()
Dsigstruct.c224 uint64_t encl_size; in mrenclave_ecreate() local
226 for (encl_size = 0x1000; encl_size < blob_size; ) in mrenclave_ecreate()
227 encl_size <<= 1; in mrenclave_ecreate()
232 mrecreate.size = encl_size; in mrenclave_ecreate()
Dmain.h26 size_t encl_size; member
Dmain.c1005 EXPECT_LT(total_size + PAGE_SIZE, self->encl.encl_size); in TEST_F()
1135 EXPECT_LT(total_size + PAGE_SIZE, self->encl.encl_size); in TEST_F()
1284 EXPECT_LT(total_size + 3 * PAGE_SIZE, self->encl.encl_size); in TEST_F()
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dioctl.c63 unsigned long encl_size; in sgx_encl_create() local
75 encl_size = secs->size + PAGE_SIZE; in sgx_encl_create()
77 backing = shmem_file_setup("SGX backing", encl_size + (encl_size >> 5), in sgx_encl_create()