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);
126 static void dma_fence_array_set_deadline(struct dma_fence *fence,
129 struct dma_fence_array *array = to_dma_fence_array(fence);
147 * dma_fence_array_create - Create a custom fence array
150 * @context: [in] fence context to use
152 * @signal_on_any: [in] signal on any fence in the array
154 * Allocate a dma_fence_array object and initialize the base fence with
160 * array is taken and dma_fence_put() is used on each fence on release.
162 * If @signal_on_any is true the fence array signals if any fence in the array
193 * dma_fence_array objects should never contain any other fence
212 * @fence: [in] fence or fence array
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
216 * against the given context. Returns false if any fence is from a different
219 bool dma_fence_match_context(struct dma_fence *fence, u64 context)
221 struct dma_fence_array *array = to_dma_fence_array(fence);
224 if (!dma_fence_is_array(fence))
225 return fence->context == context;