Home
last modified time | relevance | path

Searched refs:ReadSize (Results 1 – 25 of 31) sorted by relevance

12

/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
DBasePeCoff.c103 UINTN ReadSize; in PeCoffLoaderGetPeHeader() local
116 ReadSize = Size; in PeCoffLoaderGetPeHeader()
123 if (RETURN_ERROR (Status) || (Size != ReadSize)) { in PeCoffLoaderGetPeHeader()
125 if (Size != ReadSize) { in PeCoffLoaderGetPeHeader()
147 ReadSize = Size; in PeCoffLoaderGetPeHeader()
154 if (RETURN_ERROR (Status) || (Size != ReadSize)) { in PeCoffLoaderGetPeHeader()
156 if (Size != ReadSize) { in PeCoffLoaderGetPeHeader()
197 ReadSize = Size; in PeCoffLoaderGetPeHeader()
204 if (RETURN_ERROR (Status) || (Size != ReadSize)) { in PeCoffLoaderGetPeHeader()
206 if (Size != ReadSize) { in PeCoffLoaderGetPeHeader()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/
DType.c40 UINTN ReadSize; in TypeFileByHandle() local
49 ReadSize = PcdGet32(PcdShellFileOperationSize); in TypeFileByHandle()
50 AllocatedBuffer = AllocateZeroPool(ReadSize); in TypeFileByHandle()
58 while (ReadSize == ((UINTN)PcdGet32(PcdShellFileOperationSize))) { in TypeFileByHandle()
60 ZeroMem(Buffer, ReadSize); in TypeFileByHandle()
61 Status = ShellReadFile(Handle, &ReadSize, Buffer); in TypeFileByHandle()
75 LoopSize = ReadSize; in TypeFileByHandle()
114 LoopSize = (ReadSize / (sizeof (CHAR16))) - 1; in TypeFileByHandle()
116 LoopSize = ReadSize / (sizeof (CHAR16)); in TypeFileByHandle()
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DDir.c75 UINTN ReadSize; in EblDirCmd() local
244 ReadSize = 0; in EblDirCmd()
245 Status = File->FsFileHandle->Read (File->FsFileHandle, &ReadSize, DirInfo); in EblDirCmd()
248 DirInfo = AllocatePool (ReadSize); in EblDirCmd()
254 Status = File->FsFileHandle->Read (File->FsFileHandle, &ReadSize, DirInfo); in EblDirCmd()
255 if ((EFI_ERROR (Status)) || (ReadSize == 0)) { in EblDirCmd()
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/
DFsAccess.c193 IN UINTN ReadSize in FileHandleReadToNewBuffer() argument
200 ActualReadSize = ReadSize; in FileHandleReadToNewBuffer()
201 FileContents = AllocatePool (ReadSize); in FileHandleReadToNewBuffer()
205 &ReadSize, in FileHandleReadToNewBuffer()
208 if (EFI_ERROR (Status) || (ActualReadSize != ReadSize)) { in FileHandleReadToNewBuffer()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/
DDxeTpm2MeasureBootLib.c85 IN OUT UINTN *ReadSize, in DxeTpm2MeasureBootLibImageRead() argument
91 if (FileHandle == NULL || ReadSize == NULL || Buffer == NULL) { in DxeTpm2MeasureBootLibImageRead()
95 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeTpm2MeasureBootLibImageRead()
99 EndPosition = FileOffset + *ReadSize; in DxeTpm2MeasureBootLibImageRead()
101 *ReadSize = (UINT32)(mTcg2ImageSize - FileOffset); in DxeTpm2MeasureBootLibImageRead()
105 *ReadSize = 0; in DxeTpm2MeasureBootLibImageRead()
108 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeTpm2MeasureBootLibImageRead()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/DxeHobPeCoffLib/
DDxeHobPeCoff.c169 IN OUT UINTN *ReadSize, in PeCoffLoaderImageReadFromMemory() argument
176 ReadSize, in PeCoffLoaderImageReadFromMemory()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DPeCoffLib.h74 IN OUT UINTN *ReadSize,
334 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePeCoffLib.h63 IN OUT UINTN *ReadSize,
192 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c83 IN OUT UINTN *ReadSize, in DxeTpmMeasureBootLibImageRead() argument
89 if (FileHandle == NULL || ReadSize == NULL || Buffer == NULL) { in DxeTpmMeasureBootLibImageRead()
93 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeTpmMeasureBootLibImageRead()
97 EndPosition = FileOffset + *ReadSize; in DxeTpmMeasureBootLibImageRead()
99 *ReadSize = (UINT32)(mTpmImageSize - FileOffset); in DxeTpmMeasureBootLibImageRead()
103 *ReadSize = 0; in DxeTpmMeasureBootLibImageRead()
106 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeTpmMeasureBootLibImageRead()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
DCp.c71 UINTN ReadSize; in CopySingleFile() local
95 ReadSize = PcdGet32(PcdShellFileOperationSize); in CopySingleFile()
231 Buffer = AllocateZeroPool(ReadSize); in CopySingleFile()
233 while (ReadSize == PcdGet32(PcdShellFileOperationSize) && !EFI_ERROR(Status)) { in CopySingleFile()
234 Status = ShellReadFile(SourceHandle, &ReadSize, Buffer); in CopySingleFile()
236 Status = ShellWriteFile(DestHandle, &ReadSize, Buffer); in CopySingleFile()
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/Protocol/
DPeCoffLoader.h164 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/
DVfrFormPkg.cpp382 UINT32 ReadSize = 0; in GenCFile() local
404 while ((ReadSize = Read ((CHAR8 *)Buffer, BYTES_PRE_LINE * 8)) != 0) { in GenCFile()
405 PkgLength += ReadSize; in GenCFile()
407 _WRITE_PKG_LINE (pFile, BYTES_PRE_LINE, " ", Buffer, ReadSize); in GenCFile()
409 _WRITE_PKG_END (pFile, BYTES_PRE_LINE, " ", Buffer, ReadSize); in GenCFile()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c47 IN UINTN *ReadSize, in PeiImageRead() argument
57 CopyMem (Destination8, Source8, *ReadSize); in PeiImageRead()
81 IN UINTN *ReadSize, in PeiImageReadForShadow() argument
92 Length = *ReadSize; in PeiImageReadForShadow()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/PeiPeCoffLoader/
DPeiPeCoffLoader.h49 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DPeCoffLib.h43 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Application/FirmwareUpdate/
DFirmwareUpdate.c641 UINTN ReadSize;
665 ReadSize = (UINTN) Size;
666 Status = FileHandleRead (FileHandle, &ReadSize, NewBuffer);
669 } else if (ReadSize != (UINTN) Size) {
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c228 IN OUT UINTN *ReadSize, in CoreReadImageFile() argument
235 if (UserHandle == NULL || ReadSize == NULL || Buffer == NULL) { in CoreReadImageFile()
239 if (MAX_ADDRESS - Offset < *ReadSize) { in CoreReadImageFile()
249 EndPosition = Offset + *ReadSize; in CoreReadImageFile()
251 *ReadSize = (UINT32)(FHand->SourceSize - Offset); in CoreReadImageFile()
254 *ReadSize = 0; in CoreReadImageFile()
257 CopyMem (Buffer, (CHAR8 *)FHand->Source + Offset, *ReadSize); in CoreReadImageFile()
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DPeLoader.c37 IN OUT UINTN ReadSize,
540 IN OUT UINTN ReadSize, in EfiLdrPeCoffImageRead() argument
544 CopyMem (Buffer, (VOID *)((UINTN)FHand + Offset), ReadSize); in EfiLdrPeCoffImageRead()
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcDhcp6.c676 UINTN ReadSize; in PxeBcRequestBootService() local
784 ReadSize = (UINTN) Reply->Size; in PxeBcRequestBootService()
803 &ReadSize, in PxeBcRequestBootService()
818 Reply->Length = (UINT32) ReadSize; in PxeBcRequestBootService()
1812 UINTN ReadSize; in PxeBcDhcp6Discover() local
1891 ReadSize = (UINTN) Reply->Size; in PxeBcDhcp6Discover()
1910 &ReadSize, in PxeBcDhcp6Discover()
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/
DSecMain.h480 IN OUT UINTN *ReadSize,
DSecMain.c878 IN OUT UINTN *ReadSize, in SecImageRead() argument
903 Length = *ReadSize; in SecImageRead()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c113 IN OUT UINTN *ReadSize, in DxeImageVerificationLibImageRead() argument
119 if (FileHandle == NULL || ReadSize == NULL || Buffer == NULL) { in DxeImageVerificationLibImageRead()
123 if (MAX_ADDRESS - FileOffset < *ReadSize) { in DxeImageVerificationLibImageRead()
127 EndPosition = FileOffset + *ReadSize; in DxeImageVerificationLibImageRead()
129 *ReadSize = (UINT32)(mImageSize - FileOffset); in DxeImageVerificationLibImageRead()
133 *ReadSize = 0; in DxeImageVerificationLibImageRead()
136 CopyMem (Buffer, (UINT8 *)((UINTN) FileHandle + FileOffset), *ReadSize); in DxeImageVerificationLibImageRead()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.h247 IN OUT UINTN *ReadSize,
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/
DVfrFormPkg.cpp434 UINT32 ReadSize = 0; in GenCFile() local
470 while ((ReadSize = Read ((CHAR8 *)Buffer, BYTES_PRE_LINE * 8)) != 0) { in GenCFile()
471 PkgLength += ReadSize; in GenCFile()
473 _WRITE_PKG_LINE (pFile, BYTES_PRE_LINE, " ", Buffer, ReadSize); in GenCFile()
475 _WRITE_PKG_END (pFile, BYTES_PRE_LINE, " ", Buffer, ReadSize); in GenCFile()
/device/linaro/bootloader/edk2/ShellPkg/Include/Protocol/
DEfiShell.h807 IN OUT UINTN *ReadSize,

12