Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/sync/
A 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()
/linux-6.3-rc2/drivers/dma-buf/
A Dsync_file.c285 struct sync_fence_info *fence_info = NULL; in sync_file_ioctl_fence_info() local
319 size = num_fences * sizeof(*fence_info); in sync_file_ioctl_fence_info()
320 fence_info = kzalloc(size, GFP_KERNEL); in sync_file_ioctl_fence_info()
321 if (!fence_info) in sync_file_ioctl_fence_info()
328 status = sync_fill_fence_info(fence, &fence_info[num_fences++]); in sync_file_ioctl_fence_info()
332 if (copy_to_user(u64_to_user_ptr(info.sync_fence_info), fence_info, in sync_file_ioctl_fence_info()
348 kfree(fence_info); in sync_file_ioctl_fence_info()

Completed in 5 milliseconds