Lines Matching refs:Command

45 typedef struct Command {  struct
50 struct Command* next; argument
51 } Command; typedef
56 static void AddVisibleField(Command* cmd, const char* name, int offset) { in AddVisibleField()
71 static void AddInitializedField(Command* cmd, int offset, in AddInitializedField()
85 Command* newCommand(TPM_COMMAND_CODE code, int size) { in newCommand()
86 Command* cmd = (Command*) calloc(1, sizeof(Command)); in newCommand()
103 Command* BuildDefineSpaceCommand(void) { in BuildDefineSpaceCommand()
132 Command* cmd = newCommand(TPM_ORD_NV_DefineSpace, size); in BuildDefineSpaceCommand()
154 Command* BuildWriteCommand(void) { in BuildWriteCommand()
155 Command* cmd = newCommand(TPM_ORD_NV_WriteValue, 0); in BuildWriteCommand()
164 Command* BuildReadCommand(void) { in BuildReadCommand()
166 Command* cmd = newCommand(TPM_ORD_NV_ReadValue, size); in BuildReadCommand()
173 Command* BuildPCRReadCommand(void) { in BuildPCRReadCommand()
175 Command* cmd = newCommand(TPM_ORD_PcrRead, size); in BuildPCRReadCommand()
181 Command* BuildPPAssertCommand(void) { in BuildPPAssertCommand()
183 Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size); in BuildPPAssertCommand()
191 Command* BuildPPEnableCommand(void) { in BuildPPEnableCommand()
193 Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size); in BuildPPEnableCommand()
201 Command* BuildFinalizePPCommand(void) { in BuildFinalizePPCommand()
203 Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size); in BuildFinalizePPCommand()
213 Command* BuildPPLockCommand(void) { in BuildPPLockCommand()
215 Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size); in BuildPPLockCommand()
223 Command* BuildStartupCommand(void) { in BuildStartupCommand()
225 Command* cmd = newCommand(TPM_ORD_Startup, size); in BuildStartupCommand()
233 Command* BuildSaveStateCommand(void) { in BuildSaveStateCommand()
235 Command* cmd = newCommand(TPM_ORD_SaveState, size); in BuildSaveStateCommand()
240 Command* BuildResumeCommand(void) { in BuildResumeCommand()
242 Command* cmd = newCommand(TPM_ORD_Startup, size); in BuildResumeCommand()
250 Command* BuildSelftestfullCommand(void) { in BuildSelftestfullCommand()
252 Command* cmd = newCommand(TPM_ORD_SelfTestFull, size); in BuildSelftestfullCommand()
257 Command* BuildContinueSelfTestCommand(void) { in BuildContinueSelfTestCommand()
259 Command* cmd = newCommand(TPM_ORD_ContinueSelfTest, size); in BuildContinueSelfTestCommand()
264 Command* BuildReadPubekCommand(void) { in BuildReadPubekCommand()
266 Command* cmd = newCommand(TPM_ORD_ReadPubek, size); in BuildReadPubekCommand()
271 Command* BuildForceClearCommand(void) { in BuildForceClearCommand()
273 Command* cmd = newCommand(TPM_ORD_ForceClear, size); in BuildForceClearCommand()
278 Command* BuildPhysicalEnableCommand(void) { in BuildPhysicalEnableCommand()
280 Command* cmd = newCommand(TPM_ORD_PhysicalEnable, size); in BuildPhysicalEnableCommand()
285 Command* BuildPhysicalDisableCommand(void) { in BuildPhysicalDisableCommand()
287 Command* cmd = newCommand(TPM_ORD_PhysicalDisable, size); in BuildPhysicalDisableCommand()
292 Command* BuildPhysicalSetDeactivatedCommand(void) { in BuildPhysicalSetDeactivatedCommand()
294 Command* cmd = newCommand(TPM_ORD_PhysicalSetDeactivated, size); in BuildPhysicalSetDeactivatedCommand()
300 Command* BuildExtendCommand(void) { in BuildExtendCommand()
302 Command* cmd = newCommand(TPM_ORD_Extend, size); in BuildExtendCommand()
309 Command* BuildGetFlagsCommand(void) { in BuildGetFlagsCommand()
315 Command* cmd = newCommand(TPM_ORD_GetCapability, size); in BuildGetFlagsCommand()
328 Command* BuildGetSTClearFlagsCommand(void) { in BuildGetSTClearFlagsCommand()
334 Command* cmd = newCommand(TPM_ORD_GetCapability, size); in BuildGetSTClearFlagsCommand()
347 Command* BuildGetPermissionsCommand(void) { in BuildGetPermissionsCommand()
353 Command* cmd = newCommand(TPM_ORD_GetCapability, size); in BuildGetPermissionsCommand()
365 Command* BuildGetOwnershipCommand(void) { in BuildGetOwnershipCommand()
371 Command* cmd = newCommand(TPM_ORD_GetCapability, size); in BuildGetOwnershipCommand()
384 Command* BuildGetRandomCommand(void) { in BuildGetRandomCommand()
386 Command* cmd = newCommand(TPM_ORD_GetRandom, size); in BuildGetRandomCommand()
408 int OutputBytes_(Command* cmd, Field* fld) { in OutputBytes_()
455 void OutputBytes(Command* cmd) { in OutputBytes()
459 void OutputFieldPointers(Command* cmd, Field* fld) { in OutputFieldPointers()
472 void OutputCommands(Command* cmd) { in OutputCommands()
488 Command* (*builders[])(void) = {
523 static void FreeCommands(Command* cmd) { in FreeCommands()
525 Command* next_command = cmd->next; in FreeCommands()
533 Command* commands = NULL; in main()
536 Command* cmd = builders[i](); in main()