Searched refs:NUM_PAGES (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | thuge-gen.c | 51 #define NUM_PAGES 4 macro 100 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap() 105 memset(map, 0xff, size*NUM_PAGES); in test_mmap() 109 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap() 112 if (munmap(map, size * NUM_PAGES)) in test_mmap() 124 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget() 143 memset(map, 0xff, size*NUM_PAGES); in test_shmget() 147 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget() 171 if (read_free(page_sizes[num_page_sizes]) >= NUM_PAGES) in find_pagesizes() 175 page_sizes[num_page_sizes] >> 20, NUM_PAGES); in find_pagesizes() [all …]
|
| H A D | guard-regions.c | 348 const unsigned long NUM_PAGES = 10; in TEST_F() local 353 ptr = mmap_(self, variant, NULL, NUM_PAGES * page_size, in TEST_F() 366 for (i = 1; i < NUM_PAGES; i++) { in TEST_F() 373 ASSERT_EQ(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F() 378 ASSERT_FALSE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F() 387 ASSERT_FALSE(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F() 391 ASSERT_TRUE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F() 408 for (i = 3; i < NUM_PAGES; i++) { in TEST_F() 415 ASSERT_EQ(madvise(ptr, NUM_PAGES * page_size, MADV_GUARD_REMOVE), 0); in TEST_F() 418 for (i = 0; i < NUM_PAGES; i++) { in TEST_F() [all …]
|
| /linux/tools/testing/selftests/drivers/dma-buf/ |
| H A D | udmabuf.c | 22 #define NUM_PAGES 4 macro 72 list->list[i].size = getpagesize() * NUM_PAGES; in create_udmabuf_list() 117 for (j = 0; j < NUM_PAGES; j++, k++) { in compare_chunks() 129 munmap(addr2, NUM_ENTRIES * NUM_PAGES * getpagesize()); in compare_chunks() 163 size = getpagesize() * NUM_PAGES; in main() 225 addr2 = mmap_fd(buf, NUM_PAGES * NUM_ENTRIES * getpagesize()); in main() 243 addr2 = mmap_fd(buf, NUM_PAGES * NUM_ENTRIES * getpagesize()); in main() 259 addr2 = mmap_fd(buf, NUM_PAGES * NUM_ENTRIES * getpagesize()); in main()
|
| /linux/sound/soc/sof/amd/ |
| H A D | acp-trace.c | 16 #define NUM_PAGES 16 macro 50 stream->num_pages = NUM_PAGES; in acp_sof_trace_init()
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 80 #define NUM_PAGES 16000 1066 mem = provider->alloc(getpagesize() * NUM_PAGES); in main() 1509 mem = provider->alloc(getpagesize() * NUM_PAGES); 79 #define NUM_PAGES global() macro
|