Lines Matching refs:itr
224 struct ta_session *itr; in ta_header_get_session() local
226 TAILQ_FOREACH(itr, &ta_sessions, link) { in ta_header_get_session()
227 if (itr->session_id == session_id) in ta_header_get_session()
228 return itr; in ta_header_get_session()
235 struct ta_session *itr = ta_header_get_session(session_id); in ta_header_add_session() local
238 if (itr) in ta_header_add_session()
245 itr = TEE_Malloc(sizeof(struct ta_session), in ta_header_add_session()
247 if (!itr) in ta_header_add_session()
249 itr->session_id = session_id; in ta_header_add_session()
250 itr->session_ctx = 0; in ta_header_add_session()
251 TAILQ_INSERT_TAIL(&ta_sessions, itr, link); in ta_header_add_session()
258 struct ta_session *itr; in ta_header_remove_session() local
261 TAILQ_FOREACH(itr, &ta_sessions, link) { in ta_header_remove_session()
262 if (itr->session_id == session_id) { in ta_header_remove_session()
263 TAILQ_REMOVE(&ta_sessions, itr, link); in ta_header_remove_session()
264 TEE_Free(itr); in ta_header_remove_session()