Lines Matching refs:dmabuf_fd

106 				     unsigned int heap_flags, int *dmabuf_fd)  in dmabuf_heap_alloc_fdflags()  argument
116 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
122 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_fdflags()
127 int *dmabuf_fd) in dmabuf_heap_alloc() argument
130 dmabuf_fd); in dmabuf_heap_alloc()
149 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
161 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
172 dmabuf_fd, in test_alloc_and_import()
181 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
184 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_END); in test_alloc_and_import()
193 ret = import_vgem_fd(importer_fd, dmabuf_fd, &handle); in test_alloc_and_import()
200 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
202 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_END); in test_alloc_and_import()
213 if (dmabuf_fd >= 0) in test_alloc_and_import()
214 close(dmabuf_fd); in test_alloc_and_import()
223 int *dmabuf_fd) in dmabuf_heap_alloc_older() argument
239 if (!dmabuf_fd) in dmabuf_heap_alloc_older()
245 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_older()
251 int *dmabuf_fd) in dmabuf_heap_alloc_newer() argument
275 if (!dmabuf_fd) in dmabuf_heap_alloc_newer()
282 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_newer()
288 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local
296 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
302 close(dmabuf_fd); in test_alloc_compat()
305 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_compat()
313 if (dmabuf_fd >= 0) in test_alloc_compat()
314 close(dmabuf_fd); in test_alloc_compat()
323 int heap_fd = -1, dmabuf_fd = -1; in test_alloc_errors() local
331 ret = dmabuf_heap_alloc(0, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
338 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd); in test_alloc_errors()
346 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
356 if (dmabuf_fd >= 0) in test_alloc_errors()
357 close(dmabuf_fd); in test_alloc_errors()