Searched refs:cpu_ctx (Results 1 - 13 of 13) sorted by relevance

/device/linaro/bootloader/arm-trusted-firmware/services/spd/tlkd/
H A Dtlkd_pm.c52 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx);
85 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx);
112 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx);
H A Dtlkd_common.c92 cm_set_context(&tlk_ctx->cpu_ctx, SECURE);
114 * 1. Applies the S-EL1 system register context from tlk_ctx->cpu_ctx.
118 * from the tlk_ctx->cpu_ctx are used to enter the secure payload image.
129 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx);
143 * 1. Saves the S-EL1 system register context to tlk_ctx->cpu_ctx.
155 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx);
H A Dtlkd_main.c237 assert(&tlk_ctx.cpu_ctx == cm_get_context(SECURE));
259 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx);
264 SMC_RET4(&tlk_ctx.cpu_ctx, smc_fid, 0, (uint32_t)x1,
H A Dtlkd_private.h95 * 'cpu_ctx' - space to maintain SP architectural state
103 cpu_context_t cpu_ctx; member in struct:tlk_context
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/
H A Dopteed_common.c37 cm_set_context(&optee_ctx->cpu_ctx, SECURE);
62 * 1. Applies the S-EL1 system register context from optee_ctx->cpu_ctx.
66 * from the optee_ctx->cpu_ctx are used to enter the OPTEE image.
76 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx);
91 * 1. Saves the S-EL1 system register context tp optee_ctx->cpu_ctx.
101 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx);
H A Dopteed_main.c72 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE));
85 SMC_RET1(&optee_ctx->cpu_ctx, read_elr_el3());
231 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE));
248 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
252 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
256 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
261 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
266 SMC_RET4(&optee_ctx->cpu_ctx, smc_fid, x1, x2, x3);
H A Dopteed_private.h123 * 'cpu_ctx' - space to maintain OPTEE architectural state
129 cpu_context_t cpu_ctx; member in struct:optee_context
H A Dopteed_pm.c136 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
H A Dtspd_common.c46 cm_set_context(&tsp_ctx->cpu_ctx, SECURE);
63 * 1. Applies the S-EL1 system register context from tsp_ctx->cpu_ctx.
67 * from the tsp_ctx->cpu_ctx are used to enter the secure payload image.
77 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
92 * 1. Saves the S-EL1 system register context tp tsp_ctx->cpu_ctx.
102 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
H A Dtspd_main.c113 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE));
126 tsp_ctx->saved_spsr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx,
128 tsp_ctx->saved_elr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx,
132 memcpy(&tsp_ctx->sp_ctx, &tsp_ctx->cpu_ctx, TSPD_SP_CTX_SIZE);
149 SMC_RET2(&tsp_ctx->cpu_ctx, TSP_HANDLE_SEL1_INTR_AND_RETURN, read_elr_el3());
325 SMC_SET_EL3(&tsp_ctx->cpu_ctx,
328 SMC_SET_EL3(&tsp_ctx->cpu_ctx,
336 memcpy(&tsp_ctx->cpu_ctx, &tsp_ctx->sp_ctx,
417 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
522 assert(&tsp_ctx->cpu_ctx
[all...]
H A Dtspd_pm.c158 write_ctx_reg(get_gpregs_ctx(&tsp_ctx->cpu_ctx),
H A Dtspd_private.h171 * 'cpu_ctx' - space to maintain SP architectural state
185 cpu_context_t cpu_ctx; member in struct:tsp_context
/device/linaro/bootloader/arm-trusted-firmware/services/spd/trusty/
H A Dtrusty.c33 cpu_context_t cpu_ctx; member in struct:trusty_cpu_ctx
292 int reg_width = GET_RW(read_ctx_reg(get_el3state_ctx(&ctx->cpu_ctx),
304 cm_set_context(&ctx->cpu_ctx, SECURE);

Completed in 55 milliseconds