Lines Matching refs:ONE_MEG
143 #define ONE_MEG (1024 * 1024) macro
155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
162 p = mmap(NULL, ONE_MEG, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd, 0); in test_alloc_and_import()
169 memset(p, 1, ONE_MEG / 2); in test_alloc_and_import()
170 memset((char *)p + ONE_MEG / 2, 0, ONE_MEG / 2); in test_alloc_and_import()
187 memset(p, 0xff, ONE_MEG); in test_alloc_and_import()
200 munmap(p, ONE_MEG); in test_alloc_and_import()
356 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
362 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
378 ret = dmabuf_heap_alloc(0, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
381 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
384 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG, in test_alloc_errors()
435 test_alloc_zeroed(dir->d_name, ONE_MEG); in main()