Lines Matching refs:sess

112 static TEE_Result get_prop_tee_dev_id(struct ts_session *sess __unused,  in get_prop_tee_dev_id()
155 get_prop_tee_sys_time_prot_level(struct ts_session *sess __unused, in get_prop_tee_sys_time_prot_level()
169 static TEE_Result get_prop_client_id(struct ts_session *sess, in get_prop_client_id() argument
177 return copy_to_user(buf, &to_ta_session(sess)->clnt_id, in get_prop_client_id()
181 static TEE_Result get_prop_ta_app_id(struct ts_session *sess, in get_prop_ta_app_id() argument
189 return copy_to_user(buf, &sess->ctx->uuid, sizeof(TEE_UUID)); in get_prop_ta_app_id()
194 get_prop_feat_bti_implemented(struct ts_session *sess __unused, void *buf, in get_prop_feat_bti_implemented()
398 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()
601 static TEE_Result tee_svc_copy_param(struct ts_session *sess, in tee_svc_copy_param() argument
609 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in tee_svc_copy_param()
799 struct ts_session *sess = ts_get_current_session(); in syscall_open_ta_session() local
800 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_open_ta_session()
823 memcpy(&clnt_id->uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_open_ta_session()
825 res = tee_svc_copy_param(sess, NULL, usr_param, param, tmp_buf_va, in syscall_open_ta_session()
854 struct ts_session *sess = ts_get_current_session(); in syscall_close_ta_session() local
855 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_close_ta_session()
862 memcpy(&clnt_id.uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_close_ta_session()
871 struct ts_session *sess = ts_get_current_session(); in syscall_invoke_ta_command() local
872 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_invoke_ta_command()
889 memcpy(&clnt_id.uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_invoke_ta_command()
891 res = tee_svc_copy_param(sess, &called_sess->ts_sess, usr_param, &param, in syscall_invoke_ta_command()
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()
965 sess->cancel_mask = true; in syscall_mask_cancellation()