Lines Matching refs:gt

14 static inline bool intel_gt_pm_is_awake(const struct intel_gt *gt)  in intel_gt_pm_is_awake()  argument
16 return intel_wakeref_is_active(&gt->wakeref); in intel_gt_pm_is_awake()
19 static inline void intel_gt_pm_get(struct intel_gt *gt) in intel_gt_pm_get() argument
21 intel_wakeref_get(&gt->wakeref); in intel_gt_pm_get()
24 static inline void __intel_gt_pm_get(struct intel_gt *gt) in __intel_gt_pm_get() argument
26 __intel_wakeref_get(&gt->wakeref); in __intel_gt_pm_get()
29 static inline bool intel_gt_pm_get_if_awake(struct intel_gt *gt) in intel_gt_pm_get_if_awake() argument
31 return intel_wakeref_get_if_active(&gt->wakeref); in intel_gt_pm_get_if_awake()
34 static inline void intel_gt_pm_might_get(struct intel_gt *gt) in intel_gt_pm_might_get() argument
36 intel_wakeref_might_get(&gt->wakeref); in intel_gt_pm_might_get()
39 static inline void intel_gt_pm_put(struct intel_gt *gt) in intel_gt_pm_put() argument
41 intel_wakeref_put(&gt->wakeref); in intel_gt_pm_put()
44 static inline void intel_gt_pm_put_async(struct intel_gt *gt) in intel_gt_pm_put_async() argument
46 intel_wakeref_put_async(&gt->wakeref); in intel_gt_pm_put_async()
49 static inline void intel_gt_pm_might_put(struct intel_gt *gt) in intel_gt_pm_might_put() argument
51 intel_wakeref_might_put(&gt->wakeref); in intel_gt_pm_might_put()
54 #define with_intel_gt_pm(gt, tmp) \ argument
55 for (tmp = 1, intel_gt_pm_get(gt); tmp; \
56 intel_gt_pm_put(gt), tmp = 0)
58 static inline int intel_gt_pm_wait_for_idle(struct intel_gt *gt) in intel_gt_pm_wait_for_idle() argument
60 return intel_wakeref_wait_for_idle(&gt->wakeref); in intel_gt_pm_wait_for_idle()
63 void intel_gt_pm_init_early(struct intel_gt *gt);
64 void intel_gt_pm_init(struct intel_gt *gt);
65 void intel_gt_pm_fini(struct intel_gt *gt);
67 void intel_gt_suspend_prepare(struct intel_gt *gt);
68 void intel_gt_suspend_late(struct intel_gt *gt);
69 int intel_gt_resume(struct intel_gt *gt);
71 void intel_gt_runtime_suspend(struct intel_gt *gt);
72 int intel_gt_runtime_resume(struct intel_gt *gt);
74 ktime_t intel_gt_get_awake_time(const struct intel_gt *gt);
76 static inline bool is_mock_gt(const struct intel_gt *gt) in is_mock_gt() argument
78 return I915_SELFTEST_ONLY(gt->awake == -ENODEV); in is_mock_gt()