Lines Matching refs:reg
34 u_register_t reg; in sme_enable() local
47 reg = read_ctx_reg(state, CTX_CPTR_EL3); in sme_enable()
48 reg |= ESM_BIT; 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()
53 reg |= SCR_ENTP2_BIT; in sme_enable()
54 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_enable()
65 reg = SMCR_ELX_LEN_MASK; in sme_enable()
68 reg |= SMCR_ELX_FA64_BIT; in sme_enable()
70 write_smcr_el3(reg); in sme_enable()
81 u_register_t reg; in sme_disable() local
93 reg = read_ctx_reg(state, CTX_CPTR_EL3); in sme_disable()
94 reg &= ~ESM_BIT; /* Trap SME */ in sme_disable()
95 reg &= ~CPTR_EZ_BIT; /* Trap SVE */ in sme_disable()
96 reg |= TFP_BIT; /* Trap FPU/SIMD */ 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()
101 reg &= ~SCR_ENTP2_BIT; in sme_disable()
102 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_disable()