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