Home
last modified time | relevance | path

Searched refs:NE_MIN_MEM_REGION_SIZE (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c54 * NE_MIN_MEM_REGION_SIZE - The minimum size of an enclave memory region.
56 #define NE_MIN_MEM_REGION_SIZE (2 * 1024UL * 1024UL) macro
745 if (mem_region.memory_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region()
752 if (!IS_ALIGNED(mem_region.userspace_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_user_mem_region()
759 if ((mem_region.userspace_addr & (NE_MIN_MEM_REGION_SIZE - 1)) || in ne_sanity_check_user_mem_region()
809 if (page_size(mem_region_page) & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region_page()
859 max_nr_pages = mem_region.memory_size / NE_MIN_MEM_REGION_SIZE; in ne_set_user_memory_region_ioctl()
938 if (phys_region_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_set_user_memory_region_ioctl()
947 if (!IS_ALIGNED(phys_region_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_set_user_memory_region_ioctl()
/kernel/linux/linux-6.6/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c55 * NE_MIN_MEM_REGION_SIZE - The minimum size of an enclave memory region.
57 #define NE_MIN_MEM_REGION_SIZE (2 * 1024UL * 1024UL) macro
756 if (mem_region.memory_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region()
763 if (!IS_ALIGNED(mem_region.userspace_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_user_mem_region()
770 if ((mem_region.userspace_addr & (NE_MIN_MEM_REGION_SIZE - 1)) || in ne_sanity_check_user_mem_region()
820 if (page_size(mem_region_page) & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region_page()
852 if (phys_mem_region_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_phys_mem_region()
859 if (!IS_ALIGNED(phys_mem_region_paddr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_phys_mem_region()
935 max_nr_pages = mem_region.memory_size / NE_MIN_MEM_REGION_SIZE; in ne_set_user_memory_region_ioctl()
/kernel/linux/linux-5.10/samples/nitro_enclaves/
H A Dne_ioctl_sample.c120 * NE_MIN_MEM_REGION_SIZE - Minimum size of a memory region - 2 MiB.
122 #define NE_MIN_MEM_REGION_SIZE (2 * 1024 * 1024) macro
818 ne_user_mem_regions[i].memory_size = NE_MIN_MEM_REGION_SIZE; in main()
/kernel/linux/linux-6.6/samples/nitro_enclaves/
H A Dne_ioctl_sample.c120 * NE_MIN_MEM_REGION_SIZE - Minimum size of a memory region - 2 MiB.
122 #define NE_MIN_MEM_REGION_SIZE (2 * 1024 * 1024) macro
817 ne_user_mem_regions[i].memory_size = NE_MIN_MEM_REGION_SIZE; in main()

Completed in 6 milliseconds