Lines Matching refs:info
53 struct sync_pt_info* sync_pt_info(struct sync_fence_info_data* info, struct sync_pt_info* itr);
54 void sync_fence_info_free(struct sync_fence_info_data* info);
231 struct sync_file_info *info; in modern_sync_file_info() local
239 info = calloc(1, sizeof(struct sync_file_info) + in modern_sync_file_info()
241 if (!info) in modern_sync_file_info()
244 info->num_fences = local_info.num_fences; in modern_sync_file_info()
245 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in modern_sync_file_info()
247 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); in modern_sync_file_info()
249 free(info); in modern_sync_file_info()
253 return info; in modern_sync_file_info()
257 const struct sync_file_info *info) in sync_file_info_to_legacy_fence_info() argument
261 const struct sync_fence_info *fence_info = sync_get_fence_info(info); in sync_file_info_to_legacy_fence_info()
262 const uint32_t num_fences = info->num_fences; in sync_file_info_to_legacy_fence_info()
269 strlcpy(legacy_info->name, info->name, sizeof(legacy_info->name)); in sync_file_info_to_legacy_fence_info()
270 legacy_info->status = info->status; in sync_file_info_to_legacy_fence_info()
289 struct sync_file_info *info; in legacy_fence_info_to_sync_file_info() local
300 info = calloc(1, sizeof(struct sync_file_info) + in legacy_fence_info_to_sync_file_info()
302 if (!info) { in legacy_fence_info_to_sync_file_info()
305 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in legacy_fence_info_to_sync_file_info()
307 strlcpy(info->name, legacy_info->name, sizeof(info->name)); in legacy_fence_info_to_sync_file_info()
308 info->status = legacy_info->status; in legacy_fence_info_to_sync_file_info()
309 info->num_fences = num_fences; in legacy_fence_info_to_sync_file_info()
312 fence = sync_get_fence_info(info); in legacy_fence_info_to_sync_file_info()
322 return info; in legacy_fence_info_to_sync_file_info()
358 struct sync_file_info *info; in sync_file_info() local
364 info = modern_sync_file_info(fd); in sync_file_info()
365 if (info || errno != ENOTTY) { in sync_file_info()
366 if (info && uapi == UAPI_UNKNOWN) { in sync_file_info()
370 return info; in sync_file_info()
382 info = legacy_fence_info_to_sync_file_info(legacy_info); in sync_file_info()
384 return info; in sync_file_info()
387 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, in sync_pt_info() argument
391 itr = (struct sync_pt_info *) info->pt_info; in sync_pt_info()
395 if ((__u8 *)itr - (__u8 *)info >= (int)info->len) in sync_pt_info()
401 void sync_fence_info_free(struct sync_fence_info_data *info) in sync_fence_info_free() argument
403 free(info); in sync_fence_info_free()
406 void sync_file_info_free(struct sync_file_info *info) in sync_file_info_free() argument
408 free(info); in sync_file_info_free()