Lines Matching refs:heap_fd

145 	int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1;  in test_alloc_and_import()  local
150 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import()
151 if (heap_fd < 0) in test_alloc_and_import()
155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
214 if (heap_fd >= 0) in test_alloc_and_import()
215 close(heap_fd); in test_alloc_and_import()
222 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local
228 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed()
229 if (heap_fd < 0) in test_alloc_zeroed()
234 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
257 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
285 close(heap_fd); in test_alloc_zeroed()
294 close(heap_fd); in test_alloc_zeroed()
365 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
368 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_compat()
369 if (heap_fd < 0) in test_alloc_compat()
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, 0, &dmabuf_fd); in test_alloc_compat()
393 if (heap_fd >= 0) in test_alloc_compat()
394 close(heap_fd); in test_alloc_compat()
401 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
404 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_errors()
405 if (heap_fd < 0) in test_alloc_errors()
416 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
423 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG, in test_alloc_errors()
436 if (heap_fd >= 0) in test_alloc_errors()
437 close(heap_fd); in test_alloc_errors()