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()
155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
205 close(heap_fd); in test_alloc_and_import()
210 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local
216 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed()
220 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
245 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
280 close(heap_fd); in test_alloc_zeroed()
351 int ret, heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
353 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_compat()
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()
367 close(heap_fd); in test_alloc_compat()
372 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
375 heap_fd = dmabuf_heap_open(heap_name); 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()
390 close(heap_fd); in test_alloc_errors()