/tf-a-ffa_el3_spmc/bl31/ |
A D | bl31_context_mgmt.c | 20 void *cm_get_context(uint32_t security_state) in cm_get_context() argument 22 assert(security_state <= NON_SECURE); in cm_get_context() 24 return get_cpu_data(cpu_context[security_state]); in cm_get_context() 31 void cm_set_context(void *context, uint32_t security_state) in cm_set_context() argument 33 assert(security_state <= NON_SECURE); in cm_set_context() 35 set_cpu_data(cpu_context[security_state], context); in cm_set_context() 45 unsigned int security_state) in cm_get_context_by_index() argument 47 assert(sec_state_is_valid(security_state)); in cm_get_context_by_index() 49 return get_cpu_data_by_index(cpu_idx, cpu_context[security_state]); in cm_get_context_by_index() 57 unsigned int security_state) in cm_set_context_by_index() argument [all …]
|
A D | interrupt_mgmt.c | 85 assert(sec_state_is_valid(security_state)); in get_scr_el3_from_routing_model() 100 uint32_t security_state) in set_scr_el3_from_rm() argument 105 bit_pos = plat_interrupt_type_to_line(type, security_state); in set_scr_el3_from_rm() 113 if (cm_get_context(security_state) != NULL) in set_scr_el3_from_rm() 114 cm_write_scr_el3_bit(security_state, bit_pos, flag); in set_scr_el3_from_rm() 155 flag = get_interrupt_rm_flag(INTR_DEFAULT_RM, security_state); in disable_intr_rm_local() 157 bit_pos = plat_interrupt_type_to_line(type, security_state); in disable_intr_rm_local() 158 cm_write_scr_el3_bit(security_state, bit_pos, flag); in disable_intr_rm_local() 174 security_state); in enable_intr_rm_local() 176 bit_pos = plat_interrupt_type_to_line(type, security_state); in enable_intr_rm_local() [all …]
|
A D | bl31_main.c | 182 void bl31_set_next_image_type(uint32_t security_state) in bl31_set_next_image_type() argument 184 assert(sec_state_is_valid(security_state)); in bl31_set_next_image_type() 185 next_image_type = security_state; in bl31_set_next_image_type()
|
/tf-a-ffa_el3_spmc/include/lib/el3_runtime/ |
A D | context_mgmt.h | 26 unsigned int security_state); 29 unsigned int security_state); 30 void *cm_get_context(uint32_t security_state); 31 void cm_set_context(void *context, uint32_t security_state); 36 void cm_prepare_el3_exit(uint32_t security_state); 40 void cm_el2_sysregs_context_save(uint32_t security_state); 44 void cm_el1_sysregs_context_save(uint32_t security_state); 47 void cm_set_elr_spsr_el3(uint32_t security_state, 49 void cm_write_scr_el3_bit(uint32_t security_state, 52 void cm_set_next_eret_context(uint32_t security_state); [all …]
|
/tf-a-ffa_el3_spmc/bl1/aarch64/ |
A D | bl1_context_mgmt.c | 21 void *cm_get_context(uint32_t security_state) in cm_get_context() argument 23 assert(sec_state_is_valid(security_state)); in cm_get_context() 24 return bl1_cpu_context_ptr[security_state]; in cm_get_context() 27 void cm_set_context(void *context, uint32_t security_state) in cm_set_context() argument 29 assert(sec_state_is_valid(security_state)); in cm_set_context() 30 bl1_cpu_context_ptr[security_state] = context; in cm_set_context() 46 unsigned int security_state, mode = MODE_EL1; in bl1_prepare_next_image() local 70 security_state = GET_SECURITY_STATE(next_bl_ep->h.attr); in bl1_prepare_next_image() 73 if (cm_get_context(security_state) == NULL) in bl1_prepare_next_image() 74 cm_set_context(&bl1_cpu_context[security_state], security_state); in bl1_prepare_next_image() [all …]
|
/tf-a-ffa_el3_spmc/bl1/aarch32/ |
A D | bl1_context_mgmt.c | 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() 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() 132 cm_prepare_el3_exit(security_state); in bl1_prepare_next_image() 136 smc_set_next_ctx(security_state); in bl1_prepare_next_image() [all …]
|
/tf-a-ffa_el3_spmc/lib/el3_runtime/aarch64/ |
A D | context_mgmt.c | 68 unsigned int security_state; in cm_setup_context() local 96 if (security_state != SECURE) in cm_setup_context() 144 if (security_state == NON_SECURE) in cm_setup_context() 171 (security_state == NON_SECURE))) { in cm_setup_context() 186 if (security_state == SECURE) { in cm_setup_context() 408 if (security_state == NON_SECURE) { in cm_prepare_el3_exit() 619 if ((security_state == NON_SECURE) || in cm_el2_sysregs_context_save() 641 if ((security_state == NON_SECURE) || in cm_el2_sysregs_context_restore() 662 ctx = cm_get_context(security_state); in cm_el1_sysregs_context_save() 668 if (security_state == SECURE) in cm_el1_sysregs_context_save() [all …]
|
/tf-a-ffa_el3_spmc/bl32/sp_min/ |
A D | sp_min_main.c | 47 void *smc_get_ctx(unsigned int security_state) 49 assert(security_state == NON_SECURE); 53 void smc_set_next_ctx(unsigned int security_state) in smc_set_next_ctx() argument 55 assert(security_state == NON_SECURE); in smc_set_next_ctx() 69 void *cm_get_context(uint32_t security_state) in cm_get_context() argument 71 assert(security_state == NON_SECURE); in cm_get_context() 81 assert(security_state == NON_SECURE); in cm_set_context() 92 unsigned int security_state) in cm_get_context_by_index() argument 94 assert(security_state == NON_SECURE); in cm_get_context_by_index() 103 unsigned int security_state) in cm_set_context_by_index() argument [all …]
|
/tf-a-ffa_el3_spmc/lib/el3_runtime/aarch32/ |
A D | context_mgmt.c | 56 unsigned int security_state; in cm_setup_context() local 62 security_state = GET_SECURITY_STATE(ep->h.attr); in cm_setup_context() 76 if (security_state != SECURE) in cm_setup_context() 79 if (security_state != SECURE) { in cm_setup_context() 175 void cm_prepare_el3_exit(uint32_t security_state) in cm_prepare_el3_exit() argument 178 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit() 183 if (security_state == NON_SECURE) { in cm_prepare_el3_exit()
|
/tf-a-ffa_el3_spmc/include/bl31/ |
A D | bl31.h | 17 void bl31_next_el_arch_setup(uint32_t security_state); 18 void bl31_set_next_image_type(uint32_t security_state);
|
A D | interrupt_mgmt.h | 137 u_register_t get_scr_el3_from_routing_model(uint32_t security_state); 143 int disable_intr_rm_local(uint32_t type, uint32_t security_state); 144 int enable_intr_rm_local(uint32_t type, uint32_t security_state);
|
/tf-a-ffa_el3_spmc/plat/common/ |
A D | plat_gicv3.c | 143 uint32_t security_state) in plat_interrupt_type_to_line() argument 149 assert(sec_state_is_valid(security_state)); in plat_interrupt_type_to_line() 158 if (security_state == SECURE) in plat_interrupt_type_to_line() 168 if (security_state == SECURE) in plat_interrupt_type_to_line()
|
A D | plat_gicv2.c | 134 uint32_t security_state) in plat_interrupt_type_to_line() argument 139 assert(sec_state_is_valid(security_state)); in plat_interrupt_type_to_line()
|
/tf-a-ffa_el3_spmc/services/spd/trusty/ |
A D | trusty.c | 88 static struct smc_args trusty_context_switch(uint32_t security_state, uint64_t r0, in trusty_context_switch() argument 95 assert(ctx->saved_security_state != security_state); in trusty_context_switch() 120 fpregs_context_save(get_fpregs_ctx(cm_get_context(security_state))); in trusty_context_switch() 121 cm_el1_sysregs_context_save(security_state); in trusty_context_switch() 123 ctx->saved_security_state = security_state; in trusty_context_switch() 126 assert(ctx->saved_security_state == ((security_state == 0U) ? 1U : 0U)); in trusty_context_switch() 128 cm_el1_sysregs_context_restore(security_state); in trusty_context_switch() 130 fpregs_context_restore(get_fpregs_ctx(cm_get_context(security_state))); in trusty_context_switch() 132 cm_set_next_eret_context(security_state); in trusty_context_switch()
|
/tf-a-ffa_el3_spmc/plat/rpi/common/ |
A D | rpi3_common.c | 234 uint32_t plat_interrupt_type_to_line(uint32_t type, uint32_t security_state) in plat_interrupt_type_to_line() argument 239 assert(sec_state_is_valid(security_state)); in plat_interrupt_type_to_line()
|
/tf-a-ffa_el3_spmc/include/arch/aarch32/ |
A D | smccc_helpers.h | 167 void *smc_get_ctx(unsigned int security_state); 170 void smc_set_next_ctx(unsigned int security_state);
|
/tf-a-ffa_el3_spmc/docs/getting_started/ |
A D | psci-lib-integration-guide.rst | 364 Argument : unsigned int cpu_idx, void *context, unsigned int security_state 371 argument), for the specified ``security_state`` (3rd argument) and CPU identified 372 by ``cpu_idx`` (first argument). The ``security_state`` will always be non-secure 385 Argument : uint32_t security_state 389 the specified ``security_state`` (first argument) for the current CPU. The caller 391 context pointers are stored prior to invoking this API. The ``security_state`` 399 Argument : unsigned int cpu_idx, unsigned int security_state 403 the specified ``security_state`` (second argument) for the CPU identified by 406 pointers are stored prior to invoking this API. The ``security_state`` will
|
/tf-a-ffa_el3_spmc/include/plat/common/ |
A D | platform.h | 88 uint32_t security_state);
|
/tf-a-ffa_el3_spmc/docs/process/ |
A D | coding-style.rst | 231 uint32_t security_state)
|
/tf-a-ffa_el3_spmc/docs/design/ |
A D | interrupt-framework-design.rst | 380 uint32_t cm_get_scr_el3(uint32_t security_state); 381 void cm_write_scr_el3_bit(uint32_t security_state,
|