Lines Matching refs:info
208 struct sync_file_info *info; in modern_sync_file_info() local
216 info = calloc(1, sizeof(struct sync_file_info) + in modern_sync_file_info()
218 if (!info) in modern_sync_file_info()
221 info->num_fences = local_info.num_fences; in modern_sync_file_info()
222 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in modern_sync_file_info()
224 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); in modern_sync_file_info()
226 free(info); in modern_sync_file_info()
230 return info; in modern_sync_file_info()
234 const struct sync_file_info *info) in sync_file_info_to_legacy_fence_info() argument
238 const struct sync_fence_info *fence_info = sync_get_fence_info(info); in sync_file_info_to_legacy_fence_info()
239 const uint32_t num_fences = info->num_fences; in sync_file_info_to_legacy_fence_info()
246 strlcpy(legacy_info->name, info->name, sizeof(legacy_info->name)); in sync_file_info_to_legacy_fence_info()
247 legacy_info->status = info->status; in sync_file_info_to_legacy_fence_info()
266 struct sync_file_info *info; in legacy_fence_info_to_sync_file_info() local
277 info = calloc(1, sizeof(struct sync_file_info) + in legacy_fence_info_to_sync_file_info()
279 if (!info) { in legacy_fence_info_to_sync_file_info()
283 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in legacy_fence_info_to_sync_file_info()
285 strlcpy(info->name, legacy_info->name, sizeof(info->name)); in legacy_fence_info_to_sync_file_info()
286 info->status = legacy_info->status; in legacy_fence_info_to_sync_file_info()
287 info->num_fences = num_fences; in legacy_fence_info_to_sync_file_info()
290 fence = sync_get_fence_info(info); in legacy_fence_info_to_sync_file_info()
300 return info; in legacy_fence_info_to_sync_file_info()
336 struct sync_file_info *info; in sync_file_info() local
342 info = modern_sync_file_info(fd); in sync_file_info()
343 if (info || errno != ENOTTY) { in sync_file_info()
344 if (info && uapi == UAPI_UNKNOWN) { in sync_file_info()
348 return info; in sync_file_info()
360 info = legacy_fence_info_to_sync_file_info(legacy_info); in sync_file_info()
362 return info; in sync_file_info()
365 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, in sync_pt_info() argument
369 itr = (struct sync_pt_info *) info->pt_info; in sync_pt_info()
373 if ((__u8 *)itr - (__u8 *)info >= (int)info->len) in sync_pt_info()
379 void sync_fence_info_free(struct sync_fence_info_data *info) in sync_fence_info_free() argument
381 free(info); in sync_fence_info_free()
384 void sync_file_info_free(struct sync_file_info *info) in sync_file_info_free() argument
386 free(info); in sync_file_info_free()