Lines Matching refs:heap_fd

146 	int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1;  in test_alloc_and_import()  local
151 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import()
152 if (heap_fd < 0) in test_alloc_and_import()
156 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
215 if (heap_fd >= 0) in test_alloc_and_import()
216 close(heap_fd); in test_alloc_and_import()
223 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local
229 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed()
230 if (heap_fd < 0) in test_alloc_zeroed()
235 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
258 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
286 close(heap_fd); in test_alloc_zeroed()
295 close(heap_fd); in test_alloc_zeroed()
366 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
369 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_compat()
370 if (heap_fd < 0) in test_alloc_compat()
374 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
384 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
394 if (heap_fd >= 0) in test_alloc_compat()
395 close(heap_fd); in test_alloc_compat()
402 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
405 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_errors()
406 if (heap_fd < 0) in test_alloc_errors()
417 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
424 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG, in test_alloc_errors()
437 if (heap_fd >= 0) in test_alloc_errors()
438 close(heap_fd); in test_alloc_errors()