Lines Matching refs:state
36 el3_state_t *state; in sme_enable() local
44 state = get_el3state_ctx(context); in sme_enable()
47 reg = read_ctx_reg(state, CTX_CPTR_EL3); in sme_enable()
49 write_ctx_reg(state, CTX_CPTR_EL3, reg); in sme_enable()
52 reg = read_ctx_reg(state, CTX_SCR_EL3); in sme_enable()
54 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_enable()
82 el3_state_t *state; in sme_disable() local
90 state = get_el3state_ctx(context); in sme_disable()
93 reg = read_ctx_reg(state, CTX_CPTR_EL3); in sme_disable()
97 write_ctx_reg(state, CTX_CPTR_EL3, reg); in sme_disable()
100 reg = read_ctx_reg(state, CTX_SCR_EL3); in sme_disable()
102 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_disable()