Lines Matching full:pxp
14 void intel_pxp_suspend_prepare(struct intel_pxp *pxp) in intel_pxp_suspend_prepare() argument
16 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_suspend_prepare()
19 intel_pxp_end(pxp); in intel_pxp_suspend_prepare()
21 intel_pxp_invalidate(pxp); in intel_pxp_suspend_prepare()
24 void intel_pxp_suspend(struct intel_pxp *pxp) in intel_pxp_suspend() argument
28 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_suspend()
31 with_intel_runtime_pm(&pxp->ctrl_gt->i915->runtime_pm, wakeref) { in intel_pxp_suspend()
32 intel_pxp_fini_hw(pxp); in intel_pxp_suspend()
33 pxp->hw_state_invalidated = false; in intel_pxp_suspend()
37 static void _pxp_resume(struct intel_pxp *pxp, bool take_wakeref) in _pxp_resume() argument
41 if (!intel_pxp_is_enabled(pxp)) in _pxp_resume()
45 * The PXP component gets automatically unbound when we go into S3 and in _pxp_resume()
50 if (!HAS_ENGINE(pxp->ctrl_gt, GSC0) && !pxp->pxp_component) in _pxp_resume()
54 wakeref = intel_runtime_pm_get(&pxp->ctrl_gt->i915->runtime_pm); in _pxp_resume()
55 intel_pxp_init_hw(pxp); in _pxp_resume()
57 intel_runtime_pm_put(&pxp->ctrl_gt->i915->runtime_pm, wakeref); in _pxp_resume()
60 void intel_pxp_resume_complete(struct intel_pxp *pxp) in intel_pxp_resume_complete() argument
62 _pxp_resume(pxp, true); in intel_pxp_resume_complete()
65 void intel_pxp_runtime_resume(struct intel_pxp *pxp) in intel_pxp_runtime_resume() argument
67 _pxp_resume(pxp, false); in intel_pxp_runtime_resume()
70 void intel_pxp_runtime_suspend(struct intel_pxp *pxp) in intel_pxp_runtime_suspend() argument
72 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_runtime_suspend()
75 pxp->arb_is_valid = false; in intel_pxp_runtime_suspend()
77 intel_pxp_fini_hw(pxp); in intel_pxp_runtime_suspend()
79 pxp->hw_state_invalidated = false; in intel_pxp_runtime_suspend()