Lines Matching defs:heap_fd
149 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1;
156 heap_fd = dmabuf_heap_open(heap_name);
157 if (heap_fd < 0)
161 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd);
215 if (heap_fd >= 0)
216 close(heap_fd);
288 int heap_fd = -1, dmabuf_fd = -1;
291 heap_fd = dmabuf_heap_open(heap_name);
292 if (heap_fd < 0)
296 ret = dmabuf_heap_alloc_older(heap_fd, ONE_MEG, 0, &dmabuf_fd);
305 ret = dmabuf_heap_alloc_newer(heap_fd, ONE_MEG, 0, &dmabuf_fd);
315 if (heap_fd >= 0)
316 close(heap_fd);
323 int heap_fd = -1, dmabuf_fd = -1;
326 heap_fd = dmabuf_heap_open(heap_name);
327 if (heap_fd < 0)
338 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0x111111, &dmabuf_fd);
345 ret = dmabuf_heap_alloc_fdflags(heap_fd, ONE_MEG,
358 if (heap_fd >= 0)
359 close(heap_fd);