Home | History | Annotate | Download | only in i915

Lines Matching refs:fence

30 #include <linux/dma-fence.h>
56 ENGINE_TRACE(rq__->engine, "fence %llx:%lld, current %d " fmt, \
57 rq__->fence.context, rq__->fence.seqno, \
156 struct dma_fence fence;
198 * The submit fence is used to await upon all of the request's
221 * submit fence is signaled (it waits for all external events as well
302 static inline bool dma_fence_is_i915(const struct dma_fence *fence)
304 return fence->ops == &i915_fence_ops;
320 to_request(struct dma_fence *fence)
322 /* We assume that NULL fence/request are interoperable */
323 BUILD_BUG_ON(offsetof(struct i915_request, fence) != 0);
324 GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
325 return container_of(fence, struct i915_request, fence);
331 return to_request(dma_fence_get(&rq->fence));
337 return to_request(dma_fence_get_rcu(&rq->fence));
343 dma_fence_put(&rq->fence);
350 struct dma_fence *fence);
352 struct dma_fence *fence,
381 return test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &rq->fence.flags);
386 return test_bit(I915_FENCE_FLAG_ACTIVE, &rq->fence.flags);
391 return test_bit(I915_FENCE_FLAG_PQUEUE, &rq->fence.flags);
417 * has the associated breadcrumb value of rq->fence.seqno, when the HW
433 return i915_seqno_passed(hwsp_seqno(rq), rq->fence.seqno - 1);
495 * the submit fence is completed, the backend scheduler will place the
513 return i915_seqno_passed(hwsp_seqno(rq), rq->fence.seqno);
518 rq->hwsp_seqno = (u32 *)&rq->fence.seqno; /* decouple from HWSP */
523 return test_bit(I915_FENCE_FLAG_BOOST, &rq->fence.flags);
529 return unlikely(test_bit(I915_FENCE_FLAG_NOPREEMPT, &rq->fence.flags));
534 return unlikely(test_bit(I915_FENCE_FLAG_SENTINEL, &rq->fence.flags));
539 return unlikely(test_bit(I915_FENCE_FLAG_HOLD, &rq->fence.flags));
544 set_bit(I915_FENCE_FLAG_HOLD, &rq->fence.flags);
549 clear_bit(I915_FENCE_FLAG_HOLD, &rq->fence.flags);