Lines Matching refs:source_mapping

46 	void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE,  in kernel_support_for_mremap_dontunmap()  local
48 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap()
53 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in kernel_support_for_mremap_dontunmap()
62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
99 void *source_mapping = in mremap_dontunmap_simple() local
102 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple()
104 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple()
108 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple()
118 (source_mapping, num_pages * page_size, 0) != 0, in mremap_dontunmap_simple()
123 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple()
138 void *source_mapping = in mremap_dontunmap_simple_shmem() local
141 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_shmem()
145 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_shmem()
149 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple_shmem()
153 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
169 (source_mapping, num_pages * page_size, 'a') != 0, in mremap_dontunmap_simple_shmem()
174 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
193 void *source_mapping = in mremap_dontunmap_simple_fixed() local
196 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_fixed()
197 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_fixed()
200 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple_fixed()
215 (source_mapping, num_pages * page_size, 0) != 0, in mremap_dontunmap_simple_fixed()
220 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
243 void *source_mapping = in mremap_dontunmap_partial_mapping() local
246 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_partial_mapping()
247 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_partial_mapping()
251 mremap(source_mapping + (5 * page_size), 5 * page_size, in mremap_dontunmap_partial_mapping()
258 BUG_ON(check_region_contains_byte(source_mapping, 5 * page_size, 'a') != in mremap_dontunmap_partial_mapping()
261 (source_mapping + (5 * page_size), 5 * page_size, 0) != 0, in mremap_dontunmap_partial_mapping()
270 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_partial_mapping()
295 void *source_mapping = in mremap_dontunmap_partial_mapping_overwrite() local
298 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_partial_mapping_overwrite()
299 memset(source_mapping, 'a', 5 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
309 mremap(source_mapping, 5 * page_size, in mremap_dontunmap_partial_mapping_overwrite()
315 BUG_ON(check_region_contains_byte(source_mapping, 5 * page_size, 0) != in mremap_dontunmap_partial_mapping_overwrite()
329 BUG_ON(munmap(source_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite()