Lines Matching full:fence
3 * fence-array: aggregates fence to be waited together
15 #include <linux/dma-fence.h>
19 * struct dma_fence_array_cb - callback helper for fence array
20 * @cb: fence callback structure for signaling
21 * @array: reference to the parent fence array object
29 * struct dma_fence_array - fence to represent an array of fences
30 * @base: fence base class
31 * @lock: spinlock for fence handling
52 * to_dma_fence_array - cast a fence to a dma_fence_array
53 * @fence: fence to cast to a dma_fence_array
55 * Returns NULL if the fence is not a dma_fence_array,
59 to_dma_fence_array(struct dma_fence *fence) in to_dma_fence_array() argument
61 if (!fence || !dma_fence_is_array(fence)) in to_dma_fence_array()
64 return container_of(fence, struct dma_fence_array, base); in to_dma_fence_array()
69 * @fence: current fence
74 * in the array. If not just iterate over the fence in @array itself.
78 #define dma_fence_array_for_each(fence, index, head) \ argument
79 for (index = 0, fence = dma_fence_array_first(head); fence; \
80 ++(index), fence = dma_fence_array_next(head, index))
93 bool dma_fence_match_context(struct dma_fence *fence, u64 context);