Searched refs:InputFileLength (Results 1 – 3 of 3) sorted by relevance
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenSection/ |
D | GenSection.c | 199 UINT64 InputFileLength; in GenSectionCommonLeafSection() local 228 fgetpos (InFile, &InputFileLength); in GenSectionCommonLeafSection() 234 TotalLength = sizeof (CommonSect) + (INTN) InputFileLength; in GenSectionCommonLeafSection() 251 if (InputFileLength != 0) { in GenSectionCommonLeafSection() 252 Buffer = (UINT8 *) malloc ((size_t) InputFileLength); in GenSectionCommonLeafSection() 258 if (fread (Buffer, (size_t) InputFileLength, 1, InFile) != 1) { in GenSectionCommonLeafSection() 263 if (fwrite (Buffer, (size_t) InputFileLength, 1, OutFile) != 1) { in GenSectionCommonLeafSection()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenSec/ |
D | GenSec.c | 261 UINT32 InputFileLength; in GenSectionCommonLeafSection() local 291 InputFileLength = ftell (InFile); in GenSectionCommonLeafSection() 293 … file", "File name is %s and File size is %u bytes", InputFileName[0], (unsigned) InputFileLength); in GenSectionCommonLeafSection() 294 TotalLength = sizeof (EFI_COMMON_SECTION_HEADER) + InputFileLength; in GenSectionCommonLeafSection() 304 TotalLength = sizeof (EFI_COMMON_SECTION_HEADER2) + InputFileLength; in GenSectionCommonLeafSection() 330 if (InputFileLength != 0) { in GenSectionCommonLeafSection() 331 if (fread (Buffer + HeaderLength, (size_t) InputFileLength, 1, InFile) != 1) { in GenSectionCommonLeafSection()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
D | GenFw.c | 1080 UINT32 InputFileLength; in main() local 1145 InputFileLength = 0; in main() 1608 InputFileLength = _filelength (fileno (fpIn)); in main() 1609 InputFileBuffer = malloc (InputFileLength); in main() 1615 fread (InputFileBuffer, 1, InputFileLength, fpIn); in main() 1617 …Msg (NULL, 0, 9, "input file info", "the input file size is %u bytes", (unsigned) InputFileLength); in main() 1916 FileLength = InputFileLength; in main() 1922 memcpy (FileBuffer, InputFileBuffer, InputFileLength); in main() 2648 … if ((FileLength != InputFileLength) || (memcmp (FileBuffer, InputFileBuffer, FileLength) != 0)) { in main() 2682 fwrite (InputFileBuffer, 1, InputFileLength, fpInOut); in main()
|