Searched refs:optee_ctx (Results 1 – 4 of 4) sorted by relevance
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/ |
D | opteed_pm.c | 56 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_off_handler() local 59 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_off_handler() 63 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_off_handler() 76 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF); in opteed_cpu_off_handler() 90 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_suspend_handler() local 93 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_suspend_handler() 97 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_suspend_handler() 107 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_SUSPEND); in opteed_cpu_suspend_handler() 121 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_on_finish_handler() local 125 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_OFF); in opteed_cpu_on_finish_handler() [all …]
|
D | opteed_common.c | 46 optee_context_t *optee_ctx) in opteed_init_optee_ep_state() argument 51 assert(optee_ctx); in opteed_init_optee_ep_state() 56 optee_ctx->mpidr = read_mpidr_el1(); in opteed_init_optee_ep_state() 57 optee_ctx->state = 0; in opteed_init_optee_ep_state() 58 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF); in opteed_init_optee_ep_state() 60 cm_set_context(&optee_ctx->cpu_ctx, SECURE); in opteed_init_optee_ep_state() 90 uint64_t opteed_synchronous_sp_entry(optee_context_t *optee_ctx) in opteed_synchronous_sp_entry() argument 94 assert(optee_ctx != NULL); in opteed_synchronous_sp_entry() 95 assert(optee_ctx->c_rt_ctx == 0); in opteed_synchronous_sp_entry() 98 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry() [all …]
|
D | opteed_main.c | 102 optee_context_t *optee_ctx; in opteed_sel1_interrupt_handler() local 121 optee_ctx = &opteed_sp_context[linear_id]; in opteed_sel1_interrupt_handler() 122 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_sel1_interrupt_handler() 135 SMC_RET1(&optee_ctx->cpu_ctx, read_elr_el3()); in opteed_sel1_interrupt_handler() 310 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_init() local 327 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_init() 354 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_smc_handler() local 362 gp_regs_t *sec_gpregs = get_gpregs_ctx(&optee_ctx->cpu_ctx); in opteed_smc_handler() 387 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_smc_handler() 414 SMC_RET4(&optee_ctx->cpu_ctx, smc_fid, x1, x2, x3); in opteed_smc_handler() [all …]
|
D | opteed_private.h | 169 uint64_t opteed_synchronous_sp_entry(optee_context_t *optee_ctx); 170 void __dead2 opteed_synchronous_sp_exit(optee_context_t *optee_ctx, uint64_t ret); 174 optee_context_t *optee_ctx);
|