Lines Matching defs:heap_fd
145 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1;
150 heap_fd = dmabuf_heap_open(heap_name);
151 if (heap_fd < 0)
155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd);
214 if (heap_fd >= 0)
215 close(heap_fd);
222 int heap_fd = -1, dmabuf_fd[32];
228 heap_fd = dmabuf_heap_open(heap_name);
229 if (heap_fd < 0)
234 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]);
257 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]);
285 close(heap_fd);
294 close(heap_fd);
365 int heap_fd = -1, dmabuf_fd = -1;
368 heap_fd = dmabuf_heap_open(heap_name);
369 if (heap_fd < 0)
373 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd);
383 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd);
393 if (heap_fd >= 0)
394 close(heap_fd);
401 int heap_fd = -1, dmabuf_fd = -1;
404 heap_fd = dmabuf_heap_open(heap_name);
405 if (heap_fd < 0)
416 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd);
423 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG,
436 if (heap_fd >= 0)
437 close(heap_fd);