Lines Matching refs:s
19 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in update_current_ctx() local
21 if (s) { in update_current_ctx()
22 if (is_pseudo_ta_ctx(s->ctx)) in update_current_ctx()
23 s = TAILQ_NEXT(s, link_tsd); in update_current_ctx()
25 if (s) in update_current_ctx()
26 ctx = s->ctx; in update_current_ctx()
38 void ts_push_current_session(struct ts_session *s) in ts_push_current_session() argument
42 TAILQ_INSERT_HEAD(&tsd->sess_stack, s, link_tsd); in ts_push_current_session()
49 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in ts_pop_current_session() local
51 if (s) { in ts_pop_current_session()
52 TAILQ_REMOVE(&tsd->sess_stack, s, link_tsd); in ts_pop_current_session()
55 return s; in ts_pop_current_session()
60 struct ts_session *s = ts_get_current_session(); in ts_get_calling_session() local
62 if (s) in ts_get_calling_session()
63 s = TAILQ_NEXT(s, link_tsd); in ts_get_calling_session()
64 return s; in ts_get_calling_session()
74 struct ts_session *s = ts_get_current_session_may_fail(); in ts_get_current_session() local
76 if (!s) in ts_get_current_session()
78 return s; in ts_get_current_session()