Home
last modified time | relevance | path

Searched refs:image_load_info (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c294 struct ne_image_load_info image_load_info = { in ne_load_enclave_image() local
319 rc = ioctl(enclave_fd, NE_GET_IMAGE_LOAD_INFO, &image_load_info); in ne_load_enclave_image()
342 image_load_info.memory_offset); in ne_load_enclave_image()
359 temp_image_offset = image_load_info.memory_offset; in ne_load_enclave_image()
/openbmc/linux/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c1220 struct ne_image_load_info image_load_info = {}; in ne_enclave_ioctl() local
1222 if (copy_from_user(&image_load_info, (void __user *)arg, sizeof(image_load_info))) in ne_enclave_ioctl()
1238 if (!image_load_info.flags || in ne_enclave_ioctl()
1239 image_load_info.flags >= NE_IMAGE_LOAD_MAX_FLAG_VAL) { in ne_enclave_ioctl()
1246 if (image_load_info.flags == NE_EIF_IMAGE) in ne_enclave_ioctl()
1247 image_load_info.memory_offset = NE_EIF_LOAD_OFFSET; in ne_enclave_ioctl()
1249 if (copy_to_user((void __user *)arg, &image_load_info, sizeof(image_load_info))) in ne_enclave_ioctl()