Lines Matching refs:ctx
57 static void open_sess(TEEC_Context *ctx, TEEC_Session *sess) in open_sess() argument
63 res = TEEC_InitializeContext(NULL, ctx); in open_sess()
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
78 TEEC_FinalizeContext(ctx); in close_sess()
85 TEEC_Context ctx = { }; in stat_pager() local
95 open_sess(&ctx, &sess); in stat_pager()
114 return close_sess(&ctx, &sess); in stat_pager()
119 TEEC_Context ctx = { }; in stat_alloc() local
132 open_sess(&ctx, &sess); in stat_alloc()
187 return close_sess(&ctx, &sess); in stat_alloc()
192 TEEC_Context ctx = { }; in stat_memleak() local
201 open_sess(&ctx, &sess); in stat_memleak()
209 return close_sess(&ctx, &sess); in stat_memleak()