Home
last modified time | relevance | path

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

123

/rk3399_ARM-atf/lib/el3_runtime/aarch64/
H A Dcontext_mgmt.c57 static void setup_el1_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_el1_context()
120 static void setup_secure_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_secure_context()
161 static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_realm_context()
232 static void setup_ns_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_ns_context()
389 static void setup_context_common(cpu_context_t *ctx, const entry_point_info_t *ep) in setup_context_common()
654 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context()
894 static void manage_extensions_nonsecure(cpu_context_t *ctx) in manage_extensions_nonsecure()
988 static void manage_extensions_secure(cpu_context_t *ctx) in manage_extensions_secure()
1025 cpu_context_t *ctx; in cm_init_my_context() local
1031 static void init_nonsecure_el2_unused(cpu_context_t *ctx) in init_nonsecure_el2_unused()
[all …]
/rk3399_ARM-atf/include/lib/el3_runtime/
H A Dcontext_el1.h191 #define read_el1_ctx_common(ctx, reg) (((ctx)->common).reg) argument
193 #define write_el1_ctx_common(ctx, reg, val) ((((ctx)->common).reg) \ argument
196 #define write_el1_ctx_common_sysreg128(ctx, reg, val) ((((ctx)->common).reg) \ argument
199 #define read_el1_ctx_arch_timer(ctx, reg) (((ctx)->arch_timer).reg) argument
200 #define write_el1_ctx_arch_timer(ctx, reg, val) ((((ctx)->arch_timer).reg) \ argument
204 #define read_el1_ctx_aarch32(ctx, reg) (((ctx)->el1_aarch32).reg) argument
205 #define write_el1_ctx_aarch32(ctx, reg, val) ((((ctx)->el1_aarch32).reg) \ argument
208 #define read_el1_ctx_aarch32(ctx, reg) ULL(0) argument
209 #define write_el1_ctx_aarch32(ctx, reg, val) argument
213 #define read_el1_ctx_mte2(ctx, reg) (((ctx)->mte2).reg) argument
[all …]
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 …]
/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()
66 static inline u_register_t read_amu_grp0_ctx_reg(amu_regs_t *ctx, size_t index) in read_amu_grp0_ctx_reg()
71 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()
85 static inline u_register_t read_amu_grp1_ctx_reg(amu_regs_t *ctx, size_t index) in read_amu_grp1_ctx_reg()
94 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/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/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()
682 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.c32 void xlat_tables_print(__unused xlat_ctx_t *ctx) in xlat_tables_print()
54 static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc) in xlat_desc_print()
140 static void xlat_tables_print_internal(xlat_ctx_t *ctx, uintptr_t table_base_va, in xlat_tables_print_internal()
223 void xlat_tables_print(xlat_ctx_t *ctx) in xlat_tables_print()
346 static int xlat_get_mem_attributes_internal(const xlat_ctx_t *ctx, in xlat_get_mem_attributes_internal()
489 int xlat_get_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_get_mem_attributes_ctx()
497 int xlat_change_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_change_mem_attributes_ctx()
/rk3399_ARM-atf/services/std_svc/spmd/
H A Dspmd_logical_sp.c137 static void spmd_build_direct_message_req(spmd_spm_core_context_t *ctx, in spmd_build_direct_message_req()
153 static void spmd_encode_ctx_to_ffa_value(spmd_spm_core_context_t *ctx, in spmd_encode_ctx_to_ffa_value()
178 static void spmd_logical_sp_set_dir_req_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_set_dir_req_ongoing()
183 static void spmd_logical_sp_reset_dir_req_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_reset_dir_req_ongoing()
188 static void spmd_build_ffa_info_get_regs(spmd_spm_core_context_t *ctx, in spmd_build_ffa_info_get_regs()
219 static void spmd_logical_sp_set_info_regs_ongoing(spmd_spm_core_context_t *ctx) in spmd_logical_sp_set_info_regs_ongoing()
225 spmd_spm_core_context_t *ctx) in spmd_logical_sp_reset_info_regs_ongoing()
508 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_el3_invoke_partition_info_get() local
589 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_el3_ffa_msg_direct_req() local
727 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/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/services/std_svc/drtm/
H A Ddrtm_main.c150 static inline uint64_t drtm_features_tpm(void *ctx) in drtm_features_tpm()
156 static inline uint64_t drtm_features_mem_req(void *ctx) in drtm_features_mem_req()
162 static inline uint64_t drtm_features_boot_pe_id(void *ctx) in drtm_features_boot_pe_id()
168 static inline uint64_t drtm_features_dma_prot(void *ctx) in drtm_features_dma_prot()
174 static inline uint64_t drtm_features_tcb_hashes(void *ctx) in drtm_features_tcb_hashes()
180 static inline uint64_t drtm_features_dlme_img_auth_features(void *ctx) in drtm_features_dlme_img_auth_features()
186 static enum drtm_retc drtm_dl_check_caller_el(void *ctx) in drtm_dl_check_caller_el()
605 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/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/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/amu/aarch64/
H A Damu.c31 void amu_enable(cpu_context_t *ctx) in amu_enable()
115 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_save() local
199 amu_regs_t *ctx = PER_CPU_CUR(amu_ctx); in amu_context_restore() local
/rk3399_ARM-atf/include/lib/el3_runtime/aarch64/
H A Dcontext.h250 #define read_ctx_reg(ctx, offset) ((ctx)->ctx_regs[(offset) >> DWORD_SHIFT]) argument
251 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[(offset) >> DWORD_SHIFT]) \ argument
388 #define set_aapcs_args0(ctx, x0) do { \ argument
391 #define set_aapcs_args1(ctx, x0, x1) do { \ argument
395 #define set_aapcs_args2(ctx, x0, x1, x2) do { \ argument
399 #define set_aapcs_args3(ctx, x0, x1, x2, x3) do { \ argument
403 #define set_aapcs_args4(ctx, x0, x1, x2, x3, x4) do { \ argument
407 #define set_aapcs_args5(ctx, x0, x1, x2, x3, x4, x5) do { \ argument
411 #define set_aapcs_args6(ctx, x0, x1, x2, x3, x4, x5, x6) do { \ argument
415 #define set_aapcs_args7(ctx, x0, x1, x2, x3, x4, x5, x6, x7) do { \ argument
[all …]
/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/lib/extensions/amu/aarch32/
H A Damu.c83 amu_regs_t *ctx = &amu_ctx[core_pos]; in amu_context_save() local
167 amu_regs_t *ctx = &amu_ctx[core_pos]; in amu_context_restore() local
/rk3399_ARM-atf/lib/cpus/aarch64/
H A Dcpuamu.c32 struct cpuamu_ctx *ctx = &cpuamu_ctxs[plat_my_core_pos()]; in cpuamu_context_save() local
51 struct cpuamu_ctx *ctx = &cpuamu_ctxs[plat_my_core_pos()]; in cpuamu_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/plat/nvidia/tegra/common/
H A Dtegra_fiq_glue.c42 cpu_context_t *ctx = cm_get_context(NON_SECURE); in tegra_fiq_interrupt_handler() local
129 cpu_context_t *ctx = cm_get_context(NON_SECURE); in tegra_fiq_get_intr_context() local

123