Home
last modified time | relevance | path

Searched refs:InFptr (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/
DGenTEImage.c241 FILE *InFptr; in ProcessFile() local
255 InFptr = NULL; in ProcessFile()
263 if ((InFptr = fopen (InFileName, "rb")) == NULL) { in ProcessFile()
270 if (CheckPE32File (InFileName, InFptr, &MachineType, &SubSystem) != STATUS_SUCCESS) { in ProcessFile()
281 fseek (InFptr, 0, SEEK_END); in ProcessFile()
282 FileSize = ftell (InFptr); in ProcessFile()
283 fseek (InFptr, 0, SEEK_SET); in ProcessFile()
292 if (fseek (InFptr, 0x3C, SEEK_SET) != 0) { in ProcessFile()
297 if (fread (&PESigOffset, sizeof (PESigOffset), 1, InFptr) != 1) { in ProcessFile()
302 if (fseek (InFptr, PESigOffset + 4, SEEK_SET) != 0) { in ProcessFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/HiiPack/
DHiiPack.c327 FILE *InFptr; in MergeHiiExports() local
352 InFptr = NULL; in MergeHiiExports()
373 if ((InFptr = fopen (HiiExportFiles->FileName, "rb")) == NULL) { in MergeHiiExports()
378 fseek (InFptr, 0, SEEK_END); in MergeHiiExports()
379 FileSize = (int) ftell (InFptr); in MergeHiiExports()
380 fseek (InFptr, 0, SEEK_SET); in MergeHiiExports()
387 if (fread (Buffer, FileSize, 1, InFptr) != 1) { in MergeHiiExports()
392 fclose (InFptr); in MergeHiiExports()
393 InFptr = NULL; in MergeHiiExports()
611 if (InFptr != NULL) { in MergeHiiExports()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/EfiRom/
DEfiRom.c431 FILE *InFptr; in ProcessBinFile() local
447 if ((InFptr = fopen (InFile->FileName, "rb")) == NULL) { in ProcessBinFile()
455 fseek (InFptr, 0, SEEK_END); in ProcessBinFile()
456 FileSize = ftell (InFptr); in ProcessBinFile()
461 fseek (InFptr, 0, SEEK_SET); in ProcessBinFile()
469 if (fread (Buffer, FileSize, 1, InFptr) != 1) { in ProcessBinFile()
569 if (InFptr != NULL) { in ProcessBinFile()
570 fclose (InFptr); in ProcessBinFile()
616 FILE *InFptr; in ProcessEfiFile() local
633 if ((InFptr = fopen (InFile->FileName, "rb")) == NULL) { in ProcessEfiFile()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/
DEfiRom.c225 FILE *InFptr; in ProcessBinFile() local
244 if ((InFptr = fopen (LongFilePath (InFile->FileName), "rb")) == NULL) { in ProcessBinFile()
252 fseek (InFptr, 0, SEEK_END); in ProcessBinFile()
253 FileSize = ftell (InFptr); in ProcessBinFile()
258 fseek (InFptr, 0, SEEK_SET); in ProcessBinFile()
266 if (fread (Buffer, FileSize, 1, InFptr) != 1) { in ProcessBinFile()
391 if (InFptr != NULL) { in ProcessBinFile()
392 fclose (InFptr); in ProcessBinFile()
438 FILE *InFptr; in ProcessEfiFile() local
458 if ((InFptr = fopen (LongFilePath (InFile->FileName), "rb")) == NULL) { in ProcessEfiFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/VfrCompile/
DVfrServices.cpp198 FILE *InFptr; in WriteIfrBytes() local
331 if ((InFptr = fopen (gOptions.PreprocessorOutputFileName, "r")) == NULL) { in WriteIfrBytes()
336 fclose (InFptr); in WriteIfrBytes()
337 InFptr = NULL; in WriteIfrBytes()
360 if (fgets (Line, sizeof (Line), InFptr) != NULL) { in WriteIfrBytes()
395 while (fgets (Line, sizeof (Line), InFptr) != NULL) { in WriteIfrBytes()
398 fclose (InFptr); in WriteIfrBytes()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiHiiPack/
DHiiPack.c500 FILE *InFptr; in LoadPackage() local
514 if ((InFptr = fopen (NameList->FileName, "rb")) == NULL) { in LoadPackage()
522 fseek (InFptr, 0, SEEK_END); in LoadPackage()
523 BufferSize = (UINT32) ftell (InFptr); in LoadPackage()
524 fseek (InFptr, 0, SEEK_SET); in LoadPackage()
531 if (fread (Buffer, sizeof (UINT8), BufferSize, InFptr) != BufferSize) { in LoadPackage()
550 fclose (InFptr); in LoadPackage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiStrGather/
DStrGather.c2494 FILE *InFptr; in PreprocessSourceFile() local
2509 InFptr = fopen (SourceFileName, "r"); in PreprocessSourceFile()
2510 if (InFptr == NULL) { in PreprocessSourceFile()
2557 fclose (InFptr); in PreprocessSourceFile()
2560 while (fgets (Line, MAX_LINE_LEN, InFptr) != NULL) { in PreprocessSourceFile()
2575 fclose (InFptr); in PreprocessSourceFile()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
DGenFw.c114 FILE *InFptr,
3141 FILE *InFptr, in MicrocodeReadData() argument
3165 if (fgets (Line, MAX_LINE_LEN, InFptr) == NULL) { in MicrocodeReadData()