Lines Matching refs:heap_fd
149 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
156 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import()
157 if (heap_fd < 0) in test_alloc_and_import()
161 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()
288 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
291 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_compat()
292 if (heap_fd < 0) in test_alloc_compat()
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, 0, &dmabuf_fd); in test_alloc_compat()
315 if (heap_fd >= 0) in test_alloc_compat()
316 close(heap_fd); in test_alloc_compat()
323 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
326 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_errors()
327 if (heap_fd < 0) in test_alloc_errors()
338 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
345 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG, in test_alloc_errors()
358 if (heap_fd >= 0) in test_alloc_errors()
359 close(heap_fd); in test_alloc_errors()