Searched refs:ONE_MEG (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 145 #define ONE_MEG (1024 * 1024) macro 161 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import() 169 ONE_MEG, in test_alloc_and_import() 182 memset(p, 1, ONE_MEG / 2); in test_alloc_and_import() 183 memset((char *)p + ONE_MEG / 2, 0, ONE_MEG / 2); in test_alloc_and_import() 201 memset(p, 0xff, ONE_MEG); in test_alloc_and_import() 210 munmap(p, ONE_MEG); in test_alloc_and_import() 296 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat() 305 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, in test_alloc_compat() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 141 #define ONE_MEG (1024 * 1024) macro 155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import() 163 ONE_MEG, in test_alloc_and_import() 175 memset(p, 1, ONE_MEG / 2); in test_alloc_and_import() 176 memset((char *)p + ONE_MEG / 2, 0, ONE_MEG / 2); in test_alloc_and_import() 197 memset(p, 0xff, ONE_MEG); in test_alloc_and_import() 209 munmap(p, ONE_MEG); in test_alloc_and_import() 373 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat() 383 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, in test_alloc_compat() [all...] |
Completed in 2 milliseconds