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