• Home
  • Raw
  • Download

Lines Matching refs:command

95     COMMAND              command;  in ExecuteCommand()  local
140 command.parameterBuffer = request; in ExecuteCommand()
141 command.parameterSize = requestSize; in ExecuteCommand()
146 result = TPMI_ST_COMMAND_TAG_Unmarshal(&command.tag, in ExecuteCommand()
147 &command.parameterBuffer, in ExecuteCommand()
148 &command.parameterSize); in ExecuteCommand()
153 &command.parameterBuffer, in ExecuteCommand()
154 &command.parameterSize); in ExecuteCommand()
170 result = TPM_CC_Unmarshal(&command.code, &command.parameterBuffer, in ExecuteCommand()
171 &command.parameterSize); in ExecuteCommand()
175 command.index = CommandCodeToCommandIndex(command.code); in ExecuteCommand()
176 if(UNIMPLEMENTED_COMMAND_INDEX == command.index) in ExecuteCommand()
184 if(IsFieldUgradeMode() && (command.code != TPM_CC_FieldUpgradeData)) in ExecuteCommand()
194 if((!TPMIsStarted() && command.code != TPM_CC_Startup) in ExecuteCommand()
195 || (TPMIsStarted() && command.code == TPM_CC_Startup)) in ExecuteCommand()
203 result = ParseHandleBuffer(&command); in ExecuteCommand()
208 result = EntityGetLoadStatus(&command); in ExecuteCommand()
212 ClearCpRpHashes(&command); in ExecuteCommand()
213 if(command.tag == TPM_ST_SESSIONS) in ExecuteCommand()
216 result = UINT32_Unmarshal((UINT32 *)&command.authSize, in ExecuteCommand()
217 &command.parameterBuffer, in ExecuteCommand()
218 &command.parameterSize); in ExecuteCommand()
226 if(command.authSize < 9 in ExecuteCommand()
227 || command.authSize > command.parameterSize) in ExecuteCommand()
232 command.parameterSize -= command.authSize; in ExecuteCommand()
238 result = ParseSessionBuffer(&command); in ExecuteCommand()
244 command.authSize = 0; in ExecuteCommand()
248 result = CheckAuthNoSession(&command); in ExecuteCommand()
256 command.responseBuffer = *response + STD_RESPONSE_HEADER; in ExecuteCommand()
259 if(command.tag == TPM_ST_SESSIONS) in ExecuteCommand()
260 command.responseBuffer += sizeof(UINT32); in ExecuteCommand()
261 if(IsHandleInResponse(command.index)) in ExecuteCommand()
262 command.responseBuffer += sizeof(TPM_HANDLE); in ExecuteCommand()
267 result = CommandDispatcher(&command); in ExecuteCommand()
272 BuildResponseSession(&command); in ExecuteCommand()
293 BuildResponseHeader(&command, *response, result); in ExecuteCommand()
308 pAssert((UINT32)command.parameterSize <= maxResponse); in ExecuteCommand()
314 *responseSize = (UINT32)command.parameterSize; in ExecuteCommand()