/optee_os/core/include/kernel/ |
A D | ts_manager.h | 20 struct ts_session { struct 21 TAILQ_ENTRY(ts_session) link_tsd; 43 TEE_Result (*enter_open_session)(struct ts_session *s); argument 44 TEE_Result (*enter_invoke_cmd)(struct ts_session *s, uint32_t cmd); 45 void (*enter_close_session)(struct ts_session *s); 56 struct ts_session *ts_get_current_session(void); 57 struct ts_session *ts_get_current_session_may_fail(void); 59 void ts_push_current_session(struct ts_session *sess); 60 struct ts_session *ts_pop_current_session(void); 61 struct ts_session *ts_get_calling_session(void);
|
A D | tee_ta_manager.h | 81 struct ts_session ts_sess; 162 struct tee_ta_session *to_ta_session(struct ts_session *sess);
|
A D | ldelf_loader.h | 14 TEE_Result ldelf_init_with_ldelf(struct ts_session *sess,
|
A D | ldelf_syscalls.h | 40 void ldelf_sess_cleanup(struct ts_session *sess);
|
/optee_os/core/kernel/ |
A D | ts_manager.c | 19 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() 60 struct ts_session *s = ts_get_current_session(); in ts_get_calling_session() 67 struct ts_session *ts_get_current_session_may_fail(void) in ts_get_current_session_may_fail() 72 struct ts_session *ts_get_current_session(void) in ts_get_current_session() 74 struct ts_session *s = ts_get_current_session_may_fail(); in ts_get_current_session()
|
A D | pseudo_ta.c | 20 static bool client_is_secure(struct ts_session *s) in client_is_secure() 29 static bool validate_in_param(struct ts_session *s, struct mobj *mobj) in validate_in_param() 46 static bool validate_in_param(struct ts_session *s __unused, in validate_in_param() 55 static TEE_Result copy_in_param(struct ts_session *s __maybe_unused, in copy_in_param() 141 static TEE_Result pseudo_ta_enter_open_session(struct ts_session *s) in pseudo_ta_enter_open_session() 187 static TEE_Result pseudo_ta_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in pseudo_ta_enter_invoke_cmd() 220 static void pseudo_ta_enter_close_session(struct ts_session *s) in pseudo_ta_enter_close_session()
|
A D | ldelf_syscalls.c | 33 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_map_zi() 63 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_unmap() 103 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_open_bin() 197 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_close_bin() 266 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_map_bin() 426 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_copy_from_bin() 452 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_set_prot() 503 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_remap() 521 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_gen_rnd_num() 539 void ldelf_sess_cleanup(struct ts_session *sess) in ldelf_sess_cleanup()
|
A D | user_ta.c | 131 static TEE_Result user_ta_enter(struct ts_session *session, in user_ta_enter() 139 struct ts_session *ts_sess __maybe_unused = NULL; in user_ta_enter() 215 static TEE_Result user_ta_enter_open_session(struct ts_session *s) in user_ta_enter_open_session() 220 static TEE_Result user_ta_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in user_ta_enter_invoke_cmd() 225 static void user_ta_enter_close_session(struct ts_session *s) in user_ta_enter_close_session()
|
A D | tee_ta_manager.c | 99 struct tee_ta_session *__noprof to_ta_session(struct ts_session *sess) in to_ta_session() 871 struct ts_session *s = ts_get_current_session(); in tee_ta_gprof_sample_pc() 897 static void gprof_update_session_utime(bool suspend, struct ts_session *s, in gprof_update_session_utime() 924 struct ts_session *s = ts_get_current_session(); in tee_ta_update_session_utime() 944 struct ts_session *s = ts_get_current_session_may_fail(); in ftrace_update_times()
|
A D | user_access.c | 18 struct ts_session *s = ts_get_current_session(); in check_access()
|
/optee_os/core/pta/ |
A D | gprof.c | 50 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()
|
A D | system.c | 213 struct ts_session *s = NULL; in system_dlopen() 241 struct ts_session *s = NULL; in system_dlsym() 317 struct ts_session *s = NULL; in open_session() 333 struct ts_session *s = ts_get_calling_session(); in invoke_command()
|
A D | scmi.c | 136 struct ts_session *ts = ts_get_current_session(); in pta_scmi_open_session()
|
/optee_os/core/tee/ |
A D | tee_svc.c | 398 struct ts_session *sess = ts_get_current_session(); in syscall_get_property() 602 struct ts_session *called_sess, in tee_svc_copy_param() 799 struct ts_session *sess = ts_get_current_session(); in syscall_open_ta_session() 854 struct ts_session *sess = ts_get_current_session(); in syscall_close_ta_session() 929 struct ts_session *s = ts_get_current_session(); in syscall_check_access_rights() 937 struct ts_session *s = ts_get_current_session(); in syscall_get_cancellation_flag() 947 struct ts_session *s = ts_get_current_session(); in syscall_unmask_cancellation() 959 struct ts_session *s = ts_get_current_session(); in syscall_mask_cancellation() 971 struct ts_session *s = ts_get_current_session(); in syscall_wait() 1003 struct ts_session *s = ts_get_current_session(); in syscall_get_time() [all …]
|
A D | tee_svc_storage.c | 175 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_open() 320 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_create() 421 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_del() 461 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_rename() 522 struct ts_session *sess = ts_get_current_session(); in syscall_storage_alloc_enum() 542 struct ts_session *sess = ts_get_current_session(); in syscall_storage_free_enum() 557 struct ts_session *sess = ts_get_current_session(); in syscall_storage_reset_enum() 579 struct ts_session *sess = ts_get_current_session(); in syscall_storage_start_enum() 606 struct ts_session *sess = ts_get_current_session(); in syscall_storage_next_enum() 677 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_read() [all …]
|
A D | tee_svc_cryp.c | 575 struct ts_session *sess __unused, in op_attr_secret_value_to_user() 670 struct ts_session *sess, in op_attr_bignum_to_user() 784 struct ts_session *sess __unused, in op_attr_value_to_user() 889 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_info() 907 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_restrict_usage() 974 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_attr() 1312 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_alloc() 1337 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_close() 1358 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_reset() 1646 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_populate() [all …]
|
A D | socket.c | 14 static uint32_t get_instance_id(struct ts_session *sess) in get_instance_id() 220 struct ts_session *s = ts_get_calling_session(); in pta_socket_open_session()
|
/optee_os/core/arch/arm/include/kernel/ |
A D | secure_partition.h | 41 struct ts_session ts_sess; 64 to_sp_session(struct ts_session *sess) in to_sp_session()
|
/optee_os/core/arch/arm/tee/ |
A D | arch_svc.c | 162 struct ts_session *s = NULL; in ftrace_syscall_enter() 181 struct ts_session *s = TAILQ_FIRST(&thread_get_tsd()->sess_stack); in ftrace_syscall_leave() 358 struct ts_session *s = ts_get_current_session(); in save_panic_stack() 427 struct ts_session *s = ts_get_current_session(); in save_panic_stack()
|
A D | svc_cache.c | 14 struct ts_session *s = ts_get_current_session(); in syscall_cache_operation()
|
/optee_os/core/arch/arm/kernel/ |
A D | stmm_sp.c | 356 static TEE_Result stmm_enter_open_session(struct ts_session *s) in stmm_enter_open_session() 377 static TEE_Result stmm_enter_invoke_cmd(struct ts_session *s, uint32_t cmd) in stmm_enter_invoke_cmd() 465 static void stmm_enter_close_session(struct ts_session *s __unused) in stmm_enter_close_session() 492 struct ts_session *sess = NULL; in sp_svc_get_mem_attr() 523 struct ts_session *sess = NULL; in sp_svc_set_mem_attr() 587 struct ts_session *sess = ts_get_current_session(); in return_from_sp_helper() 633 struct ts_session *sess = NULL; in sec_storage_obj_read() 693 struct ts_session *sess = NULL; in sec_storage_obj_write()
|
A D | ldelf_loader.c | 100 TEE_Result ldelf_init_with_ldelf(struct ts_session *sess, in ldelf_init_with_ldelf() 173 struct ts_session *sess = NULL; in ldelf_dump_state() 296 struct ts_session *sess = NULL; in ldelf_dump_ftrace() 351 struct ts_session *sess = NULL; in ldelf_dlopen() 403 struct ts_session *sess = NULL; in ldelf_dlsym()
|
A D | secure_partition.c | 395 static TEE_Result sp_enter_invoke_cmd(struct ts_session *s, in sp_enter_invoke_cmd() 403 struct ts_session *sess = NULL; in sp_enter_invoke_cmd() 457 struct ts_session *ts = ts_get_current_session(); in sp_handle_svc()
|
/optee_os/core/arch/arm/plat-vexpress/ |
A D | vendor_props.c | 28 static TEE_Result get_prop_endorsement(struct ts_session *sess, in get_prop_endorsement()
|
/optee_os/core/include/tee/ |
A D | tee_svc.h | 24 TEE_Result (*get_prop_func)(struct ts_session *sess,
|