Lines Matching refs:pxp
21 return &to_gt(i915)->pxp; in i915_dev_to_pxp()
24 static int intel_pxp_tee_io_message(struct intel_pxp *pxp, in intel_pxp_tee_io_message() argument
29 struct drm_i915_private *i915 = pxp_to_gt(pxp)->i915; in intel_pxp_tee_io_message()
30 struct i915_pxp_component *pxp_component = pxp->pxp_component; in intel_pxp_tee_io_message()
33 mutex_lock(&pxp->tee_mutex); in intel_pxp_tee_io_message()
68 mutex_unlock(&pxp->tee_mutex); in intel_pxp_tee_io_message()
86 struct intel_pxp *pxp = i915_dev_to_pxp(i915_kdev); in i915_pxp_tee_component_bind() local
89 mutex_lock(&pxp->tee_mutex); in i915_pxp_tee_component_bind()
90 pxp->pxp_component = data; in i915_pxp_tee_component_bind()
91 pxp->pxp_component->tee_dev = tee_kdev; in i915_pxp_tee_component_bind()
92 mutex_unlock(&pxp->tee_mutex); in i915_pxp_tee_component_bind()
100 intel_pxp_init_hw(pxp); in i915_pxp_tee_component_bind()
111 struct intel_pxp *pxp = i915_dev_to_pxp(i915_kdev); in i915_pxp_tee_component_unbind() local
115 intel_pxp_fini_hw(pxp); in i915_pxp_tee_component_unbind()
117 mutex_lock(&pxp->tee_mutex); in i915_pxp_tee_component_unbind()
118 pxp->pxp_component = NULL; in i915_pxp_tee_component_unbind()
119 mutex_unlock(&pxp->tee_mutex); in i915_pxp_tee_component_unbind()
127 int intel_pxp_tee_component_init(struct intel_pxp *pxp) in intel_pxp_tee_component_init() argument
130 struct intel_gt *gt = pxp_to_gt(pxp); in intel_pxp_tee_component_init()
140 pxp->pxp_component_added = true; in intel_pxp_tee_component_init()
145 void intel_pxp_tee_component_fini(struct intel_pxp *pxp) in intel_pxp_tee_component_fini() argument
147 struct drm_i915_private *i915 = pxp_to_gt(pxp)->i915; in intel_pxp_tee_component_fini()
149 if (!pxp->pxp_component_added) in intel_pxp_tee_component_fini()
153 pxp->pxp_component_added = false; in intel_pxp_tee_component_fini()
156 int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp, in intel_pxp_tee_cmd_create_arb_session() argument
159 struct drm_i915_private *i915 = pxp_to_gt(pxp)->i915; in intel_pxp_tee_cmd_create_arb_session()
170 ret = intel_pxp_tee_io_message(pxp, in intel_pxp_tee_cmd_create_arb_session()