Searched refs:NUM_PAGES (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/mm/ |
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() 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() [all …]
|
/linux-6.12.1/tools/testing/selftests/drivers/dma-buf/ |
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.12.1/sound/soc/sof/amd/ |
D | acp-trace.c | 16 #define NUM_PAGES 16 macro 50 stream->num_pages = NUM_PAGES; in acp_sof_trace_init()
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | ncdevmem.c | 39 #define NUM_PAGES 16000 macro 262 dmabuf_size = getpagesize() * NUM_PAGES; in do_server() 473 dmabuf_size = getpagesize() * NUM_PAGES; in run_devmem_tests()
|