Lines Matching refs:ctx
54 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context() argument
60 assert(ctx != NULL); in cm_setup_context()
65 zeromem(ctx, sizeof(*ctx)); in cm_setup_context()
67 reg_ctx = get_regs_ctx(ctx); in cm_setup_context()
150 cpu_context_t *ctx; in cm_init_context_by_index() local
151 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr)); in cm_init_context_by_index()
152 cm_setup_context(ctx, ep); in cm_init_context_by_index()
162 cpu_context_t *ctx; in cm_init_my_context() local
163 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
164 cm_setup_context(ctx, ep); in cm_init_my_context()
178 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit() local
181 assert(ctx != NULL); in cm_prepare_el3_exit()
184 scr = read_ctx_reg(get_regs_ctx(ctx), CTX_SCR); in cm_prepare_el3_exit()
187 hsctlr = read_ctx_reg(get_regs_ctx(ctx), in cm_prepare_el3_exit()