Lines Matching refs:sess
113 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() argument
178 return copy_to_user(buf, &to_ta_session(sess)->clnt_id, 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() argument
203 return copy_to_user(buf, &sess->ctx->uuid, sizeof(TEE_UUID)); 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() local
496 res = prop->get_prop_func(sess, buf, &klen_size); in syscall_get_property()
658 static TEE_Result tee_svc_copy_param(struct ts_session *sess, in tee_svc_copy_param() argument
663 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in tee_svc_copy_param()
783 struct ts_session *sess = ts_get_current_session(); in syscall_open_ta_session() local
784 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_open_ta_session()
804 memcpy(&clnt_id->uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_open_ta_session()
806 res = tee_svc_copy_param(sess, NULL, usr_param, param); in syscall_open_ta_session()
832 struct ts_session *sess = ts_get_current_session(); in syscall_close_ta_session() local
833 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_close_ta_session()
840 memcpy(&clnt_id.uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_close_ta_session()
849 struct ts_session *sess = ts_get_current_session(); in syscall_invoke_ta_command() local
850 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_invoke_ta_command()
864 memcpy(&clnt_id.uuid, &sess->ctx->uuid, sizeof(TEE_UUID)); in syscall_invoke_ta_command()
866 res = tee_svc_copy_param(sess, &called_sess->ts_sess, usr_param, in syscall_invoke_ta_command()
921 struct tee_ta_session *sess = NULL; in syscall_unmask_cancellation() local
924 sess = to_ta_session(s); in syscall_unmask_cancellation()
925 m = sess->cancel_mask; in syscall_unmask_cancellation()
926 sess->cancel_mask = false; in syscall_unmask_cancellation()
933 struct tee_ta_session *sess = NULL; in syscall_mask_cancellation() local
936 sess = to_ta_session(s); in syscall_mask_cancellation()
937 m = sess->cancel_mask; in syscall_mask_cancellation()
938 sess->cancel_mask = true; in syscall_mask_cancellation()