Searched refs:NUM_PAGES (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | thuge-gen.c | 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() 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() 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() [all …]
|
| H A D | guard-regions.c | 305 const unsigned long NUM_PAGES = 10; in TEST_F() local 310 ptr = mmap_(self, variant, NULL, NUM_PAGES * page_size, in TEST_F() 323 for (i = 1; i < NUM_PAGES; i++) { in TEST_F() 330 ASSERT_EQ(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F() 335 ASSERT_FALSE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F() 344 ASSERT_FALSE(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F() 348 ASSERT_TRUE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F() 365 for (i = 3; i < NUM_PAGES; i++) { in TEST_F() 375 for (i = 0; i < NUM_PAGES; i++) { in TEST_F() 387 for (i = 0; i < NUM_PAGES * page_size; i += page_size) { in TEST_F() [all …]
|
| /linux-6.15/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()
|
| /linux-6.15/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-6.15/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 67 #define NUM_PAGES 16000 macro 641 mem = provider->alloc(getpagesize() * NUM_PAGES); in run_devmem_tests() 769 mem = provider->alloc(getpagesize() * NUM_PAGES); in main()
|