Lines Matching refs:mapping

173 static void  *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size)  in allocate_memory()  argument
175 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0); in allocate_memory()
320 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() argument
332 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge()
354 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument
366 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_unmerge()
394 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, in check_ksm_zero_page_merge() argument
409 map_ptr = allocate_memory(NULL, prot, mapping, 0, page_size * page_count); in check_ksm_zero_page_merge()
459 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout, in check_ksm_numa_merge() argument
523 static int ksm_merge_hugepages_time(int merge_type, int mapping, int prot, in ksm_merge_hugepages_time() argument
596 static int ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_merge_time() argument
604 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size); in ksm_merge_time()
637 static int ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_unmerge_time() argument
645 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size); in ksm_unmerge_time()
684 static int ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size) in ksm_cow_time() argument
693 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in ksm_cow_time()