Lines Matching refs:rc

22 	int rc;  in open_session()  local
26 rc = tee_open_session(dev, &arg, 0, NULL); in open_session()
27 if (rc) in open_session()
28 return rc; in open_session()
58 int rc; in invoke_func_rpc_test() local
64 rc = tee_shm_alloc(dev, buf_size, in invoke_func_rpc_test()
66 if (rc) in invoke_func_rpc_test()
67 return rc; in invoke_func_rpc_test()
82 rc = -1; in invoke_func_rpc_test()
90 return rc; in invoke_func_rpc_test()
110 int rc; in test_tee() local
118 rc = open_session(dev, &session, &avb_uuid); in test_tee()
119 ut_assert(!rc); in test_tee()
122 rc = invoke_func_avb(dev, session); in test_tee()
123 ut_assert(!rc); in test_tee()
125 rc = tee_close_session(dev, session); in test_tee()
126 ut_assert(!rc); in test_tee()
130 rc = tee_shm_register(dev, data, sizeof(data), 0, &vars->reg_shm); in test_tee()
131 ut_assert(!rc); in test_tee()
134 rc = tee_shm_alloc(dev, 256, 0, &vars->alloc_shm); in test_tee()
135 ut_assert(!rc); in test_tee()
147 return rc; in test_tee()
159 int rc; in test_tee_rpc() local
176 rc = open_session(dev, &session, &rpc_test_uuid); in test_tee_rpc()
177 ut_assert(!rc); in test_tee_rpc()
182 rc = invoke_func_rpc_test(dev, session, TA_RPC_TEST_CMD_I2C_WRITE, in test_tee_rpc()
184 ut_assert(!rc); in test_tee_rpc()
187 rc = invoke_func_rpc_test(dev, session, TA_RPC_TEST_CMD_I2C_READ, in test_tee_rpc()
190 ut_assert(!rc); in test_tee_rpc()
195 rc = tee_close_session(dev, session); in test_tee_rpc()
196 ut_assert(!rc); in test_tee_rpc()
199 return rc; in test_tee_rpc()
205 int rc = test_tee(uts, &vars); in dm_test_tee() local
207 if (rc) in dm_test_tee()
211 rc = test_tee_rpc(uts); in dm_test_tee()
217 return rc; in dm_test_tee()