Lines Matching defs:fence

41  * from the timeline and signal any fence that has a seqno smaller or equal
45 * @value: the seqno to initialise the fence with
47 * @fence: return the fd of the new sync_file with the created fence
52 __s32 fence; /* fd of new fence */
64 static inline struct sync_pt *dma_fence_to_sync_pt(struct dma_fence *fence)
66 if (fence->ops != &timeline_fence_ops)
68 return container_of(fence, struct sync_pt, base);
119 static const char *timeline_fence_get_driver_name(struct dma_fence *fence)
124 static const char *timeline_fence_get_timeline_name(struct dma_fence *fence)
126 struct sync_timeline *parent = dma_fence_parent(fence);
131 static void timeline_fence_release(struct dma_fence *fence)
133 struct sync_pt *pt = dma_fence_to_sync_pt(fence);
134 struct sync_timeline *parent = dma_fence_parent(fence);
137 spin_lock_irqsave(fence->lock, flags);
142 spin_unlock_irqrestore(fence->lock, flags);
145 dma_fence_free(fence);
148 static bool timeline_fence_signaled(struct dma_fence *fence)
150 struct sync_timeline *parent = dma_fence_parent(fence);
152 return !__dma_fence_is_later(fence->seqno, parent->value, fence->ops);
155 static bool timeline_fence_enable_signaling(struct dma_fence *fence)
160 static void timeline_fence_value_str(struct dma_fence *fence,
163 snprintf(str, size, "%lld", fence->seqno);
166 static void timeline_fence_timeline_value_str(struct dma_fence *fence,
169 struct sync_timeline *parent = dma_fence_parent(fence);
226 * @value: value of the fence
228 * Creates a new sync_pt (fence) as a child of @parent. @size bytes will be
357 data.fence = fd;