Lines Matching defs:fences
18 * the migration fence with the unbind fences if these are coalesced
38 if (deps->fences != &deps->single)
39 kfree(deps->fences);
42 deps->fences = &deps->single;
52 deps->fences = NULL;
62 * then resets the fences array.
69 dma_fence_put(deps->fences[i]);
71 if (deps->fences != &deps->single)
72 kfree(deps->fences);
89 memcpy(new_fences, deps->fences,
91 swap(new_fences, deps->fences);
96 deps->fences[deps->num_deps++] = dma_fence_get(fence);
121 * i915_deps_sync - Wait for all the fences in the dependency collection
122 * @deps: Pointer to the i915_deps structure the fences of which to wait for.
126 * This function waits for fences in the dependency collection. If it
128 * further fences is aborted and the error returned.
134 struct dma_fence **fences = deps->fences;
138 for (i = 0; i < deps->num_deps; ++i, ++fences) {
139 if (ctx->no_wait_gpu && !dma_fence_is_signaled(*fences)) {
144 ret = dma_fence_wait(*fences, ctx->interruptible);
146 ret = (*fences)->error;
194 struct dma_fence *entry = deps->fences[i];
201 deps->fences[i] = dma_fence_get(fence);
211 * i915_deps_add_resv - Add the fences of a reservation object to a dependency
214 * @resv: The reservation object, then fences of which to add.
218 * Calls i915_deps_add_depencency() on the indicated fences of @resv.