Home
last modified time | relevance | path

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

123

/trusted-firmware-a-latest/lib/el3_runtime/aarch64/
Dcontext_mgmt.c49 static void setup_el1_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_el1_context()
110 static void setup_secure_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_secure_context()
173 static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_realm_context()
196 static void setup_ns_context(cpu_context_t *ctx, const struct entry_point_info *ep) in setup_ns_context()
319 static void setup_context_common(cpu_context_t *ctx, const entry_point_info_t *ep) in setup_context_common()
533 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context()
682 static void manage_extensions_nonsecure(cpu_context_t *ctx) in manage_extensions_nonsecure()
766 static void manage_extensions_secure(cpu_context_t *ctx) in manage_extensions_secure()
796 cpu_context_t *ctx; in cm_init_context_by_index() local
808 cpu_context_t *ctx; in cm_init_my_context() local
[all …]
/trusted-firmware-a-latest/lib/xlat_mpu/
Dxlat_mpu_utils.c32 void xlat_tables_print(__unused xlat_ctx_t *ctx) in xlat_tables_print()
39 static void xlat_tables_print_internal(__unused xlat_ctx_t *ctx) in xlat_tables_print_internal()
78 void xlat_tables_print(__unused xlat_ctx_t *ctx) in xlat_tables_print()
Dxlat_mpu_core.c158 static int mmap_add_region_check(const xlat_ctx_t *ctx, const mmap_region_t *mm) in mmap_add_region_check()
247 void mmap_add_region_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm) in mmap_add_region_ctx()
308 void mmap_add_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm) in mmap_add_ctx()
318 void __init init_xlat_tables_ctx(xlat_ctx_t *ctx) in init_xlat_tables_ctx()
/trusted-firmware-a-latest/lib/xlat_tables_v2/
Dxlat_tables_core.c43 static int xlat_table_get_index(const xlat_ctx_t *ctx, const uint64_t *table) in xlat_table_get_index()
59 static uint64_t *xlat_table_get_empty(const xlat_ctx_t *ctx) in xlat_table_get_empty()
69 static void xlat_table_inc_regions_count(const xlat_ctx_t *ctx, in xlat_table_inc_regions_count()
78 static void xlat_table_dec_regions_count(const xlat_ctx_t *ctx, in xlat_table_dec_regions_count()
87 static bool xlat_table_is_empty(const xlat_ctx_t *ctx, const uint64_t *table) in xlat_table_is_empty()
95 static uint64_t *xlat_table_get_empty(xlat_ctx_t *ctx) in xlat_table_get_empty()
107 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr, in xlat_desc()
357 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()
679 static int mmap_add_region_check(const xlat_ctx_t *ctx, const mmap_region_t *mm) in mmap_add_region_check()
[all …]
Dxlat_tables_utils.c31 void xlat_tables_print(__unused xlat_ctx_t *ctx) in xlat_tables_print()
53 static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc) in xlat_desc_print()
139 static void xlat_tables_print_internal(xlat_ctx_t *ctx, uintptr_t table_base_va, in xlat_tables_print_internal()
222 void xlat_tables_print(xlat_ctx_t *ctx) in xlat_tables_print()
345 static int xlat_get_mem_attributes_internal(const xlat_ctx_t *ctx, in xlat_get_mem_attributes_internal()
439 int xlat_get_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_get_mem_attributes_ctx()
447 int xlat_change_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, in xlat_change_mem_attributes_ctx()
/trusted-firmware-a-latest/lib/el3_runtime/aarch32/
Dcontext_mgmt.c58 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep) in cm_setup_context()
166 cpu_context_t *ctx; in cm_init_context_by_index() local
178 cpu_context_t *ctx; in cm_init_my_context() local
194 cpu_context_t *ctx = cm_get_context(security_state); in cm_prepare_el3_exit() local
/trusted-firmware-a-latest/services/std_svc/spmd/
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
587 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_el3_ffa_msg_direct_req() local
723 spmd_spm_core_context_t *ctx) in is_spmd_logical_sp_info_regs_req_in_progress()
[all …]
Dspmd_pm.c66 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_cpu_on_finish_handler() local
117 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_cpu_off_handler() local
/trusted-firmware-a-latest/drivers/nxp/crypto/caam/src/auth/
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
/trusted-firmware-a-latest/services/std_svc/drtm/
Ddrtm_main.c146 static inline uint64_t drtm_features_tpm(void *ctx) in drtm_features_tpm()
152 static inline uint64_t drtm_features_mem_req(void *ctx) in drtm_features_mem_req()
158 static inline uint64_t drtm_features_boot_pe_id(void *ctx) in drtm_features_boot_pe_id()
164 static inline uint64_t drtm_features_dma_prot(void *ctx) in drtm_features_dma_prot()
170 static inline uint64_t drtm_features_tcb_hashes(void *ctx) in drtm_features_tcb_hashes()
176 static enum drtm_retc drtm_dl_check_caller_el(void *ctx) in drtm_dl_check_caller_el()
561 void *ctx = cm_get_context(NON_SECURE); in drtm_dl_prepare_eret_to_dlme() local
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()
/trusted-firmware-a-latest/drivers/st/crypto/
Dstm32_saes.c209 static int saes_start(struct stm32_saes_context *ctx) in saes_start()
229 static void saes_end(struct stm32_saes_context *ctx, int prev_error) in saes_end()
242 static void saes_write_iv(struct stm32_saes_context *ctx) in saes_write_iv()
256 static void saes_write_key(struct stm32_saes_context *ctx) in saes_write_key()
275 static int saes_prepare_key(struct stm32_saes_context *ctx) in saes_prepare_key()
317 static int save_context(struct stm32_saes_context *ctx) in save_context()
344 static int restore_context(struct stm32_saes_context *ctx) in restore_context()
415 int stm32_saes_init(struct stm32_saes_context *ctx, bool is_dec, in stm32_saes_init()
564 int stm32_saes_update_assodata(struct stm32_saes_context *ctx, bool last_block, in stm32_saes_update_assodata()
648 int stm32_saes_update_load(struct stm32_saes_context *ctx, bool last_block, in stm32_saes_update_load()
[all …]
/trusted-firmware-a-latest/services/std_svc/rmmd/
Drmmd_main.c98 rmmd_rmm_context_t *ctx = &rmm_context[plat_my_core_pos()]; in rmmd_rmm_sync_exit() local
123 static void manage_extensions_realm(cpu_context_t *ctx) in manage_extensions_realm()
167 rmmd_rmm_context_t *ctx = &rmm_context[plat_my_core_pos()]; in rmm_init() local
277 cpu_context_t *ctx = cm_get_context(dst_sec_state); in rmmd_smc_forward() local
375 rmmd_rmm_context_t *ctx = &rmm_context[linear_id]; in rmmd_cpu_on_finish_handler() local
/trusted-firmware-a-latest/services/std_svc/spm/spm_mm/
Dspm_mm_main.c89 static uint64_t spm_sp_synchronous_entry(sp_context_t *ctx) in spm_sp_synchronous_entry()
121 sp_context_t *ctx = &sp_ctx; in spm_sp_synchronous_exit() local
139 sp_context_t *ctx; in spm_init() local
162 sp_context_t *ctx; in spm_mm_setup() local
/trusted-firmware-a-latest/lib/cpus/aarch64/
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
/trusted-firmware-a-latest/plat/nvidia/tegra/common/
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
/trusted-firmware-a-latest/bl31/
Dbl31_traps.c13 int handle_sysreg_trap(uint64_t esr_el3, cpu_context_t *ctx) in handle_sysreg_trap()
/trusted-firmware-a-latest/plat/imx/common/
Dplat_imx8_gic.c100 void plat_gic_save(unsigned int proc_num, struct plat_gic_ctx *ctx) in plat_gic_save()
108 void plat_gic_restore(unsigned int proc_num, struct plat_gic_ctx *ctx) in plat_gic_restore()
/trusted-firmware-a-latest/services/spd/trusty/
Dtrusty.c94 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_context_switch() local
145 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_fiq_handler() local
174 struct trusty_cpu_ctx *ctx; in trusty_set_fiq_handler() local
191 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_get_fiq_regs() local
200 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_fiq_exit() local
311 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_init() local
386 struct trusty_cpu_ctx *ctx = get_trusty_ctx(); in trusty_cpu_on_finish_handler() local
/trusted-firmware-a-latest/include/lib/el3_runtime/aarch32/
Dcontext.h50 #define read_ctx_reg(ctx, offset) ((ctx)->ctx_regs[offset >> WORD_SHIFT]) argument
51 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[offset >> WORD_SHIFT]) \ argument
/trusted-firmware-a-latest/plat/arm/board/fvp/
Dfvp_sync_traps.c39 int plat_handle_rng_trap(uint64_t esr_el3, cpu_context_t *ctx) in plat_handle_rng_trap()
/trusted-firmware-a-latest/drivers/arm/gic/v3/
Dgicv3_main.c44 #define RESTORE_GICR_REG(base, ctx, name, i) \ argument
47 #define SAVE_GICR_REG(base, ctx, name, i) \ argument
51 #define RESTORE_GICD_REGS(base, ctx, intr_num, reg, REG) \ argument
61 #define SAVE_GICD_REGS(base, ctx, intr_num, reg, REG) \ argument
71 #define RESTORE_GICD_EREGS(base, ctx, intr_num, reg, REG) \ argument
82 #define SAVE_GICD_EREGS(base, ctx, intr_num, reg, REG) \ argument
92 #define SAVE_GICD_EREGS(base, ctx, intr_num, reg, REG) argument
93 #define RESTORE_GICD_EREGS(base, ctx, intr_num, reg, REG) argument
/trusted-firmware-a-latest/lib/xlat_mpu/aarch64/
Dxlat_mpu_arch.c39 bool is_mpu_enabled_ctx(const xlat_ctx_t *ctx) in is_mpu_enabled_ctx()
/trusted-firmware-a-latest/bl32/sp_min/
Dsp_min_main.c128 cpu_context_t *ctx = cm_get_context(NON_SECURE); in sp_min_prepare_next_image_entry() local
212 cpu_context_t *ctx = cm_get_context(NON_SECURE); in sp_min_warm_boot() local
/trusted-firmware-a-latest/plat/arm/board/fvp/aarch64/
Dfvp_ea.c32 cpu_context_t *ctx = cm_get_context(NON_SECURE); in plat_ea_handler() local

123