Home
last modified time | relevance | path

Searched refs:FileOffset (Results 1 – 25 of 37) sorted by relevance

12

/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/
DFwVol.c136 UINT32 FileOffset; in SecFfsFindNextFile() local
171 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile()
173 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in SecFfsFindNextFile()
182 FileOffset += sizeof (EFI_FFS_FILE_HEADER); in SecFfsFindNextFile()
199 FileOffset += FileOccupiedSize; in SecFfsFindNextFile()
209 FileOffset += FileOccupiedSize; in SecFfsFindNextFile()
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/
DFwVol.c140 UINT32 FileOffset; in SecFfsFindNextFile() local
167 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile()
169 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in SecFfsFindNextFile()
178 FileOffset += sizeof (EFI_FFS_FILE_HEADER); in SecFfsFindNextFile()
195 FileOffset += FileOccupiedSize; in SecFfsFindNextFile()
205 FileOffset += FileOccupiedSize; in SecFfsFindNextFile()
DSecMain.h479 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/
DDebugAgentSymbolsBaseLib.c111 UINTN FileOffset; in GetFfsFile() local
122 FileOffset = FwVolHeader->HeaderLength; in GetFfsFile()
130 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in GetFfsFile()
137 FileOffset += sizeof(EFI_FFS_FILE_HEADER); in GetFfsFile()
156 FileOffset += FileOccupiedSize; in GetFfsFile()
163 FileOffset += FileOccupiedSize; in GetFfsFile()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/DxeHobPeCoffLib/
DDxeHobPeCoff.c168 IN UINTN FileOffset, in PeCoffLoaderImageReadFromMemory() argument
175 FileOffset, in PeCoffLoaderImageReadFromMemory()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DPeCoffLib.h73 IN UINTN FileOffset,
333 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/
DFwVol.c176 UINT32 FileOffset; in FindFileEx() local
215 FileOffset = (UINT32) ((UINT8 *)FfsFileHeader - (UINT8 *)FwVolHeader); in FindFileEx()
216 ASSERT (FileOffset <= 0xFFFFFFFF); in FindFileEx()
218 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in FindFileEx()
227 FileOffset += sizeof(EFI_FFS_FILE_HEADER); in FindFileEx()
253 FileOffset += FileOccupiedSize; in FindFileEx()
260 FileOffset += FileOccupiedSize; in FindFileEx()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/
DDxeTpm2MeasureBootLib.c84 IN UINTN FileOffset, in DxeTpm2MeasureBootLibImageRead() argument
95 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeTpm2MeasureBootLibImageRead()
99 EndPosition = FileOffset + *ReadSize; in DxeTpm2MeasureBootLibImageRead()
101 *ReadSize = (UINT32)(mTcg2ImageSize - FileOffset); in DxeTpm2MeasureBootLibImageRead()
104 if (FileOffset >= mTcg2ImageSize) { in DxeTpm2MeasureBootLibImageRead()
108 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeTpm2MeasureBootLibImageRead()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePeCoffLib.h62 IN UINTN FileOffset,
191 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/ArmShellCmdRunAxf/
DArmShellCmdRunAxf.h36 UINTN FileOffset; // Where the data is from, Src member
DBootMonFsLoader.c141 LoadNode->FileOffset = (UINTN)FileData + Info.Region[Index].Offset; in BootMonFsLoadFile()
DRunAxf.c262 CopyMem ((VOID *)LoadNode->MemOffset, (VOID *)LoadNode->FileOffset, in ShellDynCmdRunAxfHandler()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c82 IN UINTN FileOffset, in DxeTpmMeasureBootLibImageRead() argument
93 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeTpmMeasureBootLibImageRead()
97 EndPosition = FileOffset + *ReadSize; in DxeTpmMeasureBootLibImageRead()
99 *ReadSize = (UINT32)(mTpmImageSize - FileOffset); in DxeTpmMeasureBootLibImageRead()
102 if (FileOffset >= mTpmImageSize) { in DxeTpmMeasureBootLibImageRead()
106 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeTpmMeasureBootLibImageRead()
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/Protocol/
DPeCoffLoader.h163 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/
DFWBlockService.c88 UINTN FileOffset; in FlashFdWrite() local
100 FileOffset = 0; in FlashFdWrite()
104 FileOffset = Address - FwhInstance->FvBase[FVB_PHYSICAL] - FwhInstance->Offset; in FlashFdWrite()
109 Status = FileWrite (File, FileOffset, BufferForFile, Length); in FlashFdWrite()
136 UINTN FileOffset; in FlashFdErase() local
149 FileOffset = 0; in FlashFdErase()
153 FileOffset = Address - FwhInstance->FvBase[FVB_PHYSICAL] - FwhInstance->Offset; in FlashFdErase()
158 Status = FileWrite (File, FileOffset, BufferForFile, Length); in FlashFdErase()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c46 IN UINTN FileOffset, in PeiImageRead() argument
55 Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset); in PeiImageRead()
80 IN UINTN FileOffset, in PeiImageReadForShadow() argument
90 Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset); in PeiImageReadForShadow()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/PeiPeCoffLoader/
DPeiPeCoffLoader.h48 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DPeCoffLib.h42 IN UINTN FileOffset,
DBasePeCoff.c435 if (DebugEntry.RVA == 0 && DebugEntry.FileOffset != 0) { in PeCoffLoaderGetImageInfo()
1120 if (DebugEntry->RVA == 0 && DebugEntry->FileOffset != 0) { in PeCoffLoaderLoadImage()
1151 DebugEntry->FileOffset, in PeCoffLoaderLoadImage()
1158 … DebugEntry->FileOffset + sizeof (EFI_TE_IMAGE_HEADER) - TeHdr->StrippedSize, in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/
DFwVol.c272 UINT32 FileOffset; in FindFileEx() local
327 FileOffset = (UINT32) ((UINT8 *)FfsFileHeader - (UINT8 *)FwVolHeader); in FindFileEx()
328 ASSERT (FileOffset <= 0xFFFFFFFF); in FindFileEx()
330 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in FindFileEx()
343 FileOffset += sizeof (EFI_FFS_FILE_HEADER2); in FindFileEx()
346 FileOffset += sizeof (EFI_FFS_FILE_HEADER); in FindFileEx()
365 FileOffset += FileOccupiedSize; in FindFileEx()
413 FileOffset += FileOccupiedSize; in FindFileEx()
428 FileOffset += FileOccupiedSize; in FindFileEx()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/
DBasePeCoff.c355 if (DebugEntry.RVA == 0 && DebugEntry.FileOffset != 0) { in GluePeCoffLoaderGetImageInfo()
1056 if (DebugEntry->RVA == 0 && DebugEntry->FileOffset != 0) { in GluePeCoffLoaderLoadImage()
1087 DebugEntry->FileOffset, in GluePeCoffLoaderLoadImage()
1094 … DebugEntry->FileOffset + sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize, in GluePeCoffLoaderLoadImage()
1349 IN UINTN FileOffset, in PeCoffLoaderImageReadFromMemory() argument
1354 CopyMem (Buffer, ((UINT8 *)FileHandle) + FileOffset, *ReadSize); in PeCoffLoaderImageReadFromMemory()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeCoffLoader.c553 if (DebugEntry.RVA == 0 && DebugEntry.FileOffset != 0) { in PeCoffLoaderGetImageInfo()
1307 if (DebugEntry->RVA == 0 && DebugEntry->FileOffset != 0) { in PeCoffLoaderLoadImage()
1338 DebugEntry->FileOffset, in PeCoffLoaderLoadImage()
1345 … DebugEntry->FileOffset + sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize, in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.h246 IN UINTN FileOffset,
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
DBasePeCoff.c771 if (DebugEntry.RVA == 0 && DebugEntry.FileOffset != 0) { in PeCoffLoaderGetImageInfo()
1496 if (DebugEntry->RVA == 0 && DebugEntry->FileOffset != 0) { in PeCoffLoaderLoadImage()
1516 DebugEntry->FileOffset - TeStrippedOffset, in PeCoffLoaderLoadImage()
1918 IN UINTN FileOffset, in PeCoffLoaderImageReadFromMemory() argument
1927 CopyMem (Buffer, ((UINT8 *)FileHandle) + FileOffset, *ReadSize); in PeCoffLoaderImageReadFromMemory()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c112 IN UINTN FileOffset, in DxeImageVerificationLibImageRead() argument
123 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeImageVerificationLibImageRead()
127 EndPosition = FileOffset + *ReadSize; in DxeImageVerificationLibImageRead()
129 *ReadSize = (UINT32)(mImageSize - FileOffset); in DxeImageVerificationLibImageRead()
132 if (FileOffset >= mImageSize) { in DxeImageVerificationLibImageRead()
136 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeImageVerificationLibImageRead()

12