/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Guid/ |
H A D | FileInfo.h | 33 UINT64 FileSize; member in struct:__anon11345
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
H A D | FwVolRead.c | 324 UINTN FileSize; local 371 &FileSize 395 FileSize = FFS_FILE2_SIZE (FfsHeader) - sizeof (EFI_FFS_FILE_HEADER2); 397 FileSize = FFS_FILE_SIZE (FfsHeader) - sizeof (EFI_FFS_FILE_HEADER); 414 *BufferSize = FileSize; 430 while (FileSize >= 4) { 434 FileSize -= 4; 444 FileBuffer = AllocateCopyPool (FileSize, SrcPtr); 449 *BufferSize = FileSize; 458 if (FileSize > *BufferSiz 516 UINTN FileSize; local [all...] |
H A D | FwPadFile.c | 85 UINTN FileSize; local 88 FileSize = Size + HeaderSize; 89 if (FileSize > 0x00FFFFFF) { 91 FileSize = Size + HeaderSize; 94 if (FreeSpaceEntry->Length < FileSize) { 110 FileSize 152 if ((FileSize) > 0x00FFFFFF) { 153 ((EFI_FFS_FILE_HEADER2 *) PadFileHeader)->ExtendedSize = (UINT32) FileSize; 158 *(UINT32 *) PadFileHeader->Size |= FileSize;
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxeSecurityManagementLib/ |
H A D | DxeSecurityManagementLib.c | 206 UINTN FileSize; local 221 FileSize = 0; 235 FileBuffer = GetFileBufferByFilePath (FALSE, FilePath, &FileSize, &AuthenticationStatus); 240 FileBuffer = GetFileBufferByFilePath (TRUE, FilePath, &FileSize, &AuthenticationStatus); 248 FileSize
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenCrc32/ |
H A D | GenCrc32.c | 132 UINT32 FileSize; local 287 FileSize = ftell (InFile); 290 FileBuffer = (UINT8 *) malloc (FileSize); 296 fread (FileBuffer, 1, FileSize, InFile); 298 VerboseMsg ("the size of the input file is %u bytes", (unsigned) FileSize); 313 Status = CalculateCrc32 (FileBuffer, FileSize, &Crc32Value); 323 fwrite (FileBuffer, 1, FileSize, OutFile); 324 VerboseMsg ("the size of the encoded file is %u bytes", (unsigned) FileSize + sizeof (UINT32)); 329 Status = CalculateCrc32 (FileBuffer + sizeof (UINT32), FileSize - sizeof (UINT32), &Crc32Value); 343 fwrite (FileBuffer + sizeof (UINT32), 1, FileSize [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/FwVol/ |
H A D | FwVolRead.c | 279 UINTN FileSize; local 304 &FileSize 330 *BufferSize = FileSize; 353 *Buffer = AllocatePool (FileSize); 357 } else if (FileSize > InputBufferSize) { 362 FileSize = InputBufferSize; 368 CopyMem (*Buffer, SrcPtr, FileSize); 419 UINTN FileSize; local 437 &FileSize, 464 FileSize, [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/Library/NvVarsFileLib/ |
H A D | FsAccess.c | 120 *Size = (UINTN) FileInfo->FileSize; 163 if (FileInfo->FileSize == 0) { 171 FileInfo->FileSize = 0; 233 UINTN FileSize; local 244 NvVarsFileReadCheckup (File, &FileExists, &FileSize); 245 if (FileSize == 0) { 250 FileContents = FileHandleReadToNewBuffer (File, FileSize); 259 FileSize 265 FileSize
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Include/Library/ |
H A D | SecurityManagementLib.h | 54 FileBuffer will be NULL and FileSize will be 0 if the handler being called 63 @param[in] FileSize The size of File buffer matches the input file device path. 84 IN UINTN FileSize
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenVtf/ |
H A D | GenVtf.c | 1143 UINT64 FileSize; local 1162 FileSize = _filelength (fileno (Fp)); 1168 FileSize -= SIZE_OF_PAL_HEADER; 1172 if (FileSize > VtfInfo->CompSize) { 1177 FileSize = VtfInfo->CompSize; 1180 Buffer = malloc ((UINTN) FileSize); 1184 memset (Buffer, 0, (UINTN) FileSize); 1202 fread (Buffer, sizeof (UINT8), (UINTN) FileSize, Fp); 1217 CompStartAddress = (Vtf2LastStartAddress - FileSize); 1219 CompStartAddress = (Vtf1LastStartAddress - FileSize); 1330 UINT64 FileSize; local 1759 UINTN FileSize; local [all...] |
H A D | GenVtf.h | 209 IN UINT64 FileSize 223 FileSize - Size of bin file.
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenFfs/ |
H A D | GenFfs.c | 283 UINT32 FileSize; local 326 FileSize = ftell (InFile); 329 "the input section name is %s and the size is %u bytes", InputFileName[Index], (unsigned) FileSize); 398 if ((FileSize > 0) && (FileBuffer != NULL) && ((Size + FileSize) <= *BufferLength)) { 399 if (fread (FileBuffer + Size, (size_t) FileSize, 1, InFile) != 1) { 407 Size += FileSize; 454 UINT32 FileSize; local 475 FileSize = 0; 770 &FileSize, [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Common/ |
H A D | CommonLib.c | 185 UINT32 FileSize; local 215 FileSize = ftell (InputFile); 216 if (FileSize == -1) { 224 *InputFileImage = malloc (FileSize); 242 *BytesRead = fread (*InputFileImage, sizeof (UINT8), FileSize, InputFile); 243 if (*BytesRead != sizeof (UINT8) * FileSize) {
|
H A D | SimpleFileParsing.c | 61 UINTN FileSize; member in struct:_SOURCE_FILE 699 SourceFile->FileSize = ftell (SourceFile->Fptr); 701 printf ("FileSize = %u (0x%X)\n", (unsigned) SourceFile->FileSize, (unsigned) SourceFile->FileSize); 705 SourceFile->FileBuffer = (CHAR8 *) malloc (SourceFile->FileSize + sizeof (CHAR8 )); 711 fread ((VOID *) SourceFile->FileBuffer, SourceFile->FileSize, 1, SourceFile->Fptr); 712 SourceFile->FileBuffer[(SourceFile->FileSize / sizeof (CHAR8 ))] = T_CHAR_NULL; 822 printf ("FileSize = %u (0x%X)\n", (unsigned)SourceFile->FileSize, (unsigne [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/EfiRom/ |
H A D | EfiRom.c | 232 UINT32 FileSize; local 257 FileSize = ftell (InFptr); 259 VerboseMsg(" File size = 0x%X\n", (unsigned) FileSize); 263 Buffer = (UINT8 *) malloc (FileSize); 270 if (fread (Buffer, FileSize, 1, InFptr) != 1) { 279 TotalSize = FileSize; 307 if ((RomHdr->PcirOffset > FileSize) || (RomHdr->PcirOffset == 0)) { 363 for (Index = 0; Index < FileSize - 1; Index++) { 367 Buffer[FileSize - 1] = (UINT8) ((~ByteCheckSum) + 1); 369 VerboseMsg(" Checksum = %02x\n\n", Buffer[FileSize 442 UINT32 FileSize; local [all...] |
/vbox/src/VBox/Additions/WINNT/SharedFolders/driver/ |
H A D | file.c | 242 LONGLONG FileSize; local 244 RxGetFileSizeWithLock((PFCB)capFcb, &FileSize); 246 Log(("VBOXSF: vbsfReadInternal: AsyncIo = %d, Fcb->FileSize = 0x%RX64\n", 247 AsyncIo, capFcb->Header.FileSize.QuadPart)); 250 Log(("VBOXSF: vbsfReadInternal: ByteCount 0x%X, ByteOffset 0x%RX64, FileSize 0x%RX64\n", 251 ByteCount, ByteOffset, FileSize)); 260 if (ByteOffset >= FileSize) 266 if (ByteCount > FileSize - ByteOffset) 267 ByteCount = (ULONG)(FileSize - ByteOffset); 362 LONGLONG FileSize; local [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/ |
H A D | DxeServicesLib.h | 239 If FileSize is NULL, then NULL is returned. 250 @param[out] FileSize Pointer to the size of the abstracted file buffer. 254 @retval NULL File is NULL, or FileSize is NULL, or the file can't be found. 262 OUT UINTN *FileSize,
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenPage/ |
H A D | GenPage.c | 238 unsigned long FileSize; local 260 FileSize = ftell (NoPageFile); 262 if (FileSize > gPageTableOffsetInFile) { 263 Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Input file size (0x%lx) exceeds the Page Table Offset (0x%x)", FileSize, (unsigned) gPageTableOffsetInFile);
|
/vbox/src/VBox/Devices/EFI/Firmware/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
H A D | SecureBootConfigMisc.c | 19 is *FileSize plus AddtionAllocateSize. 23 @param[out] FileSize Size of input file 37 OUT UINTN *FileSize, 47 if ((FileHandle == NULL) || (FileSize == NULL)) { 78 *FileSize = BufferSize; 81 if (EFI_ERROR (Status) || BufferSize != *FileSize) { 34 ReadFileContent( IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AddtionAllocateSize ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/Include/sys/ |
H A D | dirent.h | 71 UINT64 FileSize; // The size of the file in bytes. member in struct:dirent
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
H A D | UefiShellDebug1CommandsLib.c | 551 UINTN FileSize; local 558 FileSize = 0; 594 FileSize = (UINTN) Info->FileSize; 630 InternalBuffer = AllocateZeroPool (FileSize); 637 Status = ShellReadFile (FileHandle, &FileSize, InternalBuffer); 647 *BufferSize = FileSize;
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
H A D | Ls.c | 51 UINT64 FileSize; local 62 FileSize = 0; 254 Node->Info->FileSize, 294 Node->Info->FileSize 308 FileSize += Node->Info->FileSize; 345 FileSize,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/DxeServicesLib/ |
H A D | DxeServicesLib.c | 582 If FileSize is NULL, then NULL is returned. 593 @param[out] FileSize The pointer to the size of the abstracted 598 @retval NULL File is NULL, or FileSize is NULL. Or, the file can't be found. 606 OUT UINTN *FileSize, 633 if (FilePath == NULL || FileSize == NULL || AuthenticationStatus == NULL) { 803 ImageBuffer = AllocatePool ((UINTN)FileInfo->FileSize); 810 ImageBufferSize = (UINTN)FileInfo->FileSize; 920 *FileSize = 0; 922 *FileSize = ImageBufferSize; 603 GetFileBufferByFilePath( IN BOOLEAN BootPolicy, IN CONST EFI_DEVICE_PATH_PROTOCOL *FilePath, OUT UINTN *FileSize, OUT UINT32 *AuthenticationStatus ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenFv/ |
H A D | GenFvInternalLib.c | 949 UINTN FileSize; local 978 FileSize = _filelength (fileno (NewFile)); 983 FileBuffer = malloc (FileSize); 989 NumBytesRead = fread (FileBuffer, sizeof (UINT8), FileSize, NewFile); 999 if (NumBytesRead != sizeof (UINT8) * FileSize) { 1009 memcpy (FvImage->CurrentFilePointer, FileBuffer, FileSize); 1010 if (FvInfo->SizeofFvFiles[Index] > FileSize) { 1013 FvImage->CurrentFilePointer += FileSize; 1031 if (FileSize > (UINTN) ((UINTN) *VtfFileImage - (UINTN) FvImage->CurrentFilePointer)) { 1076 *VtfFileImage = (EFI_FFS_FILE_HEADER *) (UINTN) ((UINTN) FvImage->FileImage + FvInfo->Size - FileSize); 1191 UINTN FileSize; local 2003 UINTN FileSize; local 3590 UINT32 FileSize; local [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/ |
H A D | FileBuffer.c | 788 UINTN FileSize; local 797 FileSize = 0; 840 FileSize = (UINTN) Info->FileSize; 902 Buffer = AllocateZeroPool (FileSize); 909 Status = ShellReadFile (FileHandle, &FileSize, Buffer); 920 if (FileSize == 0) { 932 if (FileSize < 2) { 945 if ((FileSize % 2) != 0) { 951 FileSize / [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pxe/ |
H A D | pxe_tftp.c | 502 * @ret s_PXENV_TFTP_GET_FSIZE::FileSize File size 552 tftp_get_fsize->FileSize = pxe_tftp.max_offset; 553 DBG ( " fsize=%d", tftp_get_fsize->FileSize );
|