Home
last modified time | relevance | path

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

12

/optee_os/core/kernel/
A Dtee_ta_manager.c101 assert(is_ta_ctx(sess->ctx) || is_stmm_ctx(sess->ctx)); in to_ta_session()
341 if (sess->ts_sess.ctx == ts_ctx && sess != s) { in destroy_ta_ctx_from_session()
358 sess != s) { in destroy_ta_ctx_from_session()
445 if (sess->ts_sess.ctx && in check_params()
520 if (!sess) { in tee_ta_close_session()
689 *sess = s; in tee_ta_init_session()
736 *sess = s; in tee_ta_open_session()
806 sess->param = param; in tee_ta_invoke_command()
810 sess->param = NULL; in tee_ta_invoke_command()
819 *err = sess->err_origin; in tee_ta_invoke_command()
[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()
428 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_syscall_copy_from_bin()
541 struct system_ctx *sys_ctx = sess->user_ctx; in ldelf_sess_cleanup()
[all …]
/optee_os/core/arch/arm/kernel/
A Dldelf_loader.c120 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_init_with_ldelf()
122 ldelf_sess_cleanup(sess); in ldelf_init_with_ldelf()
158 sess->fbuf = arg->fbuf; in ldelf_init_with_ldelf()
273 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dump_state()
275 ldelf_sess_cleanup(sess); in ldelf_dump_state()
322 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dump_ftrace()
324 ldelf_sess_cleanup(sess); in ldelf_dump_ftrace()
380 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dlopen()
381 ldelf_sess_cleanup(sess); in ldelf_dlopen()
434 sess->handle_svc = sess->ctx->ops->handle_svc; in ldelf_dlsym()
[all …]
A Dsecure_partition.c196 struct sp_session **sess) in sp_create_session() argument
216 *sess = s; in sp_create_session()
321 *sess = s; in sp_open_session()
346 struct sp_session *sess = NULL; in sp_init_uuid() local
349 res = sp_open_session(&sess, in sp_init_uuid()
359 if (sp_enter(&args, sess)) in sp_init_uuid()
362 spmc_sp_msg_handler(&args, sess); in sp_init_uuid()
403 struct ts_session *sess = NULL; in sp_enter_invoke_cmd() local
427 sess = ts_pop_current_session(); in sp_enter_invoke_cmd()
435 sess = ts_pop_current_session(); in sp_enter_invoke_cmd()
[all …]
A Dstmm_sp.c334 sess->ts_sess.handle_svc = sess->ts_sess.ctx->ops->handle_svc; in stmm_init_session()
342 sess->ts_sess.ctx = NULL; in stmm_init_session()
492 struct ts_session *sess = NULL; in sp_svc_get_mem_attr() local
500 sess = ts_get_current_session(); in sp_svc_get_mem_attr()
501 spc = to_stmm_ctx(sess->ctx); in sp_svc_get_mem_attr()
523 struct ts_session *sess = NULL; in sp_svc_set_mem_attr() local
535 spc = to_stmm_ctx(sess->ctx); in sp_svc_set_mem_attr()
633 struct ts_session *sess = NULL; in sec_storage_obj_read() local
648 spc = to_stmm_ctx(sess->ctx); in sec_storage_obj_read()
693 struct ts_session *sess = NULL; in sec_storage_obj_write() local
[all …]
/optee_os/core/tee/
A Dtee_svc_storage.c80 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in tee_svc_storage_remove_corrupt_obj()
175 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_open() local
176 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_storage_obj_open()
241 tee_svc_storage_remove_corrupt_obj(sess, o); in syscall_storage_obj_open()
320 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_create() local
421 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_del() local
461 struct ts_session *sess = ts_get_current_session(); in syscall_storage_obj_rename() local
522 struct ts_session *sess = ts_get_current_session(); in syscall_storage_alloc_enum() local
542 struct ts_session *sess = ts_get_current_session(); in syscall_storage_free_enum() local
600 return fops->opendir(&sess->ctx->uuid, &e->dir); in syscall_storage_start_enum()
[all …]
A Dtee_svc.c398 struct ts_session *sess = ts_get_current_session(); in syscall_get_property() local
426 res = prop->get_prop_func(sess, buf, &klen_size); in syscall_get_property()
799 struct ts_session *sess = ts_get_current_session(); in syscall_open_ta_session() local
948 struct tee_ta_session *sess = NULL; in syscall_unmask_cancellation() local
951 sess = to_ta_session(s); in syscall_unmask_cancellation()
952 m = sess->cancel_mask; in syscall_unmask_cancellation()
953 sess->cancel_mask = false; in syscall_unmask_cancellation()
960 struct tee_ta_session *sess = NULL; in syscall_mask_cancellation() local
963 sess = to_ta_session(s); in syscall_mask_cancellation()
964 m = sess->cancel_mask; in syscall_mask_cancellation()
[all …]
A Dtee_svc_cryp.c575 struct ts_session *sess __unused, in op_attr_secret_value_to_user()
670 struct ts_session *sess, in op_attr_bignum_to_user() argument
784 struct ts_session *sess __unused, in op_attr_value_to_user()
893 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_get_info()
1007 return ops->to_user(attr, sess, buffer, size); in syscall_cryp_obj_get_attr()
1327 tee_obj_add(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1331 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1352 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_close()
1702 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_copy()
1707 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()
A Dsocket.c14 static uint32_t get_instance_id(struct ts_session *sess) in get_instance_id() argument
16 return sess->ctx->ops->get_instance_id(sess->ctx); in get_instance_id()
/optee_os/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/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/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);
/optee_os/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,
/optee_os/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 …]
/optee_os/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/core/arch/arm/include/kernel/
A Dsecure_partition.h64 to_sp_session(struct ts_session *sess) in to_sp_session() argument
66 assert(is_sp_ctx(sess->ctx)); in to_sp_session()
67 return container_of(sess, struct sp_session, ts_sess); in to_sp_session()
/optee_os/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/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/out/arm/export-ta_arm64/host_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,
/optee_os/out/arm/export-ta_arm64/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,
/optee_os/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,
/optee_os/out/arm/export-ta_arm32/host_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,
/optee_os/out/arm/export-ta_arm32/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 38 milliseconds

12