Lines Matching defs:fences
3 * dma-fence-array: aggregate fences to be waited together
32 * Propagate the first error reported by any of our fences, but only
87 if (dma_fence_add_callback(array->fences[i], &cb[i].cb,
89 int error = array->fences[i]->error;
120 dma_fence_put(array->fences[i]);
122 kfree(array->fences);
133 dma_fence_set_deadline(array->fences[i], deadline);
148 * @num_fences: [in] number of fences to add in the array
149 * @fences: [in] array containing the fences
158 * The caller should allocate the fences array with num_fences size
159 * and fill it with the fences it wants to add to the object. Ownership of this
163 * signals, otherwise it signals when all fences in the array signal.
166 struct dma_fence **fences,
173 WARN_ON(!num_fences || !fences);
188 array->fences = fences;
204 WARN_ON(dma_fence_is_container(fences[num_fences]));
211 * dma_fence_match_context - Check if all fences are from the given context
213 * @context: [in] fence context to check all fences against
215 * Checks the provided fence or, for a fence array, all fences in the array
228 if (array->fences[i]->context != context)
250 return array->fences[0];
262 return array->fences[index];