Lines Matching refs:commandCode
42 TSS2_RC CopyCommandHeader(_TSS2_SYS_CONTEXT_BLOB *ctx, TPM2_CC commandCode) in CopyCommandHeader() argument
57 req_header_from_cxt(ctx)->commandCode = HOST_TO_BE_32(commandCode); in CopyCommandHeader()
62 static int GetNumCommandHandles(TPM2_CC commandCode);
63 static int GetNumResponseHandles(TPM2_CC commandCode);
67 TPM2_CC commandCode) in CommonPreparePrologue() argument
83 rval = CopyCommandHeader(ctx, commandCode); in CommonPreparePrologue()
87 ctx->commandCode = commandCode; in CommonPreparePrologue()
88 ctx->numResponseHandles = GetNumResponseHandles(commandCode); in CommonPreparePrologue()
90 (GetNumResponseHandles(commandCode) * sizeof(UINT32))); in CommonPreparePrologue()
92 numCommandHandles = GetNumCommandHandles(commandCode); in CommonPreparePrologue()
290 static int GetNumHandles(TPM2_CC commandCode, bool req) in GetNumHandles() argument
295 if (commandCode == commandArray[i].commandCode) { in GetNumHandles()
306 static int GetNumCommandHandles(TPM2_CC commandCode) in GetNumCommandHandles() argument
308 return GetNumHandles(commandCode, 1); in GetNumCommandHandles()
311 static int GetNumResponseHandles(TPM2_CC commandCode) in GetNumResponseHandles() argument
313 return GetNumHandles(commandCode, 0); in GetNumResponseHandles()