Lines Matching refs:NUM_PAGES
51 #define NUM_PAGES 4 macro
120 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
125 memset(map, 0xff, size*NUM_PAGES); in test_mmap()
129 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap()
132 if (munmap(map, size * NUM_PAGES)) in test_mmap()
144 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget()
163 memset(map, 0xff, size*NUM_PAGES); in test_shmget()
167 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget()
190 if (read_free(page_sizes[num_page_sizes]) >= NUM_PAGES) in find_pagesizes()
194 page_sizes[num_page_sizes] >> 20, NUM_PAGES); in find_pagesizes()
198 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) in find_pagesizes()
200 largest * NUM_PAGES); in find_pagesizes()
205 "Please boot with hugepagesz=1G hugepages=%d\n", NUM_PAGES); in find_pagesizes()