Lines Matching defs:fence

3  * dma-fence-array: aggregate fences to be waited together
14 #include <linux/dma-fence-array.h>
18 static const char *dma_fence_array_get_driver_name(struct dma_fence *fence)
23 static const char *dma_fence_array_get_timeline_name(struct dma_fence *fence)
70 static bool dma_fence_array_enable_signaling(struct dma_fence *fence)
72 struct dma_fence_array *array = to_dma_fence_array(fence);
79 * As we may report that the fence is signaled before all
82 * early. The core fence handling will only hold the reference
103 static bool dma_fence_array_signaled(struct dma_fence *fence)
105 struct dma_fence_array *array = to_dma_fence_array(fence);
114 static void dma_fence_array_release(struct dma_fence *fence)
116 struct dma_fence_array *array = to_dma_fence_array(fence);
123 dma_fence_free(fence);
136 * dma_fence_array_create - Create a custom fence array
139 * @context: [in] fence context to use
141 * @signal_on_any: [in] signal on any fence in the array
143 * Allocate a dma_fence_array object and initialize the base fence with
149 * array is taken and dma_fence_put() is used on each fence on release.
151 * If @signal_on_any is true the fence array signals if any fence in the array
185 * @fence: [in] fence or fence array
186 * @context: [in] fence context to check all fences against
188 * Checks the provided fence or, for a fence array, all fences in the array
189 * against the given context. Returns false if any fence is from a different
192 bool dma_fence_match_context(struct dma_fence *fence, u64 context)
194 struct dma_fence_array *array = to_dma_fence_array(fence);
197 if (!dma_fence_is_array(fence))
198 return fence->context == context;