Lines Matching refs:alloc_area
47 static int anon_allocate_area(void **alloc_area, bool is_src) in anon_allocate_area() argument
49 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in anon_allocate_area()
51 if (*alloc_area == MAP_FAILED) { in anon_allocate_area()
52 *alloc_area = NULL; in anon_allocate_area()
73 static int hugetlb_allocate_area(void **alloc_area, bool is_src) in hugetlb_allocate_area() argument
81 *alloc_area = mmap(NULL, size, PROT_READ | PROT_WRITE, in hugetlb_allocate_area()
85 if (*alloc_area == MAP_FAILED) { in hugetlb_allocate_area()
86 *alloc_area = NULL; in hugetlb_allocate_area()
123 static int shmem_allocate_area(void **alloc_area, bool is_src) in shmem_allocate_area() argument
140 *alloc_area = mmap(p, bytes, PROT_READ | PROT_WRITE, MAP_SHARED, in shmem_allocate_area()
142 if (*alloc_area == MAP_FAILED) { in shmem_allocate_area()
143 *alloc_area = NULL; in shmem_allocate_area()
146 if (*alloc_area != p) in shmem_allocate_area()
152 munmap(*alloc_area, bytes); in shmem_allocate_area()
153 *alloc_area = NULL; in shmem_allocate_area()