Home
last modified time | relevance | path

Searched refs:cm_get_context (Results 1 – 23 of 23) sorted by relevance

/external/arm-trusted-firmware/services/spd/tspd/
Dtspd_main.c64 assert(handle == cm_get_context(SECURE)); in tspd_handle_sp_preemption()
67 ns_cpu_context = cm_get_context(NON_SECURE); in tspd_handle_sp_preemption()
108 assert(handle == cm_get_context(NON_SECURE)); in tspd_sel1_interrupt_handler()
116 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler()
321 assert(handle == cm_get_context(SECURE)); in tspd_smc_handler()
345 ns_cpu_context = cm_get_context(NON_SECURE); in tspd_smc_handler()
420 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_smc_handler()
431 SMC_RET0(cm_get_context(NON_SECURE)); in tspd_smc_handler()
504 assert(handle == cm_get_context(NON_SECURE)); in tspd_smc_handler()
527 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_smc_handler()
[all …]
Dtspd_common.c79 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry()
104 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit()
/external/arm-trusted-firmware/services/spd/opteed/
Dopteed_main.c65 assert(handle == cm_get_context(NON_SECURE)); in opteed_sel1_interrupt_handler()
73 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_sel1_interrupt_handler()
216 assert(handle == cm_get_context(NON_SECURE)); in opteed_smc_handler()
232 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_smc_handler()
363 assert(handle == cm_get_context(SECURE)); in opteed_smc_handler()
367 ns_cpu_context = cm_get_context(NON_SECURE); in opteed_smc_handler()
382 ns_cpu_context = cm_get_context(NON_SECURE); in opteed_smc_handler()
Dopteed_common.c78 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry()
103 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_exit()
/external/arm-trusted-firmware/lib/el3_runtime/aarch64/
Dcontext_mgmt.c315 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
330 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit()
544 ctx = cm_get_context(security_state); in cm_el1_sysregs_context_save()
561 ctx = cm_get_context(security_state); in cm_el1_sysregs_context_restore()
583 ctx = cm_get_context(security_state); in cm_set_elr_el3()
601 ctx = cm_get_context(security_state); in cm_set_elr_spsr_el3()
623 ctx = cm_get_context(security_state); in cm_write_scr_el3_bit()
652 ctx = cm_get_context(security_state); in cm_get_scr_el3()
669 ctx = cm_get_context(security_state); in cm_set_next_eret_context()
/external/arm-trusted-firmware/bl32/sp_min/
Dsp_min_main.c69 void *cm_get_context(uint32_t security_state) in cm_get_context() function
128 cpu_context_t *ctx = cm_get_context(NON_SECURE); in sp_min_prepare_next_image_entry()
142 copy_cpu_ctx_to_smc_stx(get_regs_ctx(cm_get_context(NON_SECURE)), in sp_min_prepare_next_image_entry()
211 cpu_context_t *ctx = cm_get_context(NON_SECURE); in sp_min_warm_boot()
221 copy_cpu_ctx_to_smc_stx(get_regs_ctx(cm_get_context(NON_SECURE)), in sp_min_warm_boot()
/external/arm-trusted-firmware/services/spd/tlkd/
Dtlkd_main.c173 assert(handle == cm_get_context(SECURE)); in tlkd_smc_handler()
177 ns_cpu_context = cm_get_context(NON_SECURE); in tlkd_smc_handler()
225 assert(handle == cm_get_context(NON_SECURE)); in tlkd_smc_handler()
245 assert(&tlk_ctx.cpu_ctx == cm_get_context(SECURE)); in tlkd_smc_handler()
321 ns_cpu_context = cm_get_context(NON_SECURE); in tlkd_smc_handler()
Dtlkd_common.c131 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_entry()
157 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_exit()
/external/arm-trusted-firmware/bl1/aarch32/
Dbl1_context_mgmt.c50 void *cm_get_context(uint32_t security_state) in cm_get_context() function
133 cm_set_next_context(cm_get_context(security_state)); in bl1_prepare_next_image()
147 cpu_context_t *ctx = cm_get_context(security_state); in bl1_prepare_next_image()
/external/arm-trusted-firmware/bl1/aarch64/
Dbl1_context_mgmt.c27 void *cm_get_context(uint32_t security_state) in cm_get_context() function
72 if (!cm_get_context(security_state)) in bl1_prepare_next_image()
/external/arm-trusted-firmware/services/spd/trusty/
Dtrusty.c92 ctx_smc = cm_get_context(NON_SECURE); in trusty_context_switch()
112 fpregs_context_save(get_fpregs_ctx(cm_get_context(security_state))); in trusty_context_switch()
122 fpregs_context_restore(get_fpregs_ctx(cm_get_context(security_state))); in trusty_context_switch()
302 fpregs_context_save(get_fpregs_ctx(cm_get_context(NON_SECURE))); in trusty_init()
319 fpregs_context_restore(get_fpregs_ctx(cm_get_context(SECURE))); in trusty_init()
328 fpregs_context_restore(get_fpregs_ctx(cm_get_context(NON_SECURE))); in trusty_init()
/external/arm-trusted-firmware/bl1/
Dbl1_fwu.c535 *handle = cm_get_context(SECURE); in bl1_fwu_image_execute()
597 *handle = cm_get_context(resume_sec_state); in bl1_fwu_image_resume()
600 cm_set_next_context(cm_get_context(resume_sec_state)); in bl1_fwu_image_resume()
654 *handle = cm_get_context(NON_SECURE); in bl1_fwu_sec_image_done()
657 cm_set_next_context(cm_get_context(NON_SECURE)); in bl1_fwu_sec_image_done()
/external/arm-trusted-firmware/plat/nvidia/tegra/common/
Dtegra_fiq_glue.c45 cpu_context_t *ctx = cm_get_context(NON_SECURE); in tegra_fiq_interrupt_handler()
156 cpu_context_t *ctx = cm_get_context(NON_SECURE); in tegra_fiq_get_intr_context()
/external/arm-trusted-firmware/lib/el3_runtime/aarch32/
Dcontext_mgmt.c165 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
180 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit()
/external/arm-trusted-firmware/services/std_svc/spm_mm/
Dspm_mm_main.c290 assert(handle == cm_get_context(SECURE)); in spm_mm_smc_handler()
331 assert(handle == cm_get_context(NON_SECURE)); in spm_mm_smc_handler()
/external/arm-trusted-firmware/bl31/
Dbl31_context_mgmt.c21 void *cm_get_context(uint32_t security_state) in cm_get_context() function
Dinterrupt_mgmt.c113 if (cm_get_context(security_state) != NULL) in set_scr_el3_from_rm()
Dehf.c350 ns_ctx = cm_get_context(NON_SECURE); in ehf_allow_ns_preemption()
/external/arm-trusted-firmware/include/lib/el3_runtime/
Dcontext_mgmt.h30 void *cm_get_context(uint32_t security_state);
/external/arm-trusted-firmware/services/std_svc/sdei/
Dsdei_intr_mgmt.c228 ns_ctx = cm_get_context(NON_SECURE); in restore_and_resume_ns_context()
648 ctx = cm_get_context(NON_SECURE); in sdei_event_complete()
Dsdei_private.h166 cpu_context_t *ns_ctx = cm_get_context(NON_SECURE); in sdei_client_el()
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/drivers/mce/
Dmce.c159 gp_regs_t *gp_regs = get_gpregs_ctx(cm_get_context(NON_SECURE)); in mce_command_handler()
/external/arm-trusted-firmware/docs/getting_started/
Dpsci-lib-integration-guide.rst40 ``cm_get_context()`` , then programming the registers in the non-secure
222 cm_get_context()) for the current CPU and program the registers prior to exit
292 non-secure ``cpu_context_t`` using ``cm_get_context()`` and program the registers
381 **Function : cm_get_context()**