Home
last modified time | relevance | path

Searched refs:optee_ctx (Results 1 – 4 of 4) sorted by relevance

/rk3399_ARM-atf/services/spd/opteed/
H A Dopteed_pm.c33 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_off_handler() local
35 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_cpu_off_handler()
40 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_off_handler()
44 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_off_handler()
57 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF); in opteed_cpu_off_handler()
70 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_suspend_handler() local
72 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_cpu_suspend_handler()
77 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_suspend_handler()
79 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), CTX_GPREG_X0, in opteed_cpu_suspend_handler()
84 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_suspend_handler()
[all …]
H A Dopteed_common.c25 optee_context_t *optee_ctx) in opteed_init_optee_ep_state() argument
30 assert(optee_ctx); in opteed_init_optee_ep_state()
35 optee_ctx->mpidr = read_mpidr_el1(); in opteed_init_optee_ep_state()
36 optee_ctx->state = 0; in opteed_init_optee_ep_state()
37 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF); in opteed_init_optee_ep_state()
39 cm_set_context(&optee_ctx->cpu_ctx, SECURE); in opteed_init_optee_ep_state()
71 uint64_t opteed_synchronous_sp_entry(optee_context_t *optee_ctx) in opteed_synchronous_sp_entry() argument
75 assert(optee_ctx != NULL); in opteed_synchronous_sp_entry()
76 assert(optee_ctx->c_rt_ctx == 0); in opteed_synchronous_sp_entry()
79 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry()
[all …]
H A Dopteed_main.c90 optee_context_t *optee_ctx; in opteed_sel1_interrupt_handler() local
110 optee_ctx = &opteed_sp_context[linear_id]; in opteed_sel1_interrupt_handler()
111 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_sel1_interrupt_handler()
124 SMC_RET1(&optee_ctx->cpu_ctx, read_elr_el3()); in opteed_sel1_interrupt_handler()
263 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_init_with_entry_point() local
273 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_init_with_entry_point()
619 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_smc_handler() local
678 if (get_optee_pstate(optee_ctx->state) == in opteed_smc_handler()
690 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_smc_handler()
707 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_smc_handler()
[all …]
H A Dopteed_private.h148 uint64_t opteed_synchronous_sp_entry(optee_context_t *optee_ctx);
149 void __dead2 opteed_synchronous_sp_exit(optee_context_t *optee_ctx, uint64_t ret);
153 optee_context_t *optee_ctx);