Lines Matching refs:cs

23 static u32 *pxp_emit_session_selection(u32 *cs, u32 idx)  in pxp_emit_session_selection()  argument
25 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection()
28 *cs++ = MI_FLUSH_DW; in pxp_emit_session_selection()
29 *cs++ = 0; in pxp_emit_session_selection()
30 *cs++ = 0; in pxp_emit_session_selection()
33 *cs++ = MI_SET_APPID | MI_SET_APPID_SESSION_ID(idx); in pxp_emit_session_selection()
35 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection()
38 *cs++ = MI_FLUSH_DW | MI_FLUSH_DW_PROTECTED_MEM_EN | in pxp_emit_session_selection()
40 *cs++ = I915_GEM_HWS_PXP_ADDR | MI_FLUSH_DW_USE_GTT; in pxp_emit_session_selection()
41 *cs++ = 0; in pxp_emit_session_selection()
43 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection()
45 return cs; in pxp_emit_session_selection()
48 static u32 *pxp_emit_inline_termination(u32 *cs) in pxp_emit_inline_termination() argument
51 *cs++ = CRYPTO_KEY_EXCHANGE; in pxp_emit_inline_termination()
52 *cs++ = 0; in pxp_emit_inline_termination()
54 return cs; in pxp_emit_inline_termination()
57 static u32 *pxp_emit_session_termination(u32 *cs, u32 idx) in pxp_emit_session_termination() argument
59 cs = pxp_emit_session_selection(cs, idx); in pxp_emit_session_termination()
60 cs = pxp_emit_inline_termination(cs); in pxp_emit_session_termination()
62 return cs; in pxp_emit_session_termination()
65 static u32 *pxp_emit_wait(u32 *cs) in pxp_emit_wait() argument
68 *cs++ = MFX_WAIT_PXP; in pxp_emit_wait()
69 *cs++ = 0; in pxp_emit_wait()
71 return cs; in pxp_emit_wait()
101 u32 *cs; in intel_pxp_terminate_session() local
117 cs = intel_ring_begin(rq, SESSION_TERMINATION_LEN(1) + WAIT_LEN); in intel_pxp_terminate_session()
118 if (IS_ERR(cs)) { in intel_pxp_terminate_session()
119 err = PTR_ERR(cs); in intel_pxp_terminate_session()
123 cs = pxp_emit_session_termination(cs, id); in intel_pxp_terminate_session()
124 cs = pxp_emit_wait(cs); in intel_pxp_terminate_session()
126 intel_ring_advance(rq, cs); in intel_pxp_terminate_session()