Lines Matching refs:security_state
32 void *smc_get_ctx(unsigned int security_state) in smc_get_ctx() argument
34 assert(sec_state_is_valid(security_state)); in smc_get_ctx()
35 return &bl1_smc_context[security_state]; in smc_get_ctx()
38 void smc_set_next_ctx(unsigned int security_state) in smc_set_next_ctx() argument
40 assert(sec_state_is_valid(security_state)); in smc_set_next_ctx()
41 bl1_next_smc_context_ptr = &bl1_smc_context[security_state]; in smc_set_next_ctx()
50 void *cm_get_context(uint32_t security_state) in cm_get_context() argument
52 assert(sec_state_is_valid(security_state)); in cm_get_context()
53 return &bl1_cpu_context[security_state]; in cm_get_context()
105 unsigned int security_state, mode = MODE32_svc; in bl1_prepare_next_image() local
117 security_state = GET_SECURITY_STATE(next_bl_ep->h.attr); in bl1_prepare_next_image()
120 if ((security_state != SECURE) && (GET_VIRT_EXT(read_id_pfr1()))) { in bl1_prepare_next_image()
132 cm_prepare_el3_exit(security_state); in bl1_prepare_next_image()
133 cm_set_next_context(cm_get_context(security_state)); in bl1_prepare_next_image()
136 smc_set_next_ctx(security_state); in bl1_prepare_next_image()
146 if (security_state == NON_SECURE) { in bl1_prepare_next_image()
147 cpu_context_t *ctx = cm_get_context(security_state); in bl1_prepare_next_image()