Lines Matching refs:ret
80 int ret = ion_query_heap_cnt(ion_fd_, &heap_count); in QueryIonHeaps() local
81 if (ret == 0) { in QueryIonHeaps()
83 ret = ion_query_get_heaps(ion_fd_, heap_count, ion_heap_info_.data()); in QueryIonHeaps()
87 CHECK(ret == 0) in QueryIonHeaps()
139 auto ret = GetIonHeapIdByName(ion_heap_name, &ion_heap_id); in MapNameToIonName() local
140 if (ret < 0) in MapNameToIonName()
141 return ret; in MapNameToIonName()
155 int ret = 0; in MapNameToIonHeap() local
158 ret = MapNameToIonMask(heap_name, legacy_ion_heap_mask, legacy_ion_heap_flags); in MapNameToIonHeap()
160 ret = MapNameToIonName(heap_name, ion_heap_name, ion_heap_flags); in MapNameToIonHeap()
163 return ret; in MapNameToIonHeap()
167 int ret = 0; in GetIonConfig() local
173 ret = -EINVAL; in GetIonConfig()
176 ret = GetIonHeapIdByName(heap_name, &heap_id); in GetIonConfig()
177 if (ret == 0) { in GetIonConfig()
186 if (ret) in GetIonConfig()
188 return ret; in GetIonConfig()
203 auto ret = TEMP_FAILURE_RETRY(ioctl(fd, DMA_HEAP_IOCTL_ALLOC, &heap_data)); in DmabufAlloc() local
204 if (ret < 0) in DmabufAlloc()
205 return ret; in DmabufAlloc()
212 auto ret = GetIonConfig(heap_name, heap_config); in IonAlloc() local
213 if (ret) in IonAlloc()
214 return ret; in IonAlloc()
218 ret = ion_alloc_fd(ion_fd_, len, 0, heap_config.mask, flags, &alloc_fd); in IonAlloc()
219 if (ret) { in IonAlloc()
222 return ret; in IonAlloc()
247 int ret = legacy_ion_cpu_sync_custom(new_ion_fd); in LegacyIonCpuSync() local
250 return ret; in LegacyIonCpuSync()
274 int ret = DoSync(dmabuf_fd, true /* start */, sync_type, legacy_ion_cpu_sync_custom); in CpuSyncStart() local
276 if (ret) { in CpuSyncStart()
281 return ret; in CpuSyncStart()
292 int ret = DoSync(dmabuf_fd, false /* start */, it->second /* sync_type */, in CpuSyncEnd() local
294 if (ret) { in CpuSyncEnd()
300 return ret; in CpuSyncEnd()