Home
last modified time | relevance | path

Searched refs:ts_session (Results 1 – 25 of 45) sorted by relevance

12

/optee_os/core/include/kernel/
H A Dts_manager.h20 struct ts_session { struct
21 TAILQ_ENTRY(ts_session) link_tsd;
60 TEE_Result (*enter_open_session)(struct ts_session *s);
61 TEE_Result (*enter_invoke_cmd)(struct ts_session *s, uint32_t cmd);
62 void (*enter_close_session)(struct ts_session *s);
64 TEE_Result (*dump_mem_stats)(struct ts_session *s);
77 struct ts_session *ts_get_current_session(void);
78 struct ts_session *ts_get_current_session_may_fail(void);
80 void ts_push_current_session(struct ts_session *sess);
81 struct ts_session *ts_pop_current_session(void);
[all …]
H A Dtee_ta_manager.h83 struct ts_session ts_sess;
164 struct tee_ta_session *to_ta_session(struct ts_session *sess);
H A Dldelf_loader.h14 TEE_Result ldelf_init_with_ldelf(struct ts_session *sess,
H A Dldelf_syscalls.h40 void ldelf_sess_cleanup(struct ts_session *sess);
H A Dpseudo_ta.h78 struct ts_session *s = NULL; in is_caller_ta_with_pan()
/optee_os/core/kernel/
H A Dts_manager.c19 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in update_current_ctx()
38 void ts_push_current_session(struct ts_session *s) in ts_push_current_session()
46 struct ts_session *ts_pop_current_session(void) in ts_pop_current_session()
49 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in ts_pop_current_session()
58 struct ts_session *ts_get_calling_session(void) in ts_get_calling_session()
63 struct ts_session *ts_get_current_session_may_fail(void) in ts_get_current_session_may_fail()
68 struct ts_session *ts_get_current_session(void) in ts_get_current_session()
70 struct ts_session *s = ts_get_current_session_may_fail(); in ts_get_current_session()
H A Dpseudo_ta.c21 static bool client_is_secure(struct ts_session *s) in client_is_secure()
30 static bool validate_in_param(struct ts_session *s, struct mobj *mobj) in validate_in_param()
47 static bool validate_in_param(struct ts_session *s __unused, in validate_in_param()
56 static TEE_Result copy_in_param(struct ts_session *s __maybe_unused, in copy_in_param()
142 static TEE_Result pseudo_ta_enter_open_session(struct ts_session *s) in pseudo_ta_enter_open_session()
188 static TEE_Result pseudo_ta_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in pseudo_ta_enter_invoke_cmd()
221 static void pseudo_ta_enter_close_session(struct ts_session *s) in pseudo_ta_enter_close_session()
H A Dldelf_syscalls.c46 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_map_zi()
86 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_unmap()
126 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_open_bin()
222 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_close_bin()
301 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_map_bin()
470 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_copy_from_bin()
496 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_set_prot()
547 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_remap()
603 void ldelf_sess_cleanup(struct ts_session *sess) in ldelf_sess_cleanup()
H A Duser_ta.c147 static TEE_Result user_ta_enter(struct ts_session *session, in user_ta_enter()
155 struct ts_session *ts_sess __maybe_unused = NULL; in user_ta_enter()
236 static TEE_Result user_ta_enter_open_session(struct ts_session *s) in user_ta_enter_open_session()
241 static TEE_Result user_ta_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in user_ta_enter_invoke_cmd()
246 static void user_ta_enter_close_session(struct ts_session *s) in user_ta_enter_close_session()
254 static TEE_Result user_ta_enter_dump_memstats(struct ts_session *s) in user_ta_enter_dump_memstats()
291 struct ts_session *sess = ts_get_current_session(); in user_ta_dump_ftrace()
H A Dldelf_loader.c115 TEE_Result ldelf_init_with_ldelf(struct ts_session *sess, in ldelf_init_with_ldelf()
195 struct ts_session *sess = NULL; in ldelf_dump_state()
323 struct ts_session *sess = NULL; in ldelf_dump_ftrace()
398 struct ts_session *sess = NULL; in ldelf_dlopen()
453 struct ts_session *sess = NULL; in ldelf_dlsym()
H A Dscall.c158 struct ts_session *s = NULL; in ftrace_syscall_enter()
177 struct ts_session *s = TAILQ_FIRST(&thread_get_tsd()->sess_stack); in ftrace_syscall_leave()
/optee_os/core/tee/
H A Dtee_svc.c113 static TEE_Result get_prop_tee_dev_id(struct ts_session *sess __unused, in get_prop_tee_dev_id()
156 get_prop_tee_sys_time_prot_level(struct ts_session *sess __unused, in get_prop_tee_sys_time_prot_level()
170 static TEE_Result get_prop_client_id(struct ts_session *sess, in get_prop_client_id()
182 static TEE_Result get_prop_client_endian(struct ts_session *sess __unused, in get_prop_client_endian()
195 static TEE_Result get_prop_ta_app_id(struct ts_session *sess, in get_prop_ta_app_id()
208 get_prop_feat_bti_implemented(struct ts_session *sess __unused, void *buf, in get_prop_feat_bti_implemented()
226 get_prop_feat_pauth_implemented(struct ts_session *sess __unused, void *buf, in get_prop_feat_pauth_implemented()
244 get_prop_feat_memtag_implemented(struct ts_session *sess __unused, void *buf, in get_prop_feat_memtag_implemented()
468 struct ts_session *sess = ts_get_current_session(); in syscall_get_property()
658 static TEE_Result tee_svc_copy_param(struct ts_session *sess, in tee_svc_copy_param()
[all …]
H A Dtee_svc_storage.c173 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_open()
322 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_create()
447 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_del()
479 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_rename()
541 struct ts_session *sess = ts_get_current_session(); in syscall_storage_alloc_enum()
561 struct ts_session *sess = ts_get_current_session(); in syscall_storage_free_enum()
576 struct ts_session *sess = ts_get_current_session(); in syscall_storage_reset_enum()
598 struct ts_session *sess = ts_get_current_session(); in syscall_storage_start_enum()
626 struct ts_session *sess = ts_get_current_session(); in syscall_storage_next_enum()
717 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_read()
[all …]
H A Dtee_svc_cryp.c677 TEE_Result (*to_user)(void *attr, struct ts_session *sess,
737 struct ts_session *sess __unused, in op_attr_secret_value_to_user()
842 struct ts_session *sess __unused, in op_attr_bignum_to_user()
955 struct ts_session *sess __unused, in op_attr_value_to_user()
1018 struct ts_session *sess __unused, in op_attr_25519_to_user()
1176 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_info()
1208 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_restrict_usage()
1285 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_attr()
1660 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_alloc()
1685 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_close()
[all …]
/optee_os/core/pta/
H A Dgprof.c50 static TEE_Result gprof_send(struct ts_session *s, uint32_t param_types, in gprof_send()
65 static TEE_Result gprof_start_pc_sampling(struct ts_session *s, in gprof_start_pc_sampling()
107 static TEE_Result gprof_stop_pc_sampling(struct ts_session *s, in gprof_stop_pc_sampling()
151 struct ts_session *s = ts_get_calling_session(); in open_session()
166 struct ts_session *s = ts_get_calling_session(); in invoke_command()
H A Dsystem.c232 struct ts_session *s = NULL; in system_dlopen()
263 struct ts_session *s = NULL; in system_dlsym()
353 struct ts_session *s = NULL; in open_session()
369 struct ts_session *s = ts_get_calling_session(); in invoke_command()
/optee_os/core/arch/arm/include/kernel/
H A Dspmc_sp_handler.h28 void spmc_sp_set_to_preempted(struct ts_session *ts_sess);
46 static inline void spmc_sp_set_to_preempted(struct ts_session *ts_sess __unused) in spmc_sp_set_to_preempted()
H A Dsecure_partition.h30 struct ts_session ts_sess;
63 to_sp_session(struct ts_session *sess) in to_sp_session()
/optee_os/core/arch/riscv/include/kernel/
H A Dsecure_partition.h25 to_sp_session(struct ts_session *sess __unused) in to_sp_session()
/optee_os/core/arch/arm/kernel/
H A Darch_scall.c48 struct ts_session *s = ts_get_current_session(); in scall_save_panic_stack()
120 struct ts_session *s = ts_get_current_session(); in scall_save_panic_stack()
H A Dstmm_sp.c464 static TEE_Result stmm_enter_open_session(struct ts_session *s) in stmm_enter_open_session()
485 static TEE_Result stmm_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in stmm_enter_invoke_cmd()
573 static void stmm_enter_close_session(struct ts_session *s __unused) in stmm_enter_close_session()
633 struct ts_session *sess = ts_get_current_session(); in return_from_sp_helper()
679 struct ts_session *sess = NULL; in sec_storage_obj_read()
731 struct ts_session *sess = NULL; in sec_storage_obj_write()
848 struct ts_session *sess = NULL; in spm_handle_get_mem_attr()
892 struct ts_session *sess = NULL; in spm_handle_set_mem_attr()
/optee_os/core/arch/arm/tee/
H A Dsvc_cache.c14 struct ts_session *s = ts_get_current_session(); in syscall_cache_operation()
/optee_os/core/arch/arm/plat-vexpress/
H A Dvendor_props.c28 static TEE_Result get_prop_endorsement(struct ts_session *sess, in get_prop_endorsement()
/optee_os/core/arch/riscv/kernel/
H A Darch_scall.c56 struct ts_session *s = ts_get_current_session(); in scall_save_panic_stack()
/optee_os/core/include/tee/
H A Dtee_svc.h24 TEE_Result (*get_prop_func)(struct ts_session *sess,

12