Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/virt/nitro_enclaves/
Dne_misc_dev.c57 #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()
/linux-6.1.9/samples/nitro_enclaves/
Dne_ioctl_sample.c122 #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()