Lines Matching refs:calls

40 static struct srcall calls[MAXCALLS];
53 memset(calls, 0, sizeof(calls));
55 calls[i].rsp = calls[i].rsp_buf;
64 struct srcall *c = calls + call_idx;
86 struct srcall *c = calls + ncalls++;
133 TEST_PTR_EQ(calls[0].req, buf, "SendReceive req ptr");
134 TEST_EQ(calls[0].req_size, 10, "SendReceive size");
137 calls[0].retval = VBERROR_SIMULATED;
161 TEST_EQ(calls[0].req_cmd, TPM_ORD_Startup, " cmd");
165 TEST_EQ(calls[0].req_cmd, TPM_ORD_SaveState, " cmd");
169 TEST_EQ(calls[0].req_cmd, TPM_ORD_Startup, " cmd");
173 TEST_EQ(calls[0].req_cmd, TPM_ORD_SelfTestFull, " cmd");
177 TEST_EQ(calls[0].req_cmd, TPM_ORD_ContinueSelfTest, " cmd");
182 TEST_EQ(calls[0].req_cmd, TSC_ORD_PhysicalPresence, " cmd");
187 TEST_EQ(calls[0].req_cmd, TSC_ORD_PhysicalPresence, " cmd");
192 TEST_EQ(calls[0].req_cmd, TSC_ORD_PhysicalPresence, " cmd");
197 TEST_EQ(calls[0].req_cmd, TSC_ORD_PhysicalPresence, " cmd");
202 TEST_EQ(calls[0].req_cmd, TSC_ORD_PhysicalPresence, " cmd");
206 TEST_EQ(calls[0].req_cmd, TPM_ORD_ReadPubek, " cmd");
208 calls[0].retval = VBERROR_SIMULATED;
213 TEST_EQ(calls[0].req_cmd, TPM_ORD_ForceClear, " cmd");
217 TEST_EQ(calls[0].req_cmd, TPM_ORD_PhysicalEnable, " cmd");
221 TEST_EQ(calls[0].req_cmd, TPM_ORD_PhysicalDisable, " cmd");
225 TEST_EQ(calls[0].req_cmd, TPM_ORD_PhysicalSetDeactivated, " cmd");
239 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_DefineSpace, " cmd");
243 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_DefineSpace, " cmd");
247 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_WriteValue, " cmd");
251 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_ReadValue, " cmd");
255 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_WriteValue, " cmd");
259 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_ReadValue, " cmd");
263 TEST_EQ(calls[0].req_cmd, TPM_ORD_NV_WriteValue, " cmd");
277 TEST_EQ(calls[0].req_cmd, TPM_ORD_PcrRead, " cmd");
285 TEST_EQ(calls[0].req_cmd, TPM_ORD_Extend, " cmd");
303 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetCapability, " cmd");
307 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetCapability, " cmd");
311 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetCapability, " cmd");
317 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetCapability, " cmd");
321 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetCapability, " cmd");
338 TEST_EQ(calls[0].req_cmd, TPM_ORD_GetRandom, " cmd");