Lines Matching refs:SendBuffer
179 TPM2_NV_READPUBLIC_COMMAND SendBuffer;
191 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS);
192 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_ReadPublic);
194 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
196 SendBufferSize = (UINT32) sizeof (SendBuffer);
197 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
203 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
287 TPM2_NV_DEFINESPACE_COMMAND SendBuffer;
299 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
300 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_DefineSpace);
301 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
306 Buffer = (UINT8 *)&SendBuffer.AuthSession;
311 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
341 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
342 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
348 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
397 ZeroMem (&SendBuffer, sizeof(SendBuffer));
422 TPM2_NV_UNDEFINESPACE_COMMAND SendBuffer;
433 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
434 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_UndefineSpace);
436 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
437 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
442 Buffer = (UINT8 *)&SendBuffer.AuthSession;
447 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
449 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
450 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
456 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
501 ZeroMem (&SendBuffer, sizeof(SendBuffer));
532 TPM2_NV_READ_COMMAND SendBuffer;
543 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
544 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_Read);
546 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
547 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
552 Buffer = (UINT8 *)&SendBuffer.AuthSession;
557 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
564 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
565 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
571 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
641 ZeroMem (&SendBuffer, sizeof(SendBuffer));
670 TPM2_NV_WRITE_COMMAND SendBuffer;
681 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
682 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_Write);
684 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
685 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
690 Buffer = (UINT8 *)&SendBuffer.AuthSession;
695 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
704 SendBufferSize = (UINT32) (Buffer - (UINT8 *)&SendBuffer);
705 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
711 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
772 ZeroMem (&SendBuffer, sizeof(SendBuffer));
797 TPM2_NV_READLOCK_COMMAND SendBuffer;
808 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
809 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_ReadLock);
811 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
812 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
817 Buffer = (UINT8 *)&SendBuffer.AuthSession;
822 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
824 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
825 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
831 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
859 ZeroMem (&SendBuffer, sizeof(SendBuffer));
884 TPM2_NV_WRITELOCK_COMMAND SendBuffer;
895 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
896 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_WriteLock);
898 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
899 SendBuffer.NvIndex = SwapBytes32 (NvIndex);
904 Buffer = (UINT8 *)&SendBuffer.AuthSession;
909 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
911 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
912 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
918 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
946 ZeroMem (&SendBuffer, sizeof(SendBuffer));
969 TPM2_NV_GLOBALWRITELOCK_COMMAND SendBuffer;
980 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS);
981 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_GlobalWriteLock);
983 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle);
988 Buffer = (UINT8 *)&SendBuffer.AuthSession;
993 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize);
995 SendBufferSize = (UINT32)(Buffer - (UINT8 *)&SendBuffer);
996 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize);
1002 Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvBuffer);
1030 ZeroMem (&SendBuffer, sizeof(SendBuffer));