Home
last modified time | relevance | path

Searched refs:PrivateDataSize (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Include/Guid/
DSystemNvDataGuid.h83 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/
DFaultTolerantWriteSmm.c319 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 …]
DFaultTolerantWriteSmmDxe.c207 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()
DFaultTolerantWriteSmmCommon.h51 UINTN PrivateDataSize; member
58 UINTN PrivateDataSize; member
75 UINTN PrivateDataSize; member
DFaultTolerantWrite.c79 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 …]
DFaultTolerantWriteSmmDxe.h82 IN UINTN PrivateDataSize,
197 IN OUT UINTN *PrivateDataSize,
DFtwMisc.c802 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()
DFaultTolerantWrite.h165 IN UINTN PrivateDataSize,
275 IN OUT UINTN *PrivateDataSize,
DUpdateWorkingBlock.c449 FTW_WRITE_TOTAL_SIZE (Header->NumberOfWrites, Header->PrivateDataSize) in FtwReclaimWorkSpace()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWritePei/
DFaultTolerantWritePei.c61 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/
DFaultTolerantWrite.h76 IN UINTN PrivateDataSize,
188 IN OUT UINTN *PrivateDataSize,
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
DFlashUpdate.c187 IN UINTN PrivateDataSize, in RetrieveLastWrite() argument
205 PrivateBufferSize = PrivateDataSize; in RetrieveLastWrite()
247 CopyMem (PrivateData, PrivateDataBuffer, PrivateDataSize); in RetrieveLastWrite()