Home
last modified time | relevance | path

Searched refs:sess (Results 1 – 25 of 33) sorted by relevance

12

/optee_os-3.20.0/core/kernel/
A Dtee_ta_manager.c119 assert(is_ta_ctx(sess->ctx) || is_stmm_ctx(sess->ctx)); in to_ta_session()
358 if (sess->ts_sess.ctx == ts_ctx && sess != s) { in destroy_ta_ctx_from_session()
375 sess != s) { in destroy_ta_ctx_from_session()
537 if (!sess) { in tee_ta_close_session()
706 *sess = s; in tee_ta_init_session()
753 *sess = s; in tee_ta_open_session()
823 sess->param = param; in tee_ta_invoke_command()
827 sess->param = NULL; in tee_ta_invoke_command()
936 for (j = 0, sess = NULL; j < dump_ctx[i].sess_num && !sess; j++) in dump_ta_stats()
940 if (!sess) in dump_ta_stats()
[all …]
A Dldelf_syscalls.c33 struct ts_session *sess = ts_get_current_session(); in ldelf_syscall_map_zi() local
105 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_syscall_open_bin()
132 sess->user_ctx = sys_ctx; in ldelf_syscall_open_bin()
139 if (is_user_ta_ctx(sess->ctx) || is_stmm_ctx(sess->ctx)) { in ldelf_syscall_open_bin()
151 } else if (is_sp_ctx(sess->ctx)) { in ldelf_syscall_open_bin()
198 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_syscall_close_bin()
216 sess->user_ctx = NULL; in ldelf_syscall_close_bin()
268 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_syscall_map_bin()
429 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_syscall_copy_from_bin()
542 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_sess_cleanup()
[all …]
/optee_os-3.20.0/core/arch/arm/kernel/
A Dldelf_loader.c121 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_init_with_ldelf()
123 ldelf_sess_cleanup(sess); in ldelf_init_with_ldelf()
159 sess->fbuf = arg->fbuf; in ldelf_init_with_ldelf()
274 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dump_state()
276 ldelf_sess_cleanup(sess); in ldelf_dump_state()
323 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dump_ftrace()
325 ldelf_sess_cleanup(sess); in ldelf_dump_ftrace()
381 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dlopen()
382 ldelf_sess_cleanup(sess); in ldelf_dlopen()
435 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dlsym()
[all …]
A Dstmm_sp.c345 sess->ts_sess.handle_svc = sess->ts_sess.ctx->ops->handle_svc; in stmm_init_session()
353 sess->ts_sess.ctx = NULL; in stmm_init_session()
502 struct ts_session *sess = NULL; in sp_svc_get_mem_attr() local
510 sess = ts_get_current_session(); in sp_svc_get_mem_attr()
511 spc = to_stmm_ctx(sess->ctx); in sp_svc_get_mem_attr()
533 struct ts_session *sess = NULL; in sp_svc_set_mem_attr() local
545 spc = to_stmm_ctx(sess->ctx); in sp_svc_set_mem_attr()
643 struct ts_session *sess = NULL; in sec_storage_obj_read() local
658 spc = to_stmm_ctx(sess->ctx); in sec_storage_obj_read()
703 struct ts_session *sess = NULL; in sec_storage_obj_write() local
[all …]
A Dsecure_partition.c217 struct sp_session **sess) in sp_create_session() argument
237 *sess = s; in sp_create_session()
342 *sess = s; in sp_open_session()
892 struct sp_session *sess = NULL; in sp_init_uuid() local
894 res = sp_open_session(&sess, in sp_init_uuid()
904 sess->fdt = fdt; in sp_init_uuid()
945 sess->is_initialized = false; in sp_first_run()
946 if (sp_enter(&args, sess)) { in sp_first_run()
953 sess->is_initialized = true; in sp_first_run()
1000 struct ts_session *sess = NULL; in sp_enter_invoke_cmd() local
[all …]
/optee_os-3.20.0/lib/libdl/
A Ddlfcn.c15 static TEE_TASessionHandle sess = TEE_HANDLE_NULL; variable
24 if (sess == TEE_HANDLE_NULL) { in invoke_system_pta()
26 0, NULL, &sess, NULL); in invoke_system_pta()
30 return TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, in invoke_system_pta()
84 if (!hcount && sess != TEE_HANDLE_NULL) { in dlclose()
85 TEE_CloseTASession(sess); in dlclose()
86 sess = TEE_HANDLE_NULL; in dlclose()
/optee_os-3.20.0/lib/libutee/arch/arm/gprof/
A Dgprof_pta.c11 static TEE_TASessionHandle sess = TEE_HANDLE_NULL; variable
19 if (!sess) { in invoke_gprof_pta()
21 0, NULL, &sess, NULL); in invoke_gprof_pta()
25 res = TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, cmd_id, in invoke_gprof_pta()
91 if (sess) in __pta_gprof_fini()
92 TEE_CloseTASession(sess); in __pta_gprof_fini()
/optee_os-3.20.0/core/tee/
A Dtee_svc_storage.c81 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in tee_svc_storage_remove_corrupt_obj()
176 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_open() local
177 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_storage_obj_open()
244 tee_svc_storage_remove_corrupt_obj(sess, o); in syscall_storage_obj_open()
321 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_create() local
427 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_del() local
459 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_rename() local
523 struct ts_session *sess = ts_get_current_session(); in syscall_storage_alloc_enum() local
601 return fops->opendir(&sess->ctx->uuid, &e->dir); in syscall_storage_start_enum()
734 tee_svc_storage_remove_corrupt_obj(sess, o); in syscall_storage_obj_read()
[all …]
A Dtee_svc.c451 struct ts_session *sess = ts_get_current_session(); in syscall_get_property() local
479 res = prop->get_prop_func(sess, buf, &klen_size); in syscall_get_property()
854 struct ts_session *sess = ts_get_current_session(); in syscall_open_ta_session() local
1003 struct tee_ta_session *sess = NULL; in syscall_unmask_cancellation() local
1006 sess = to_ta_session(s); in syscall_unmask_cancellation()
1007 m = sess->cancel_mask; in syscall_unmask_cancellation()
1008 sess->cancel_mask = false; in syscall_unmask_cancellation()
1015 struct tee_ta_session *sess = NULL; in syscall_mask_cancellation() local
1018 sess = to_ta_session(s); in syscall_mask_cancellation()
1019 m = sess->cancel_mask; in syscall_mask_cancellation()
[all …]
A Dtee_svc_cryp.c679 struct ts_session *sess __unused, in op_attr_secret_value_to_user()
774 struct ts_session *sess, in op_attr_bignum_to_user() argument
890 struct ts_session *sess __unused, in op_attr_value_to_user()
955 struct ts_session *sess __unused, in op_attr_25519_to_user()
1118 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_get_info()
1239 return ops->to_user(attr, sess, buffer, size); in syscall_cryp_obj_get_attr()
1574 tee_obj_add(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1578 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1599 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_close()
1955 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_copy()
[all …]
A Dtee_obj.c55 TEE_Result tee_obj_verify(struct tee_ta_session *sess, struct tee_obj *o) in tee_obj_verify() argument
68 tee_obj_close(to_user_ta_ctx(sess->ts_sess.ctx), o); in tee_obj_verify()
/optee_os-3.20.0/core/include/kernel/
A Dtee_ta_manager.h103 struct tee_ta_session **sess,
111 struct tee_ta_session *sess,
117 struct tee_ta_session *sess,
129 TEE_Result tee_ta_close_session(struct tee_ta_session *sess,
141 void tee_ta_put_session(struct tee_ta_session *sess);
162 struct tee_ta_session *to_ta_session(struct ts_session *sess);
A Dldelf_loader.h14 TEE_Result ldelf_init_with_ldelf(struct ts_session *sess,
A Dts_manager.h62 void ts_push_current_session(struct ts_session *sess);
/optee_os-3.20.0/core/include/tee/
A Dtee_svc.h24 TEE_Result (*get_prop_func)(struct ts_session *sess,
55 uint32_t *sess, uint32_t *ret_orig);
57 TEE_Result syscall_close_ta_session(unsigned long sess);
59 TEE_Result syscall_invoke_ta_command(unsigned long sess,
A Dtee_obj.h36 TEE_Result tee_obj_verify(struct tee_ta_session *sess, struct tee_obj *o);
/optee_os-3.20.0/core/arch/riscv/include/kernel/
A Dsecure_partition.h25 to_sp_session(struct ts_session *sess __unused) in to_sp_session()
27 assert(is_sp_ctx(sess->ctx)); in to_sp_session()
/optee_os-3.20.0/lib/libutee/
A Dtee_system_pta.c17 static TEE_TASessionHandle sess = TEE_HANDLE_NULL; in invoke_system_pta() local
20 if (sess == TEE_HANDLE_NULL) { in invoke_system_pta()
22 0, NULL, &sess, NULL); in invoke_system_pta()
28 return TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, cmd_id, in invoke_system_pta()
A Dtee_socket_pta.c17 static TEE_TASessionHandle sess = TEE_HANDLE_NULL; in invoke_socket_pta() local
20 if (sess == TEE_HANDLE_NULL) { in invoke_socket_pta()
23 0, NULL, &sess, NULL); in invoke_socket_pta()
29 return TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, cmd_id, in invoke_socket_pta()
/optee_os-3.20.0/ta/pkcs11/src/
A Dpkcs11_token.c538 struct pkcs11_session *sess = NULL; in set_session_state() local
552 assert(sess != session); in set_session_state()
555 switch (sess->state) { in set_session_state()
813 struct pkcs11_session *sess = NULL; in entry_ck_token_initialize() local
859 if (sess->token == token) in entry_ck_token_initialize()
1269 struct pkcs11_session *sess = NULL; in session_login_user() local
1272 if (sess->token != session->token) in session_login_user()
1285 struct pkcs11_session *sess = NULL; in session_login_so() local
1288 if (sess->token != session->token) in session_login_so()
1500 &sess, &ret_orig); in seed_rng_pool()
[all …]
A Dserializer.h125 struct pkcs11_session **sess);
/optee_os-3.20.0/core/arch/arm/include/kernel/
A Dsecure_partition.h71 to_sp_session(struct ts_session *sess) in to_sp_session() argument
73 assert(is_sp_ctx(sess->ctx)); in to_sp_session()
74 return container_of(sess, struct sp_session, ts_sess); in to_sp_session()
/optee_os-3.20.0/core/arch/arm/plat-vexpress/
A Dvendor_props.c28 static TEE_Result get_prop_endorsement(struct ts_session *sess, in get_prop_endorsement() argument
44 memcpy(data, &sess->ctx->uuid, sizeof(TEE_UUID)); in get_prop_endorsement()
/optee_os-3.20.0/ta/trusted_keys/
A Dentry.c63 TEE_TASessionHandle sess = TEE_HANDLE_NULL; in derive_unique_key() local
73 TEE_TIMEOUT_INFINITE, 0, NULL, &sess, in derive_unique_key()
86 res = TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, in derive_unique_key()
90 TEE_CloseTASession(sess); in derive_unique_key()
325 void TA_CloseSessionEntryPoint(void *sess __unused) in TA_CloseSessionEntryPoint()
329 TEE_Result TA_InvokeCommandEntryPoint(void *sess __unused, uint32_t cmd, in TA_InvokeCommandEntryPoint()
/optee_os-3.20.0/lib/libutee/include/
A Dutee_syscalls.h52 struct utee_params *params, uint32_t *sess,
56 TEE_Result _utee_close_ta_session(unsigned long sess);
59 TEE_Result _utee_invoke_ta_command(unsigned long sess,

Completed in 48 milliseconds

12