Lines Matching defs:fences
149 struct dma_fence **fences, int num_fences)
154 * The reference for the fences in the new sync_file and held
160 sync_file->fence = fences[0];
161 kfree(fences);
163 array = dma_fence_array_create(num_fences, fences,
182 return array->fences;
189 static void add_fence(struct dma_fence **fences,
192 fences[*i] = fence;
206 * Creates a new sync_file which contains copies of all the fences in both
214 struct dma_fence **fences = NULL, **nfences, **a_fences, **b_fences;
228 fences = kcalloc(num_fences, sizeof(*fences), GFP_KERNEL);
229 if (!fences)
244 add_fence(fences, &i, pt_a);
248 add_fence(fences, &i, pt_b);
254 add_fence(fences, &i, pt_a);
256 add_fence(fences, &i, pt_b);
264 add_fence(fences, &i, a_fences[i_a]);
267 add_fence(fences, &i, b_fences[i_b]);
270 fences[i++] = dma_fence_get(a_fences[0]);
273 nfences = krealloc(fences, i * sizeof(*fences),
278 fences = nfences;
281 if (sync_file_set_fence(sync_file, fences, i) < 0)
289 dma_fence_put(fences[--i]);
290 kfree(fences);
404 struct dma_fence **fences;
414 fences = get_fences(sync_file, &num_fences);
419 * sync_fence_info and return the actual number of fences on
438 int status = sync_fill_fence_info(fences[i], &fence_info[i]);