Lines Matching full:handle
29 int _ion_alloc_test(int *fd, struct ion_handle **handle)
39 handle, &stride);
41 ret = ion_alloc(*fd, len, align, alloc_flags, handle);
51 struct ion_handle *handle;
53 if(_ion_alloc_test(&fd, &handle))
56 ret = ion_free(fd, handle);
58 printf("%s failed: %s %p\n", __func__, strerror(ret), handle);
88 struct ion_handle *handle;
91 if(_ion_alloc_test(&fd, &handle))
96 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
112 ret = ion_free(fd, handle);
117 _ion_alloc_test(&fd, &handle);
125 _ion_alloc_test(len, align, flags, &fd, &handle);
127 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
135 struct ion_handle *handle;
156 if(_ion_alloc_test(&fd, &handle))
158 ret = ion_share(fd, handle, &share_fd);