Lines Matching refs:vars
103 static int test_tee(struct unit_test_state *uts, struct test_tee_vars *vars) in test_tee() argument
130 rc = tee_shm_register(dev, data, sizeof(data), 0, &vars->reg_shm); in test_tee()
134 rc = tee_shm_alloc(dev, 256, 0, &vars->alloc_shm); in test_tee()
138 ut_assert(tee_shm_is_registered(vars->reg_shm, dev)); in test_tee()
139 ut_assert(tee_shm_is_registered(vars->alloc_shm, dev)); in test_tee()
141 tee_shm_free(vars->reg_shm); in test_tee()
142 vars->reg_shm = NULL; in test_tee()
143 tee_shm_free(vars->alloc_shm); in test_tee()
144 vars->alloc_shm = NULL; in test_tee()
204 struct test_tee_vars vars = { NULL, NULL }; in dm_test_tee() local
205 int rc = test_tee(uts, &vars); in dm_test_tee()
214 tee_shm_free(vars.reg_shm); in dm_test_tee()
215 tee_shm_free(vars.alloc_shm); in dm_test_tee()