Home | History | Annotate | Download | only in FaultTolerantWriteDxe

Lines Matching refs:FtwHeader

795   EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader;

798 FtwHeader = (EFI_FAULT_TOLERANT_WRITE_HEADER *) (FtwWorkSpaceHeader + 1);
801 while (FtwHeader->Complete == FTW_VALID_STATE) {
802 Offset += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize);
807 *FtwWriteHeader = FtwHeader;
811 FtwHeader = (EFI_FAULT_TOLERANT_WRITE_HEADER *) ((UINT8 *) FtwWorkSpaceHeader + Offset);
816 *FtwWriteHeader = FtwHeader;
879 To check if FtwRecord is the first record of FtwHeader.
881 @param FtwHeader Pointer to the write record header
884 @retval TRUE FtwRecord is the first Record of the FtwHeader
885 @retval FALSE FtwRecord is not the first Record of the FtwHeader
890 IN EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader,
897 Head = (UINT8 *) FtwHeader;
905 To check if FtwRecord is the last record of FtwHeader. Because the
906 FtwHeader has NumberOfWrites & PrivateDataSize, the FtwRecord can be
907 determined if it is the last record of FtwHeader.
909 @param FtwHeader Pointer to the write record header
912 @retval TRUE FtwRecord is the last Record of the FtwHeader
913 @retval FALSE FtwRecord is not the last Record of the FtwHeader
918 IN EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader,
925 Head = (UINT8 *) FtwHeader;
928 Head += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites - 1, FtwHeader->PrivateDataSize);
933 To check if FtwRecord is the first record of FtwHeader.
935 @param FtwHeader Pointer to the write record header
944 IN EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader,
950 if (IsFirstRecordOfWrites (FtwHeader, *FtwRecord)) {
956 Ptr -= FTW_RECORD_SIZE (FtwHeader->PrivateDataSize);
1200 EFI_FAULT_TOLERANT_WRITE_HEADER *FtwHeader;
1336 FtwHeader = FtwDevice->FtwLastWriteHeader;
1337 Offset = (UINT8 *) FtwHeader - FtwDevice->FtwWorkSpace;
1339 Offset += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize);