Lines Matching refs:sess
57 static void open_sess(TEEC_Context *ctx, TEEC_Session *sess) in open_sess() argument
67 res = TEEC_OpenSession(ctx, sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in open_sess()
75 static int close_sess(TEEC_Context *ctx, TEEC_Session *sess) in close_sess() argument
77 TEEC_CloseSession(sess); in close_sess()
86 TEEC_Session sess = { }; in stat_pager() local
95 open_sess(&ctx, &sess); in stat_pager()
100 res = TEEC_InvokeCommand(&sess, STATS_CMD_PAGER_STATS, &op, &eo); in stat_pager()
114 return close_sess(&ctx, &sess); in stat_pager()
120 TEEC_Session sess = { }; in stat_alloc() local
132 open_sess(&ctx, &sess); in stat_alloc()
137 res = TEEC_InvokeCommand(&sess, STATS_CMD_ALLOC_STATS, &op, &eo); in stat_alloc()
154 res = TEEC_InvokeCommand(&sess, STATS_CMD_ALLOC_STATS, &op, &eo); in stat_alloc()
187 return close_sess(&ctx, &sess); in stat_alloc()
193 TEEC_Session sess = { }; in stat_memleak() local
201 open_sess(&ctx, &sess); in stat_memleak()
203 res = TEEC_InvokeCommand(&sess, STATS_CMD_MEMLEAK_STATS, NULL, &eo); in stat_memleak()
209 return close_sess(&ctx, &sess); in stat_memleak()