/device/linaro/bootloader/edk2/MdeModulePkg/Include/Guid/ |
D | SystemNvDataGuid.h | 83 UINT64 PrivateDataSize; member 106 #define FTW_RECORD_SIZE(PrivateDataSize) (sizeof (EFI_FAULT_TOLERANT_WRITE_RECORD) + (UINTN) Priva… argument 108 #define FTW_RECORD_TOTAL_SIZE(NumberOfWrites, PrivateDataSize) \ argument 109 … ((UINTN) (NumberOfWrites) * (sizeof (EFI_FAULT_TOLERANT_WRITE_RECORD) + (UINTN) PrivateDataSize)) 111 #define FTW_WRITE_TOTAL_SIZE(NumberOfWrites, PrivateDataSize) \ argument 114 (sizeof (EFI_FAULT_TOLERANT_WRITE_RECORD) + (UINTN) PrivateDataSize) \
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWriteDxe/ |
D | FaultTolerantWriteSmm.c | 319 UINTN PrivateDataSize; in SmmFaultTolerantWriteHandler() local 377 SmmFtwAllocateHeader->PrivateDataSize, in SmmFaultTolerantWriteHandler() 389 PrivateDataSize = SmmFtwWriteHeader->PrivateDataSize; in SmmFaultTolerantWriteHandler() 391 ((UINTN)(~0) - PrivateDataSize < OFFSET_OF (SMM_FTW_WRITE_HEADER, Data) + Length)) { in SmmFaultTolerantWriteHandler() 398 InfoSize = OFFSET_OF (SMM_FTW_WRITE_HEADER, Data) + Length + PrivateDataSize; in SmmFaultTolerantWriteHandler() 409 if (PrivateDataSize == 0) { in SmmFaultTolerantWriteHandler() 458 PrivateDataSize = SmmFtwGetLastWriteHeader->PrivateDataSize; in SmmFaultTolerantWriteHandler() 459 if ((UINTN)(~0) - PrivateDataSize < OFFSET_OF (SMM_FTW_GET_LAST_WRITE_HEADER, Data)){ in SmmFaultTolerantWriteHandler() 466 InfoSize = OFFSET_OF (SMM_FTW_GET_LAST_WRITE_HEADER, Data) + PrivateDataSize; in SmmFaultTolerantWriteHandler() 483 &PrivateDataSize, in SmmFaultTolerantWriteHandler() [all …]
|
D | FaultTolerantWriteSmmDxe.c | 207 IN UINTN PrivateDataSize, in FtwAllocate() argument 222 SmmFtwAllocateHeader->PrivateDataSize = PrivateDataSize; in FtwAllocate() 230 mPrivateDataSize = PrivateDataSize; in FtwAllocate() 309 SmmFtwWriteHeader->PrivateDataSize = 0; in FtwWrite() 311 SmmFtwWriteHeader->PrivateDataSize = mPrivateDataSize; in FtwWrite() 440 IN OUT UINTN *PrivateDataSize, in FtwGetLastWrite() argument 453 PayloadSize = OFFSET_OF (SMM_FTW_GET_LAST_WRITE_HEADER, Data) + *PrivateDataSize; in FtwGetLastWrite() 455 SmmFtwGetLastWriteHeader->PrivateDataSize = *PrivateDataSize; in FtwGetLastWrite() 465 *PrivateDataSize = SmmFtwGetLastWriteHeader->PrivateDataSize; in FtwGetLastWrite() 473 CopyMem (PrivateData, SmmFtwGetLastWriteHeader->Data, *PrivateDataSize); in FtwGetLastWrite()
|
D | FaultTolerantWriteSmmCommon.h | 51 UINTN PrivateDataSize; member 58 UINTN PrivateDataSize; member 75 UINTN PrivateDataSize; member
|
D | FaultTolerantWrite.c | 79 IN UINTN PrivateDataSize, in FtwAllocate() argument 97 …if (FTW_WRITE_TOTAL_SIZE (NumberOfWrites, PrivateDataSize) > FtwDevice->FtwWorkSpaceHeader->WriteQ… in FtwAllocate() 117 …if (Offset + FTW_WRITE_TOTAL_SIZE (NumberOfWrites, PrivateDataSize) > FtwDevice->FtwWorkSpaceSize)… in FtwAllocate() 133 FtwHeader->PrivateDataSize = PrivateDataSize; in FtwAllocate() 376 … (UINT8 *) Header)) > FTW_WRITE_TOTAL_SIZE (Header->NumberOfWrites - 1, Header->PrivateDataSize)) { in FtwWrite() 447 CopyMem ((Record + 1), PrivateData, (UINTN) Header->PrivateDataSize); in FtwWrite() 451 MyLength = FTW_RECORD_SIZE (Header->PrivateDataSize); in FtwWrite() 813 IN OUT UINTN *PrivateDataSize, in FtwGetLastWrite() argument 879 if (*PrivateDataSize < Header->PrivateDataSize) { in FtwGetLastWrite() 880 *PrivateDataSize = (UINTN) Header->PrivateDataSize; in FtwGetLastWrite() [all …]
|
D | FaultTolerantWriteSmmDxe.h | 82 IN UINTN PrivateDataSize, 197 IN OUT UINTN *PrivateDataSize,
|
D | FtwMisc.c | 802 Offset += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize); in FtwGetLastWriteHeader() 860 if (FtwWriteHeader->PrivateDataSize != 0) { in FtwGetLastWriteRecord() 861 … (EFI_FAULT_TOLERANT_WRITE_RECORD *) ((UINTN) FtwRecord + (UINTN) FtwWriteHeader->PrivateDataSize); in FtwGetLastWriteRecord() 871 …T_TOLERANT_WRITE_RECORD *) ((UINTN) FtwRecord - FTW_RECORD_SIZE (FtwWriteHeader->PrivateDataSize)); in FtwGetLastWriteRecord() 928 Head += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites - 1, FtwHeader->PrivateDataSize); in IsLastRecordOfWrites() 956 Ptr -= FTW_RECORD_SIZE (FtwHeader->PrivateDataSize); in GetPreviousRecordOfWrites() 1339 Offset += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize); in InitFtwProtocol()
|
D | FaultTolerantWrite.h | 165 IN UINTN PrivateDataSize, 275 IN OUT UINTN *PrivateDataSize,
|
D | UpdateWorkingBlock.c | 449 FTW_WRITE_TOTAL_SIZE (Header->NumberOfWrites, Header->PrivateDataSize) in FtwReclaimWorkSpace()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWritePei/ |
D | FaultTolerantWritePei.c | 61 Offset += FTW_WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize); in FtwGetLastWriteHeader() 119 if (FtwWriteHeader->PrivateDataSize != 0) { in FtwGetLastWriteRecord() 120 … (EFI_FAULT_TOLERANT_WRITE_RECORD *) ((UINTN) FtwRecord + (UINTN) FtwWriteHeader->PrivateDataSize); in FtwGetLastWriteRecord() 130 …T_TOLERANT_WRITE_RECORD *) ((UINTN) FtwRecord - FTW_RECORD_SIZE (FtwWriteHeader->PrivateDataSize)); in FtwGetLastWriteRecord()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Protocol/ |
D | FaultTolerantWrite.h | 76 IN UINTN PrivateDataSize, 188 IN OUT UINTN *PrivateDataSize,
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
D | FlashUpdate.c | 187 IN UINTN PrivateDataSize, in RetrieveLastWrite() argument 205 PrivateBufferSize = PrivateDataSize; in RetrieveLastWrite() 247 CopyMem (PrivateData, PrivateDataBuffer, PrivateDataSize); in RetrieveLastWrite()
|