Lines Matching refs:gt

67 	struct intel_gt *gt = arg;  in live_gt_clocks()  local
72 if (!gt->clock_frequency) { /* unknown */ in live_gt_clocks()
77 if (GRAPHICS_VER(gt->i915) < 4) /* Any CS_TIMESTAMP? */ in live_gt_clocks()
80 if (GRAPHICS_VER(gt->i915) == 5) in live_gt_clocks()
89 if (GRAPHICS_VER(gt->i915) == 4) in live_gt_clocks()
99 intel_gt_pm_get(gt); in live_gt_clocks()
100 intel_uncore_forcewake_get(gt->uncore, FORCEWAKE_ALL); in live_gt_clocks()
102 for_each_engine(engine, gt, id) { in live_gt_clocks()
113 time = intel_gt_clock_interval_to_ns(engine->gt, cycles); in live_gt_clocks()
114 expected = intel_gt_ns_to_clock_interval(engine->gt, dt); in live_gt_clocks()
118 engine->gt->clock_frequency / 1000); in live_gt_clocks()
135 intel_uncore_forcewake_put(gt->uncore, FORCEWAKE_ALL); in live_gt_clocks()
136 intel_gt_pm_put(gt); in live_gt_clocks()
143 struct intel_gt *gt = arg; in live_gt_resume() local
149 intel_gt_suspend_prepare(gt); in live_gt_resume()
150 intel_gt_suspend_late(gt); in live_gt_resume()
152 if (gt->rc6.enabled) { in live_gt_resume()
154 intel_gt_set_wedged_on_init(gt); in live_gt_resume()
159 err = intel_gt_resume(gt); in live_gt_resume()
163 if (gt->rc6.supported && !gt->rc6.enabled) { in live_gt_resume()
165 intel_gt_set_wedged_on_init(gt); in live_gt_resume()
170 err = st_llc_verify(&gt->llc); in live_gt_resume()
173 intel_gt_set_wedged_on_init(gt); in live_gt_resume()
196 if (intel_gt_is_wedged(&i915->gt)) in intel_gt_pm_live_selftests()
199 return intel_gt_live_subtests(tests, &i915->gt); in intel_gt_pm_live_selftests()
213 if (intel_gt_is_wedged(&i915->gt)) in intel_gt_pm_late_selftests()
216 return intel_gt_live_subtests(tests, &i915->gt); in intel_gt_pm_late_selftests()