Lines Matching refs:ctx
58 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context() argument
64 assert(ctx != NULL); in cm_setup_context()
69 zeromem(ctx, sizeof(*ctx)); in cm_setup_context()
71 reg_ctx = get_regs_ctx(ctx); in cm_setup_context()
166 cpu_context_t *ctx; in cm_init_context_by_index() local
167 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr)); in cm_init_context_by_index()
168 cm_setup_context(ctx, ep); in cm_init_context_by_index()
178 cpu_context_t *ctx; in cm_init_my_context() local
179 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
180 cm_setup_context(ctx, ep); in cm_init_my_context()
194 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit() local
197 assert(ctx != NULL); in cm_prepare_el3_exit()
200 scr = read_ctx_reg(get_regs_ctx(ctx), CTX_SCR); in cm_prepare_el3_exit()
203 hsctlr = read_ctx_reg(get_regs_ctx(ctx), in cm_prepare_el3_exit()