Lines Matching refs:ce

35 static void dbg_poison_ce(struct intel_context *ce)  in dbg_poison_ce()  argument
40 if (ce->state) { in dbg_poison_ce()
41 struct drm_i915_gem_object *obj = ce->state->obj; in dbg_poison_ce()
42 int type = intel_gt_coherent_map_type(ce->engine->gt, obj, true); in dbg_poison_ce()
62 struct intel_context *ce; in __engine_unpark() local
69 ce = engine->kernel_context; in __engine_unpark()
70 if (ce) { in __engine_unpark()
71 GEM_BUG_ON(test_bit(CONTEXT_VALID_BIT, &ce->flags)); in __engine_unpark()
74 while (unlikely(intel_context_inflight(ce))) in __engine_unpark()
78 dbg_poison_ce(ce); in __engine_unpark()
81 ce->ops->reset(ce); in __engine_unpark()
83 CE_TRACE(ce, "reset { seqno:%x, *hwsp:%x, ring:%x }\n", in __engine_unpark()
84 ce->timeline->seqno, in __engine_unpark()
85 READ_ONCE(*ce->timeline->hwsp_seqno), in __engine_unpark()
86 ce->ring->emit); in __engine_unpark()
87 GEM_BUG_ON(ce->timeline->seqno != in __engine_unpark()
88 READ_ONCE(*ce->timeline->hwsp_seqno)); in __engine_unpark()
152 struct intel_context *ce = engine->kernel_context; in switch_to_kernel_context() local
173 GEM_BUG_ON(!intel_context_is_barrier(ce)); in switch_to_kernel_context()
174 GEM_BUG_ON(ce->timeline->hwsp_ggtt != engine->status_page.vma); in switch_to_kernel_context()
208 set_bit(CONTEXT_IS_PARKING, &ce->flags); in switch_to_kernel_context()
209 GEM_BUG_ON(atomic_read(&ce->timeline->active_count) < 0); in switch_to_kernel_context()
211 rq = __i915_request_create(ce, GFP_NOWAIT); in switch_to_kernel_context()
236 __queue_and_release_pm(rq, ce->timeline, engine); in switch_to_kernel_context()
240 clear_bit(CONTEXT_IS_PARKING, &ce->flags); in switch_to_kernel_context()
315 struct intel_context *ce; in intel_engine_reset_pinned_contexts() local
317 list_for_each_entry(ce, &engine->pinned_contexts_list, in intel_engine_reset_pinned_contexts()
320 if (ce == engine->kernel_context) in intel_engine_reset_pinned_contexts()
323 dbg_poison_ce(ce); in intel_engine_reset_pinned_contexts()
324 ce->ops->reset(ce); in intel_engine_reset_pinned_contexts()