Lines Matching refs:FtwHeader
86 EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader;
103 // If the FtwHeader is complete, skip the completed last write header/records
105 FtwHeader = FtwDevice->FtwLastWriteHeader;
110 if ((FtwHeader->HeaderAllocated == FTW_VALID_STATE) || (FtwHeader->WritesAllocated == FTW_VALID_STATE)) {
116 Offset = (UINT8 *) FtwHeader - (UINT8 *) FtwDevice->FtwWorkSpace;
123 FtwHeader = FtwDevice->FtwLastWriteHeader;
129 FtwHeader->WritesAllocated = FTW_INVALID_STATE;
130 FtwHeader->Complete = FTW_INVALID_STATE;
131 CopyMem (&FtwHeader->CallerId, CallerId, sizeof (EFI_GUID));
132 FtwHeader->NumberOfWrites = NumberOfWrites;
133 FtwHeader->PrivateDataSize = PrivateDataSize;
134 FtwHeader->HeaderAllocated = FTW_VALID_STATE;
142 (UINT8 *) FtwHeader