Lines Matching refs:ret

66     int ret = close(fd);  in ion_close()  local
67 if (ret < 0) return -errno; in ion_close()
68 return ret; in ion_close()
72 int ret = ioctl(fd, req, arg); in ion_ioctl() local
73 if (ret < 0) { in ion_ioctl()
74 ALOGE("ioctl %x failed with code %d: %s", req, ret, strerror(errno)); in ion_ioctl()
77 return ret; in ion_ioctl()
82 int ret = 0; in ion_is_using_modular_heaps() local
84 ret = ion_ioctl(fd, ION_IOC_ABI_VERSION, &ion_abi_version); in ion_is_using_modular_heaps()
85 return (ret == 0 && ion_abi_version >= ION_ABI_VERSION_MODULAR_HEAPS); in ion_is_using_modular_heaps()
90 int ret = 0; in ion_alloc() local
98 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc()
99 if (ret < 0) return ret; in ion_alloc()
103 return ret; in ion_alloc()
116 int ret; in ion_map() local
125 ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map()
126 if (ret < 0) return ret; in ion_map()
138 return ret; in ion_map()
142 int ret; in ion_share() local
150 ret = ion_ioctl(fd, ION_IOC_SHARE, &data); in ion_share()
151 if (ret < 0) return ret; in ion_share()
157 return ret; in ion_share()
163 int ret; in ion_alloc_fd() local
174 ret = ion_ioctl(fd, ION_IOC_NEW_ALLOC, &data); in ion_alloc_fd()
175 if (ret < 0) return ret; in ion_alloc_fd()
178 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle); in ion_alloc_fd()
179 if (ret < 0) return ret; in ion_alloc_fd()
180 ret = ion_share(fd, handle, handle_fd); in ion_alloc_fd()
183 return ret; in ion_alloc_fd()
187 int ret; in ion_import() local
196 ret = ion_ioctl(fd, ION_IOC_IMPORT, &data); in ion_import()
197 if (ret < 0) return ret; in ion_import()
199 return ret; in ion_import()
213 int ret; in ion_query_heap_cnt() local
219 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query); in ion_query_heap_cnt()
220 if (ret < 0) return ret; in ion_query_heap_cnt()
223 return ret; in ion_query_heap_cnt()
227 int ret; in ion_query_get_heaps() local
232 ret = ion_ioctl(fd, ION_IOC_HEAP_QUERY, &query); in ion_query_get_heaps()
233 return ret; in ion_query_get_heaps()