Lines Matching full:tl
420 struct intel_timeline * const tl = i915_request_timeline(rq); in i915_request_retire_upto() local
427 tmp = list_first_entry(&tl->requests, typeof(*tmp), link); in i915_request_retire_upto()
824 static void retire_requests(struct intel_timeline *tl) in retire_requests() argument
828 list_for_each_entry_safe(rq, rn, &tl->requests, link) in retire_requests()
834 request_alloc_slow(struct intel_timeline *tl, in request_alloc_slow() argument
849 if (list_empty(&tl->requests)) in request_alloc_slow()
853 rq = list_first_entry(&tl->requests, typeof(*rq), link); in request_alloc_slow()
862 rq = list_last_entry(&tl->requests, typeof(*rq), link); in request_alloc_slow()
866 retire_requests(tl); in request_alloc_slow()
896 struct intel_timeline *tl = ce->timeline; in __i915_request_create() local
938 rq = request_alloc_slow(tl, &ce->engine->request_pool, gfp); in __i915_request_create()
951 ret = intel_timeline_get_seqno(tl, rq, &seqno); in __i915_request_create()
956 tl->fence_context, seqno); in __i915_request_create()
958 RCU_INIT_POINTER(rq->timeline, tl); in __i915_request_create()
959 rq->hwsp_seqno = tl->hwsp_seqno; in __i915_request_create()
1009 list_add_tail_rcu(&rq->link, &tl->requests); in __i915_request_create()
1031 struct intel_timeline *tl; in i915_request_create() local
1033 tl = intel_context_timeline_lock(ce); in i915_request_create()
1034 if (IS_ERR(tl)) in i915_request_create()
1035 return ERR_CAST(tl); in i915_request_create()
1038 rq = list_first_entry(&tl->requests, typeof(*rq), link); in i915_request_create()
1039 if (!list_is_last(&rq->link, &tl->requests)) in i915_request_create()
1049 rq->cookie = lockdep_pin_lock(&tl->mutex); in i915_request_create()
1054 intel_context_timeline_unlock(tl); in i915_request_create()
1248 static bool intel_timeline_sync_has_start(struct intel_timeline *tl, in intel_timeline_sync_has_start() argument
1251 return __intel_timeline_sync_is_later(tl, in intel_timeline_sync_has_start()
1256 static int intel_timeline_sync_set_start(struct intel_timeline *tl, in intel_timeline_sync_set_start() argument
1259 return __intel_timeline_sync_set(tl, fence->context, fence->seqno - 1); in intel_timeline_sync_set_start()
1846 struct intel_timeline * const tl = i915_request_timeline(rq); in i915_request_add() local
1850 lockdep_assert_held(&tl->mutex); in i915_request_add()
1851 lockdep_unpin_lock(&tl->mutex, rq->cookie); in i915_request_add()
1865 mutex_unlock(&tl->mutex); in i915_request_add()