Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 80) sorted by relevance

1234

/rk3399_ARM-atf/lib/el3_runtime/aarch64/
H A Dcontext_mgmt.c61 static void setup_el1_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_el1_context()
127 static void setup_el2_context(cpu_context_t *ctx) in setup_el2_context()
209 static void setup_secure_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_secure_context()
242 static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_realm_context()
313 static void setup_ns_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_ns_context()
466 static void setup_context_common(cpu_context_t *ctx, const entry_point_info_t *ep) in setup_context_common()
714 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context()
955 static void manage_extensions_nonsecure(cpu_context_t *ctx) in manage_extensions_nonsecure()
1049 static void manage_extensions_secure(cpu_context_t *ctx) in manage_extensions_secure()
1086 cpu_context_t *ctx; in cm_init_my_context() local
[all …]
/rk3399_ARM-atf/include/lib/el3_runtime/
H A Dcontext_el2.h231 #define read_el2_ctx_common(ctx, reg) (((ctx)->common).reg) argument
233 #define write_el2_ctx_common(ctx, reg, val) ((((ctx)->common).reg) \ argument
236 #define write_el2_ctx_common_sysreg128(ctx, reg, val) ((((ctx)->common).reg) \ argument
240 #define read_el2_ctx_mte2(ctx, reg) (((ctx)->mte2).reg) argument
241 #define write_el2_ctx_mte2(ctx, reg, val) ((((ctx)->mte2).reg) \ argument
244 #define read_el2_ctx_mte2(ctx, reg) ULL(0) argument
245 #define write_el2_ctx_mte2(ctx, reg, val) argument
249 #define read_el2_ctx_fgt(ctx, reg) (((ctx)->fgt).reg) argument
250 #define write_el2_ctx_fgt(ctx, reg, val) ((((ctx)->fgt).reg) \ argument
253 #define read_el2_ctx_fgt(ctx, reg) ULL(0) argument
[all …]
H A Dcontext_el1.h200 #define read_el1_ctx_common(ctx, reg) (((ctx)->common).reg) argument
202 #define write_el1_ctx_common(ctx, reg, val) ((((ctx)->common).reg) \ argument
205 #define write_el1_ctx_common_sysreg128(ctx, reg, val) ((((ctx)->common).reg) \ argument
208 #define read_el1_ctx_arch_timer(ctx, reg) (((ctx)->arch_timer).reg) argument
209 #define write_el1_ctx_arch_timer(ctx, reg, val) ((((ctx)->arch_timer).reg) \ argument
213 #define read_el1_ctx_aarch32(ctx, reg) (((ctx)->el1_aarch32).reg) argument
214 #define write_el1_ctx_aarch32(ctx, reg, val) ((((ctx)->el1_aarch32).reg) \ argument
217 #define read_el1_ctx_aarch32(ctx, reg) ULL(0) argument
218 #define write_el1_ctx_aarch32(ctx, reg, val) argument
222 #define read_el1_ctx_mte2(ctx, reg) (((ctx)->mte2).reg) argument
[all …]
/rk3399_ARM-atf/lib/extensions/trbe/
H A Dtrbe.c42 void trbe_enable_ns(cpu_context_t *ctx) in trbe_enable_ns()
53 static void trbe_disable_all(cpu_context_t *ctx, bool ns) in trbe_disable_all()
72 void trbe_disable_ns(cpu_context_t *ctx) in trbe_disable_ns()
77 void trbe_disable_secure(cpu_context_t *ctx) in trbe_disable_secure()
82 void trbe_disable_realm(cpu_context_t *ctx) in trbe_disable_realm()
/rk3399_ARM-atf/include/lib/extensions/
H A Dtrbe.h19 static inline void trbe_enable_ns(cpu_context_t *ctx) in trbe_enable_ns()
22 static inline void trbe_disable_ns(cpu_context_t *ctx) in trbe_disable_ns()
25 static inline void trbe_disable_secure(cpu_context_t *ctx) in trbe_disable_secure()
28 static inline void trbe_disable_realm(cpu_context_t *ctx) in trbe_disable_realm()
H A Dspe.h19 static inline void spe_enable_ns(cpu_context_t *ctx) in spe_enable_ns()
22 static inline void spe_disable_secure(cpu_context_t *ctx) in spe_disable_secure()
25 static inline void spe_disable_realm(cpu_context_t *ctx) in spe_disable_realm()
H A Damu.h29 void amu_enable(cpu_context_t *ctx) in amu_enable()
71 static inline u_register_t read_amu_grp0_ctx_reg(amu_regs_t *ctx, size_t index) in read_amu_grp0_ctx_reg()
76 static inline void write_amu_grp0_ctx_reg(amu_regs_t *ctx, size_t index, u_register_t val) in write_amu_grp0_ctx_reg()
90 static inline u_register_t read_amu_grp1_ctx_reg(amu_regs_t *ctx, size_t index) in read_amu_grp1_ctx_reg()
99 static inline void write_amu_grp1_ctx_reg(amu_regs_t *ctx, size_t index, u_register_t val) in write_amu_grp1_ctx_reg()
H A Dtcr2.h16 static inline void tcr2_enable(cpu_context_t *ctx) in tcr2_enable()
19 static inline void tcr2_disable(cpu_context_t *ctx) in tcr2_disable()
/rk3399_ARM-atf/lib/xlat_tables_v2/
H A Dxlat_tables_core.c45 static int xlat_table_get_index(const xlat_ctx_t *ctx, const uint64_t *table) in xlat_table_get_index()
61 static uint64_t *xlat_table_get_empty(const xlat_ctx_t *ctx) in xlat_table_get_empty()
71 static void xlat_table_inc_regions_count(const xlat_ctx_t *ctx, in xlat_table_inc_regions_count()
80 static void xlat_table_dec_regions_count(const xlat_ctx_t *ctx, in xlat_table_dec_regions_count()
89 static bool xlat_table_is_empty(const xlat_ctx_t *ctx, const uint64_t *table) in xlat_table_is_empty()
97 static uint64_t *xlat_table_get_empty(xlat_ctx_t *ctx) in xlat_table_get_empty()
109 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr, in xlat_desc()
356 static void xlat_tables_unmap_region(xlat_ctx_t *ctx, mmap_region_t *mm, in xlat_tables_unmap_region()
570 static uintptr_t xlat_tables_map_region(xlat_ctx_t *ctx, mmap_region_t *mm, in xlat_tables_map_region()
687 static int mmap_add_region_check(const xlat_ctx_t *ctx, const mmap_region_t *mm) in mmap_add_region_check()
[all …]
H A Dxlat_tables_utils.c34 void xlat_tables_print(__unused xlat_ctx_t *ctx) in xlat_tables_print()
56 static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc) in xlat_desc_print()
166 static void xlat_tables_print_internal(xlat_ctx_t *ctx, uintptr_t table_base_va, in xlat_tables_print_internal()
249 void xlat_tables_print(xlat_ctx_t *ctx) in xlat_tables_print()
372 static int xlat_get_mem_attributes_internal(const xlat_ctx_t *ctx, in xlat_get_mem_attributes_internal()
461 int xlat_get_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_get_mem_attributes_ctx()
473 int xlat_change_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_change_mem_attributes_ctx()
/rk3399_ARM-atf/lib/extensions/spe/
H A Dspe.c52 void spe_enable_ns(cpu_context_t *ctx) in spe_enable_ns()
67 static void spe_disable_others(cpu_context_t *ctx) in spe_disable_others()
78 void spe_disable_secure(cpu_context_t *ctx) in spe_disable_secure()
83 void spe_disable_realm(cpu_context_t *ctx) in spe_disable_realm()
/rk3399_ARM-atf/plat/intel/soc/common/lib/sha/
H A Dsha.c45 void sha384_init(sha512_context *ctx) in sha384_init()
58 void sha384_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha384_update()
63 void sha384_finish(sha512_context *ctx, uint8_t digest[SHA384_SUM_LEN]) in sha384_finish()
76 sha512_context ctx; in sha384_start() local
99 void sha512_init(sha512_context *ctx) in sha512_init()
112 void sha512_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha512_update()
117 void sha512_finish(sha512_context *ctx, uint8_t digest[SHA512_SUM_LEN]) in sha512_finish()
129 sha512_context ctx; in sha512_start() local
/rk3399_ARM-atf/common/
H A Druntime_svc.c64 static void ea_proceed(uint32_t ea_reason, u_register_t esr_el3, cpu_context_t *ctx) in ea_proceed()
97 void handler_lower_el_async_ea(cpu_context_t *ctx) in handler_lower_el_async_ea()
129 void handler_interrupt_exception(cpu_context_t *ctx) in handler_interrupt_exception()
170 static void smc_unknown(cpu_context_t *ctx) in smc_unknown()
207 static void sync_handler(cpu_context_t *ctx, uint32_t smc_fid) in sync_handler()
234 void handler_sync_exception(cpu_context_t *ctx) in handler_sync_exception()
/rk3399_ARM-atf/services/std_svc/drtm/
H A Ddrtm_main.c155 static inline uint64_t drtm_features_tpm(void *ctx) in drtm_features_tpm()
161 static inline uint64_t drtm_features_mem_req(void *ctx) in drtm_features_mem_req()
167 static inline uint64_t drtm_features_boot_pe_id(void *ctx) in drtm_features_boot_pe_id()
173 static inline uint64_t drtm_features_dma_prot(void *ctx) in drtm_features_dma_prot()
179 static inline uint64_t drtm_features_tcb_hashes(void *ctx) in drtm_features_tcb_hashes()
185 static inline uint64_t drtm_features_dlme_img_auth_features(void *ctx) in drtm_features_dlme_img_auth_features()
191 static enum drtm_retc drtm_dl_check_caller_el(void *ctx) in drtm_dl_check_caller_el()
619 void *ctx = cm_get_context(NON_SECURE); in drtm_dl_prepare_eret_to_dlme() local
H A Ddrtm_remediation.c17 uint64_t drtm_set_error(uint64_t x1, void *ctx) in drtm_set_error()
30 uint64_t drtm_get_error(void *ctx) in drtm_get_error()
/rk3399_ARM-atf/lib/el3_runtime/aarch32/
H A Dcontext_mgmt.c58 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context()
165 cpu_context_t *ctx; in cm_init_my_context() local
181 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit() local
/rk3399_ARM-atf/drivers/nxp/crypto/caam/src/auth/
H A Dhash.c42 int hash_init(enum hash_algo algo, void **ctx) in hash_init()
67 struct hash_ctx *ctx = context; in hash_update() local
115 struct hash_ctx *ctx = context; in hash_final() local
/rk3399_ARM-atf/lib/extensions/tcr/
H A Dtcr2.c12 void tcr2_enable(cpu_context_t *ctx) in tcr2_enable()
28 void tcr2_disable(cpu_context_t *ctx) in tcr2_disable()
/rk3399_ARM-atf/lib/extensions/amu/aarch64/
H A Damu.c31 void amu_enable(cpu_context_t *ctx) in amu_enable()
129 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_save() local
209 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_restore() local
/rk3399_ARM-atf/drivers/st/crypto/
H A Dstm32_saes.c209 static int saes_start(struct stm32_saes_context *ctx) in saes_start()
231 static void saes_end(struct stm32_saes_context *ctx, int prev_error) in saes_end()
244 static void saes_write_iv(struct stm32_saes_context *ctx) in saes_write_iv()
258 static void saes_write_key(struct stm32_saes_context *ctx) in saes_write_key()
277 static int saes_prepare_key(struct stm32_saes_context *ctx) in saes_prepare_key()
319 static int save_context(struct stm32_saes_context *ctx) in save_context()
346 static int restore_context(struct stm32_saes_context *ctx) in restore_context()
417 int stm32_saes_init(struct stm32_saes_context *ctx, bool is_dec, in stm32_saes_init()
566 int stm32_saes_update_assodata(struct stm32_saes_context *ctx, bool last_block, in stm32_saes_update_assodata()
650 int stm32_saes_update_load(struct stm32_saes_context *ctx, bool last_block, in stm32_saes_update_load()
[all …]
/rk3399_ARM-atf/services/std_svc/spmd/
H A Dspmd_logical_sp.c125 static void spmd_build_direct_message_req(spmd_spm_core_context_t *ctx, in spmd_build_direct_message_req()
144 static void spmd_encode_ctx_to_ffa_value(spmd_spm_core_context_t *ctx, in spmd_encode_ctx_to_ffa_value()
169 static void spmd_logical_sp_set_dir_req_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_set_dir_req_ongoing()
174 static void spmd_logical_sp_reset_dir_req_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_reset_dir_req_ongoing()
179 static void spmd_build_ffa_info_get_regs(spmd_spm_core_context_t *ctx, in spmd_build_ffa_info_get_regs()
210 static void spmd_logical_sp_set_info_regs_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_set_info_regs_ongoing()
216 spmd_spm_core_context_t *ctx) in spmd_logical_sp_reset_info_regs_ongoing()
529 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_el3_invoke_partition_info_get() local
612 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_el3_ffa_msg_direct_req_common() local
797 is_spmd_logical_sp_info_regs_req_in_progress(const spmd_spm_core_context_t *ctx) in is_spmd_logical_sp_info_regs_req_in_progress()
[all …]
/rk3399_ARM-atf/lib/cpus/aarch64/
H A Dcpuamu.c22 struct cpuamu_ctx *ctx = &cpuamu_ctxs[plat_my_core_pos()]; in cpuamu_context_save() local
41 struct cpuamu_ctx *ctx = &cpuamu_ctxs[plat_my_core_pos()]; in cpuamu_context_restore() local
/rk3399_ARM-atf/lib/extensions/amu/aarch32/
H A Damu.c95 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_save() local
174 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_restore() local
/rk3399_ARM-atf/services/std_svc/spm/spm_mm/
H A Dspm_mm_main.c65 static uint64_t spm_sp_synchronous_entry(sp_context_t *ctx) in spm_sp_synchronous_entry()
97 sp_context_t *ctx = &sp_ctx; in spm_sp_synchronous_exit() local
115 sp_context_t *ctx; in spm_init() local
138 sp_context_t *ctx; in spm_mm_setup() local
/rk3399_ARM-atf/services/std_svc/rmmd/
H A Drmmd_main.c110 rmmd_rmm_context_t *ctx = PER_CPU_CUR(rmm_context); in rmmd_rmm_sync_exit() local
131 rmmd_rmm_context_t *ctx = PER_CPU_CUR(rmm_context); in rmm_init() local
253 cpu_context_t *ctx = cm_get_context(dst_sec_state); in rmmd_smc_forward() local
373 rmmd_rmm_context_t *ctx = PER_CPU_CUR(rmm_context); in rmmd_cpu_on_finish_handler() local
581 rmmd_rmm_context_t *ctx = PER_CPU_CUR(rmm_context); in rmmd_rmm_el3_handler() local

1234