Lines Matching refs:legacy_info
211 struct sync_fence_info_data *legacy_info; in legacy_sync_fence_info() local
215 legacy_info = malloc(4096); in legacy_sync_fence_info()
216 if (legacy_info == NULL) in legacy_sync_fence_info()
219 legacy_info->len = 4096; in legacy_sync_fence_info()
220 err = ioctl(fd, SYNC_IOC_LEGACY_FENCE_INFO, legacy_info); in legacy_sync_fence_info()
222 free(legacy_info); in legacy_sync_fence_info()
225 return legacy_info; in legacy_sync_fence_info()
259 struct sync_fence_info_data *legacy_info; in sync_file_info_to_legacy_fence_info() local
264 legacy_info = malloc(4096); in sync_file_info_to_legacy_fence_info()
265 if (legacy_info == NULL) in sync_file_info_to_legacy_fence_info()
267 legacy_info->len = sizeof(*legacy_info) + 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()
272 legacy_pt_info = (struct sync_pt_info *)legacy_info->pt_info; in sync_file_info_to_legacy_fence_info()
283 return legacy_info; in sync_file_info_to_legacy_fence_info()
287 struct sync_fence_info_data *legacy_info) in legacy_fence_info_to_sync_file_info() argument
297 while ((pt = sync_pt_info(legacy_info, pt)) != NULL) 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()
313 while ((pt = sync_pt_info(legacy_info, pt)) != NULL) { in legacy_fence_info_to_sync_file_info()
327 struct sync_fence_info_data *legacy_info; in sync_fence_info() local
333 legacy_info = legacy_sync_fence_info(fd); in sync_fence_info()
334 if (legacy_info || errno != ENOTTY) { in sync_fence_info()
335 if (legacy_info && uapi == UAPI_UNKNOWN) { in sync_fence_info()
339 return legacy_info; in sync_fence_info()
351 legacy_info = sync_file_info_to_legacy_fence_info(file_info); in sync_fence_info()
353 return legacy_info; in sync_fence_info()
374 struct sync_fence_info_data *legacy_info; in sync_file_info() local
375 legacy_info = legacy_sync_fence_info(fd); in sync_file_info()
376 if (!legacy_info) in sync_file_info()
382 info = legacy_fence_info_to_sync_file_info(legacy_info); in sync_file_info()
383 sync_fence_info_free(legacy_info); in sync_file_info()