Lines Matching refs:handle
26 int _ion_alloc_test(int *fd, struct ion_handle **handle)
34 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
44 struct ion_handle *handle;
46 if(_ion_alloc_test(&fd, &handle))
49 ret = ion_free(fd, handle);
51 printf("%s failed: %s %p\n", __func__, strerror(ret), handle);
62 struct ion_handle *handle;
65 if(_ion_alloc_test(&fd, &handle))
68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
80 ret = ion_free(fd, handle);
85 _ion_alloc_test(&fd, &handle);
93 _ion_alloc_test(len, align, flags, &fd, &handle);
95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
103 struct ion_handle *handle;
124 if(_ion_alloc_test(&fd, &handle))
126 ret = ion_share(fd, handle, &share_fd);