Lines Matching full:engine

21 	struct intel_engine_cs *engine;  in intel_selftest_find_any_engine()  local
24 for_each_engine(engine, gt, id) in intel_selftest_find_any_engine()
25 return engine; in intel_selftest_find_any_engine()
27 pr_err("No valid engine found!\n"); in intel_selftest_find_any_engine()
31 int intel_selftest_modify_policy(struct intel_engine_cs *engine, in intel_selftest_modify_policy() argument
37 saved->reset = engine->i915->params.reset; in intel_selftest_modify_policy()
38 saved->flags = engine->flags; in intel_selftest_modify_policy()
39 saved->timeslice = engine->props.timeslice_duration_ms; in intel_selftest_modify_policy()
40 saved->preempt_timeout = engine->props.preempt_timeout_ms; in intel_selftest_modify_policy()
46 * together with engine reset on pre-emption timeout. in intel_selftest_modify_policy()
52 engine->i915->params.reset = 2; in intel_selftest_modify_policy()
53 engine->flags |= I915_ENGINE_WANT_FORCED_PREEMPTION; in intel_selftest_modify_policy()
54 engine->props.timeslice_duration_ms = REDUCED_TIMESLICE; in intel_selftest_modify_policy()
55 engine->props.preempt_timeout_ms = REDUCED_PREEMPT; in intel_selftest_modify_policy()
59 engine->props.preempt_timeout_ms = 0; in intel_selftest_modify_policy()
67 if (!intel_engine_uses_guc(engine)) in intel_selftest_modify_policy()
70 err = intel_guc_global_policies_update(&engine->gt->uc.guc); in intel_selftest_modify_policy()
72 intel_selftest_restore_policy(engine, saved); in intel_selftest_modify_policy()
77 int intel_selftest_restore_policy(struct intel_engine_cs *engine, in intel_selftest_restore_policy() argument
81 engine->i915->params.reset = saved->reset; in intel_selftest_restore_policy()
82 engine->flags = saved->flags; in intel_selftest_restore_policy()
83 engine->props.timeslice_duration_ms = saved->timeslice; in intel_selftest_restore_policy()
84 engine->props.preempt_timeout_ms = saved->preempt_timeout; in intel_selftest_restore_policy()
86 if (!intel_engine_uses_guc(engine)) in intel_selftest_restore_policy()
89 return intel_guc_global_policies_update(&engine->gt->uc.guc); in intel_selftest_restore_policy()