Home
last modified time | relevance | path

Searched refs:userspace_addr (Results 1 – 3 of 3) sorted by relevance

/drivers/virt/nitro_enclaves/
Dne_misc_dev.c752 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()
760 !access_ok((void __user *)(unsigned long)mem_region.userspace_addr, in ne_sanity_check_user_mem_region()
771 u64 userspace_addr = ne_mem_region->userspace_addr; in ne_sanity_check_user_mem_region() local
773 if ((userspace_addr <= mem_region.userspace_addr && in ne_sanity_check_user_mem_region()
774 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region()
775 (mem_region.userspace_addr <= userspace_addr && in ne_sanity_check_user_mem_region()
776 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region()
889 gup_rc = get_user_pages(mem_region.userspace_addr + memory_size, 1, FOLL_GET, in ne_set_user_memory_region_ioctl()
958 ne_mem_region->userspace_addr = mem_region.userspace_addr; in ne_set_user_memory_region_ioctl()
Dne_misc_dev.h32 u64 userspace_addr; member
/drivers/vhost/
Dvhost.c1459 region->userspace_addr, in vhost_set_memory()