Lines Matching full:engine
68 static int __live_context_size(struct intel_engine_cs *engine, in __live_context_size() argument
76 ce = intel_context_create(fixme, engine); in __live_context_size()
85 i915_coherent_map_type(engine->i915)); in __live_context_size()
104 if (HAS_EXECLISTS(engine->i915)) in __live_context_size()
107 vaddr += engine->context_size - I915_GTT_PAGE_SIZE; in __live_context_size()
122 rq = i915_request_create(engine->kernel_context); in __live_context_size()
132 pr_err("%s context overwrote trailing red-zone!", engine->name); in __live_context_size()
146 struct intel_engine_cs *engine; in live_context_size() local
164 for_each_engine(engine, gt->i915, id) { in live_context_size()
170 if (!engine->context_size) in live_context_size()
173 intel_engine_pm_get(engine); in live_context_size()
182 saved.state = fetch_and_zero(&engine->default_state); in live_context_size()
183 saved.pinned = fetch_and_zero(&engine->pinned_default_state); in live_context_size()
186 engine->context_size += I915_GTT_PAGE_SIZE; in live_context_size()
188 err = __live_context_size(engine, fixme); in live_context_size()
190 engine->context_size -= I915_GTT_PAGE_SIZE; in live_context_size()
192 engine->pinned_default_state = saved.pinned; in live_context_size()
193 engine->default_state = saved.state; in live_context_size()
195 intel_engine_pm_put(engine); in live_context_size()
207 static int __live_active_context(struct intel_engine_cs *engine, in __live_active_context() argument
223 * subsequent idle-barrier (emitted when the engine wakeref hits 0 in __live_active_context()
227 if (intel_engine_pm_is_awake(engine)) { in __live_active_context()
229 engine->name, __func__); in __live_active_context()
233 ce = intel_context_create(fixme, engine); in __live_active_context()
253 engine->name, pass); in __live_active_context()
258 if (!intel_engine_pm_is_awake(engine)) { in __live_active_context()
260 engine->name); in __live_active_context()
267 err = context_sync(engine->kernel_context); in __live_active_context()
276 if (intel_engine_pm_is_awake(engine)) { in __live_active_context()
279 intel_engine_dump(engine, &p, in __live_active_context()
281 engine->name); in __live_active_context()
296 struct intel_engine_cs *engine; in live_active_context() local
314 for_each_engine(engine, gt->i915, id) { in live_active_context()
315 err = __live_active_context(engine, fixme); in live_active_context()
358 static int __live_remote_context(struct intel_engine_cs *engine, in __live_remote_context() argument
373 remote = intel_context_create(fixme, engine); in __live_remote_context()
377 local = intel_context_create(fixme, engine); in __live_remote_context()
388 err = __remote_sync(engine->kernel_context, remote); in __live_remote_context()
394 engine->name, pass); in __live_remote_context()
409 struct intel_engine_cs *engine; in live_remote_context() local
427 for_each_engine(engine, gt->i915, id) { in live_remote_context()
428 err = __live_remote_context(engine, fixme); in live_remote_context()