Home
last modified time | relevance | path

Searched refs:NUM_PAGES (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dthuge-gen.c51 #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 Dguard-regions.c349 const unsigned long NUM_PAGES = 10; in TEST_F()
354 ptr = mmap_(self, variant, NULL, NUM_PAGES * page_size, in TEST_F()
367 for (i = 1; i < NUM_PAGES; i++) { in TEST_F()
374 ASSERT_EQ(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F()
379 ASSERT_FALSE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F()
388 ASSERT_FALSE(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F()
392 ASSERT_TRUE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F()
409 for (i = 3; i < NUM_PAGES; i++) { in TEST_F()
416 ASSERT_EQ(madvise(ptr, NUM_PAGES * page_size, MADV_GUARD_REMOVE), 0); in TEST_F()
419 for (i = 0; i < NUM_PAGES; in TEST_F()
348 const unsigned long NUM_PAGES = 10; TEST_F() local
[all...]
/linux/tools/testing/selftests/drivers/dma-buf/
H A Dudmabuf.c22 #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 Dacp-trace.c16 #define NUM_PAGES 16 macro
50 stream->num_pages = NUM_PAGES; in acp_sof_trace_init()
/linux/drivers/gpu/nova-core/
H A Dgsp.rs57 impl<const NUM_PAGES: usize> PteArray<NUM_PAGES> {
/linux/tools/testing/selftests/drivers/net/hw/
H A Dncdevmem.c81 #define NUM_PAGES 16000 macro
1073 mem = provider->alloc(getpagesize() * NUM_PAGES); in run_devmem_tests()
1519 mem = provider->alloc(getpagesize() * NUM_PAGES); in main()