Lines Matching refs:num_fences
149 struct dma_fence **fences, int num_fences) in sync_file_set_fence() argument
159 if (num_fences == 1) { in sync_file_set_fence()
163 array = dma_fence_array_create(num_fences, fences, in sync_file_set_fence()
176 int *num_fences) in get_fences() argument
181 *num_fences = array->num_fences; in get_fences()
185 *num_fences = 1; in get_fences()
215 int i = 0, i_a, i_b, num_fences, a_num_fences, b_num_fences; in sync_file_merge() local
226 num_fences = a_num_fences + b_num_fences; in sync_file_merge()
228 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL); in sync_file_merge()
272 if (num_fences > i) { in sync_file_merge()
405 int num_fences, ret, i; in sync_file_ioctl_fence_info() local
413 fences = get_fences(sync_file, &num_fences); in sync_file_ioctl_fence_info()
421 if (!info.num_fences) { in sync_file_ioctl_fence_info()
428 if (info.num_fences < num_fences) in sync_file_ioctl_fence_info()
431 size = num_fences * sizeof(*fence_info); in sync_file_ioctl_fence_info()
436 for (i = 0; i < num_fences; i++) { in sync_file_ioctl_fence_info()
449 info.num_fences = num_fences; in sync_file_ioctl_fence_info()