Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/mm/
Dthuge-gen.c47 #define NUM_PAGES 4 macro
132 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
136 memset(map, 0xff, size*NUM_PAGES); in test_mmap()
140 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap()
142 err = munmap(map, size * NUM_PAGES); in test_mmap()
153 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget()
167 memset(map, 0xff, size*NUM_PAGES); in test_shmget()
172 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget()
187 if (read_free(page_sizes[i]) < NUM_PAGES) { in sanity_checks()
190 NUM_PAGES); in sanity_checks()
[all …]
/Linux-v6.6/sound/soc/sof/amd/
Dacp-trace.c16 #define NUM_PAGES 16 macro
50 stream->num_pages = NUM_PAGES; in acp_sof_trace_init()
/Linux-v6.6/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c19 #define NUM_PAGES 4 macro
53 size = getpagesize() * NUM_PAGES; in main()