Home
last modified time | relevance | path

Searched refs:fence_info (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/sync/
Dsync.c87 struct sync_fence_info *fence_info; in sync_file_info() local
106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info()
107 if (!fence_info) { in sync_file_info()
112 info->sync_fence_info = (uint64_t)(unsigned long)fence_info; in sync_file_info()
116 free(fence_info); in sync_file_info()
149 struct sync_fence_info *fence_info = NULL; in sync_fence_count_with_status() local
155 fence_info = (struct sync_fence_info *)(unsigned long)info->sync_fence_info; in sync_fence_count_with_status()
157 if (fence_info[i].status == status) in sync_fence_count_with_status()
/kernel/linux/linux-5.10/drivers/dma-buf/
Dsync_file.c403 struct sync_fence_info *fence_info = NULL; in sync_file_ioctl_fence_info() local
432 size = num_fences * sizeof(*fence_info); in sync_file_ioctl_fence_info()
433 fence_info = kzalloc(size, GFP_KERNEL); in sync_file_ioctl_fence_info()
434 if (!fence_info) in sync_file_ioctl_fence_info()
438 int status = sync_fill_fence_info(fences[i], &fence_info[i]); in sync_file_ioctl_fence_info()
442 if (copy_to_user(u64_to_user_ptr(info.sync_fence_info), fence_info, in sync_file_ioctl_fence_info()
458 kfree(fence_info); in sync_file_ioctl_fence_info()