Lines Matching refs:rc
35 TSS2_RC rc; in test_invoke() local
39 rc = Tss2_Sys_GetTestResult_Prepare(0); in test_invoke()
40 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
41 LOG_ERROR("Invalid prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
46 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
47 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
48 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
52 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
53 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
54 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
58 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
59 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
60 LOG_ERROR("Invalid prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
64 rc = Tss2_Sys_ExecuteFinish(sapi_context, -1); in test_invoke()
65 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
66 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
71 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
72 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
73 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
77 rc = Tss2_Sys_Execute(sapi_context); in test_invoke()
78 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
79 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
83 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
84 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
85 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
89 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
90 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
91 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
96 rc = Tss2_Sys_Create_Prepare(sapi_context, 0xffffffff, 0, 0, 0, 0); in test_invoke()
97 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
98 LOG_ERROR("Invalid prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
102 rc = Tss2_Sys_GetTestResult(sapi_context, 0, &outData, &rc, 0); in test_invoke()
103 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
104 LOG_ERROR("GetTestResult test FAILED! Response Code : 0x%x", rc); in test_invoke()
109 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
110 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
111 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
116 rc = Tss2_Sys_Execute(sapi_context); in test_invoke()
117 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
118 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
123 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
124 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
125 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
130 rc = Tss2_Sys_Execute(0); in test_invoke()
131 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
132 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
137 rc = Tss2_Sys_Execute(sapi_context); in test_invoke()
138 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
139 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
144 rc = Tss2_Sys_Execute(sapi_context); in test_invoke()
145 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
146 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
151 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
152 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
153 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
158 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
159 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
160 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
164 rc = Tss2_Sys_GetTestResult_Complete(sapi_context, &outData, &rc); in test_invoke()
165 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
166 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
171 rc = Tss2_Sys_ExecuteAsync(0); in test_invoke()
172 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
173 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
178 rc = Tss2_Sys_ExecuteFinish(sapi_context, TSS2_TCTI_TIMEOUT_BLOCK); in test_invoke()
179 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
180 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
185 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
186 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
187 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
192 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
193 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
194 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
199 rc = Tss2_Sys_Execute(sapi_context); in test_invoke()
200 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
201 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
206 rc = Tss2_Sys_ExecuteFinish(0, TSS2_TCTI_TIMEOUT_BLOCK); in test_invoke()
207 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
208 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
214 rc = Tss2_Sys_GetTestResult_Complete(sapi_context, &outData, &rc); in test_invoke()
215 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
216 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
222 rc = Tss2_Sys_ExecuteFinish(sapi_context, TSS2_TCTI_TIMEOUT_BLOCK); in test_invoke()
223 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
224 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
228 rc = Tss2_Sys_ExecuteFinish(sapi_context, TSS2_TCTI_TIMEOUT_BLOCK); in test_invoke()
229 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
230 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
235 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
236 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
237 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
242 rc = Tss2_Sys_GetTestResult_Complete(0, &outData, &rc); in test_invoke()
243 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
244 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
248 rc = Tss2_Sys_ReadPublic_Prepare(sapi_context, handle); in test_invoke()
249 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
250 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
255 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
256 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
257 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
263 rc = Tss2_Sys_ReadPublic_Complete(sapi_context, &outPublic, &name, &qualifiedName); in test_invoke()
264 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
265 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
269 rc = Tss2_Sys_GetRpBuffer(sapi_context, &rpBufferUsedSize, &rpBuffer); in test_invoke()
270 if (rc != TSS2_SYS_RC_BAD_SEQUENCE) { in test_invoke()
271 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
277 rc = Tss2_Sys_ExecuteFinish(sapi_context, TSS2_TCTI_TIMEOUT_BLOCK); in test_invoke()
278 if (rc != TPM2_RC_VALUE + TPM2_RC_1) { in test_invoke()
279 LOG_ERROR("SAPI test FAILED! Response Code : 0x%x", rc); in test_invoke()
284 rc = Tss2_Sys_Startup(0, TPM2_SU_CLEAR); in test_invoke()
285 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
286 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
291 rc = Tss2_Sys_Create(sapi_context, 0xffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); in test_invoke()
292 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
293 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
298 rc = Tss2_Sys_GetCommandCode(0, (UINT8 *)&commandCode); in test_invoke()
299 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
300 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()
304 rc = Tss2_Sys_GetCommandCode(sapi_context, NULL); in test_invoke()
305 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
306 LOG_ERROR("SAPI invalid test FAILED! Response Code : 0x%x", rc); in test_invoke()