Lines Matching refs:heap_fd
147 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
152 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import()
153 if (heap_fd < 0) in test_alloc_and_import()
157 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
216 if (heap_fd >= 0) in test_alloc_and_import()
217 close(heap_fd); in test_alloc_and_import()
224 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local
230 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed()
231 if (heap_fd < 0) in test_alloc_zeroed()
236 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
259 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
287 close(heap_fd); in test_alloc_zeroed()
296 close(heap_fd); in test_alloc_zeroed()
367 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
370 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_compat()
371 if (heap_fd < 0) in test_alloc_compat()
375 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
385 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
395 if (heap_fd >= 0) in test_alloc_compat()
396 close(heap_fd); in test_alloc_compat()
403 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
406 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_errors()
407 if (heap_fd < 0) in test_alloc_errors()
418 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
425 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG, in test_alloc_errors()
438 if (heap_fd >= 0) in test_alloc_errors()
439 close(heap_fd); in test_alloc_errors()