Lines Matching refs:s

20 static bool client_is_secure(struct ts_session *s)  in client_is_secure()  argument
23 if (to_ta_session(s)->clnt_id.login == TEE_LOGIN_TRUSTED_APP) in client_is_secure()
29 static bool validate_in_param(struct ts_session *s, struct mobj *mobj) in validate_in_param() argument
36 if (client_is_secure(s)) 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()
76 if (!validate_in_param(s, mem->mobj)) in copy_in_param()
141 static TEE_Result pseudo_ta_enter_open_session(struct ts_session *s) in pseudo_ta_enter_open_session() argument
144 struct pseudo_ta_ctx *stc = to_pseudo_ta_ctx(s->ctx); in pseudo_ta_enter_open_session()
145 struct tee_ta_session *ta_sess = to_ta_session(s); in pseudo_ta_enter_open_session()
149 ts_push_current_session(s); in pseudo_ta_enter_open_session()
159 void **user_ctx = &s->user_ctx; in pseudo_ta_enter_open_session()
163 res = copy_in_param(s, ta_sess->param, tee_param, 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() argument
190 struct pseudo_ta_ctx *stc = to_pseudo_ta_ctx(s->ctx); in pseudo_ta_enter_invoke_cmd()
191 struct tee_ta_session *ta_sess = to_ta_session(s); in pseudo_ta_enter_invoke_cmd()
196 ts_push_current_session(s); in pseudo_ta_enter_invoke_cmd()
198 res = copy_in_param(s, ta_sess->param, tee_param, did_map); in pseudo_ta_enter_invoke_cmd()
208 res = stc->pseudo_ta->invoke_command_entry_point(s->user_ctx, 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() argument
222 struct pseudo_ta_ctx *stc = to_pseudo_ta_ctx(s->ctx); in pseudo_ta_enter_close_session()
223 void *user_ctx = s->user_ctx; in pseudo_ta_enter_close_session()
225 ts_push_current_session(s); in pseudo_ta_enter_close_session()
290 struct tee_ta_session *s) in tee_ta_init_pseudo_ta_session() argument
322 s->ts_sess.ctx = &ctx->ts_ctx; in tee_ta_init_pseudo_ta_session()