Lines Matching defs:fence
152 struct dma_fence *fence;
156 fence = rcu_dereference(entity->last_scheduled);
157 r = fence ? fence->error : 0;
173 /* Signal the scheduler finished fence when the entity in question is killed. */
189 * fence, and the finished fence refcount might have
191 * a NULL fence in that case.
195 /* Now that we have a reference on the finished fence,
197 * had on the scheduled fence.
388 struct dma_fence *fence = entity->dependency;
391 if (fence->context == entity->fence_context ||
392 fence->context == entity->fence_context + 1) {
394 * Fence is a scheduled/finished fence from a job
402 s_fence = to_drm_sched_fence(fence);
403 if (!fence->error && s_fence && s_fence->sched == sched &&
404 !test_bit(DRM_SCHED_FENCE_DONT_PIPELINE, &fence->flags)) {
410 fence = dma_fence_get(&s_fence->scheduled);
412 entity->dependency = fence;
413 if (!dma_fence_add_callback(fence, &entity->cb,
418 dma_fence_put(fence);
436 /* We keep the fence around, so we can iterate over all dependencies
508 struct dma_fence *fence;
528 fence = rcu_dereference_check(entity->last_scheduled, true);
531 if (fence && !dma_fence_is_signaled(fence))
552 * fence sequence number this function should be called with drm_sched_job_arm()