Home
last modified time | relevance | path

Searched refs:Fptr (Results 1 – 15 of 15) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/
DGuidChk.c298 FILE *Fptr,
879 FILE *Fptr; in ProcessPkgFileGuids() local
886 if ((Fptr = fopen (FileName, "r")) == NULL) { in ProcessPkgFileGuids()
893 while (fgets (Line, sizeof (Line), Fptr) != NULL) { in ProcessPkgFileGuids()
928 fclose (Fptr); in ProcessPkgFileGuids()
944 FILE *Fptr; in ProcessIA32FileGuids() local
953 if ((Fptr = fopen (FileName, "r")) == NULL) { in ProcessIA32FileGuids()
960 while (fgets (Line, sizeof (Line), Fptr) != NULL) { in ProcessIA32FileGuids()
1040 fclose (Fptr); in ProcessIA32FileGuids()
1186 FILE *Fptr; in ProcessINFFileGuids() local
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/MakeDeps/
DMakeDeps.c369 FILE *Fptr; in ProcessFile() local
385 Fptr = NULL; in ProcessFile()
415 if ((Fptr = fopen (SumDepsFile, "r")) != NULL) { in ProcessFile()
417 fclose (Fptr); in ProcessFile()
439 if ((Fptr = fopen (FileNameCopy, "r")) == NULL) { in ProcessFile()
447 Fptr = FindFile (FileNameCopy, sizeof (FileNameCopy), FileSearchType); in ProcessFile()
448 if (Fptr == NULL) { in ProcessFile()
495 fclose (Fptr); in ProcessFile()
530 while ((fgets (Line, sizeof (Line), Fptr) != NULL) && (Status == STATUS_SUCCESS)) { in ProcessFile()
713 if (Fptr != NULL) { in ProcessFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/StrGather/
DStringDB.c382 FILE *Fptr; in StringDBDumpCStrings() local
400 if ((Fptr = fopen (FileName, "w")) == NULL) { in StringDBDumpCStrings()
412 StringDBWriteStandardFileHeader (Fptr); in StringDBDumpCStrings()
413 fprintf (Fptr, "\nunsigned char %s[] = {\n", BaseName); in StringDBDumpCStrings()
461 Fptr, in StringDBDumpCStrings()
544 fprintf (Fptr, "\n "); in StringDBDumpCStrings()
547 fprintf (Fptr, "0x%02X, ", (UINT32) *Ptr); in StringDBDumpCStrings()
550 fprintf (Fptr, "\n // offset 0x%X\n", sizeof (StringPack)); in StringDBDumpCStrings()
564 fprintf (Fptr, " "); in StringDBDumpCStrings()
567 fprintf (Fptr, "0x%02X, ", (UINT32) Ptr[TempIndex]); in StringDBDumpCStrings()
[all …]
DStrGather.c55 FILE *Fptr; member
481 if ((SourceFile->Fptr = fopen (FoundFileName, "rb")) == NULL) { in ProcessIncludeFile()
492 SourceFile->Fptr = FindFile (SourceFile->FileName, FoundFileName, sizeof (FoundFileName)); in ProcessIncludeFile()
493 if (SourceFile->Fptr == NULL) { in ProcessIncludeFile()
521 if (SourceFile->Fptr != NULL) { in ProcessIncludeFile()
522 fclose (SourceFile->Fptr); in ProcessIncludeFile()
538 fseek (SourceFile->Fptr, 0, SEEK_END); in ProcessFile()
539 SourceFile->FileSize = ftell (SourceFile->Fptr); in ProcessFile()
540 fseek (SourceFile->Fptr, 0, SEEK_SET); in ProcessFile()
547 fread ((VOID *) SourceFile->FileBuffer, SourceFile->FileSize, 1, SourceFile->Fptr); in ProcessFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/
DGenTEImage.c105 FILE *Fptr,
528 FILE *Fptr, in CheckPE32File() argument
580 fseek (Fptr, 0, SEEK_SET); in CheckPE32File()
584 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
598 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
599 if (fread (&PESig, sizeof (PESig), 1, Fptr) != 1) { in CheckPE32File()
613 if (fread (&FileHdr, sizeof (FileHdr), 1, Fptr) != 1) { in CheckPE32File()
620 if (fread (&OptionalHdr, sizeof (OptionalHdr), 1, Fptr) != 1) { in CheckPE32File()
634 fseek (Fptr, 0, SEEK_SET); in CheckPE32File()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiStrGather/
DStrGather.c64 FILE *Fptr; member
508 if ((SourceFile->Fptr = fopen (FoundFileName, "rb")) == NULL) { in ProcessIncludeFile()
519 SourceFile->Fptr = FindFile (SourceFile->FileName, FoundFileName, sizeof (FoundFileName)); in ProcessIncludeFile()
520 if (SourceFile->Fptr == NULL) { in ProcessIncludeFile()
548 if (SourceFile->Fptr != NULL) { in ProcessIncludeFile()
549 fclose (SourceFile->Fptr); in ProcessIncludeFile()
565 fseek (SourceFile->Fptr, 0, SEEK_END); in ProcessFile()
566 SourceFile->FileSize = ftell (SourceFile->Fptr); in ProcessFile()
567 fseek (SourceFile->Fptr, 0, SEEK_SET); in ProcessFile()
574 fread ((VOID *) SourceFile->FileBuffer, SourceFile->FileSize, 1, SourceFile->Fptr); in ProcessFile()
[all …]
DStringDB.c269 FILE *Fptr; in StringDBDumpStringDefines() local
279 if ((Fptr = fopen (FileName, "w")) == NULL) { in StringDBDumpStringDefines()
305 StringDBWriteStandardFileHeader (Fptr); in StringDBDumpStringDefines()
307 fprintf (Fptr, StrDefHeader[Index], CopyBaseName); in StringDBDumpStringDefines()
317 fprintf (Fptr, "// "); in StringDBDumpStringDefines()
321 fprintf (Fptr, "#define %-40S 0x%04X\n", Identifier->StringName, Identifier->Index); in StringDBDumpStringDefines()
323 …fprintf (Fptr, "//#define %-40S 0x%04X // not referenced\n", Identifier->StringName, Identifier->I… in StringDBDumpStringDefines()
329 fprintf (Fptr, "\n#endif\n"); in StringDBDumpStringDefines()
330 fclose (Fptr); in StringDBDumpStringDefines()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
DSimpleFileParsing.c59 FILE *Fptr; member
666 if ((SourceFile->Fptr = fopen (FoundFileName, "rb")) == NULL) { in ProcessIncludeFile()
677 if (SourceFile->Fptr != NULL) { in ProcessIncludeFile()
678 fclose (SourceFile->Fptr); in ProcessIncludeFile()
679 SourceFile->Fptr = NULL; in ProcessIncludeFile()
711 fseek (SourceFile->Fptr, 0, SEEK_END); in ProcessFile()
712 SourceFile->FileSize = ftell (SourceFile->Fptr); in ProcessFile()
717 fseek (SourceFile->Fptr, 0, SEEK_SET); in ProcessFile()
724 fread ((void *) SourceFile->FileBuffer, SourceFile->FileSize, 1, SourceFile->Fptr); in ProcessFile()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DSimpleFileParsing.c52 FILE *Fptr; member
647 if ((SourceFile->Fptr = fopen (LongFilePath (FoundFileName), "rb")) == NULL) { in ProcessIncludeFile()
658 if (SourceFile->Fptr != NULL) { in ProcessIncludeFile()
659 fclose (SourceFile->Fptr); in ProcessIncludeFile()
660 SourceFile->Fptr = NULL; in ProcessIncludeFile()
692 fseek (SourceFile->Fptr, 0, SEEK_END); in ProcessFile()
693 SourceFile->FileSize = ftell (SourceFile->Fptr); in ProcessFile()
698 fseek (SourceFile->Fptr, 0, SEEK_SET); in ProcessFile()
705 fread ((VOID *) SourceFile->FileBuffer, SourceFile->FileSize, 1, SourceFile->Fptr); in ProcessFile()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/
DGenFfsFile.c2957 FILE *Fptr; in ReplaceMacros() local
2969 if ((Fptr = fopen (InputFile, "r")) == NULL) { in ReplaceMacros()
2973 fseek (Fptr, 0, SEEK_END); in ReplaceMacros()
2974 FileSize = ftell (Fptr); in ReplaceMacros()
2975 fseek (Fptr, 0, SEEK_SET); in ReplaceMacros()
2978 fclose (Fptr); in ReplaceMacros()
2982 fread (FileBuffer, FileSize, 1, Fptr); in ReplaceMacros()
2984 fclose (Fptr); in ReplaceMacros()
2989 Fptr = NULL; in ReplaceMacros()
3003 if (Fptr == NULL) { in ReplaceMacros()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/EfiRom/
DEfiRom.c170 FILE *Fptr,
877 FILE *Fptr, in CheckPE32File() argument
926 fseek (Fptr, 0, SEEK_SET); in CheckPE32File()
931 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
945 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
946 if (fread (&PESig, sizeof (PESig), 1, Fptr) != 1) { in CheckPE32File()
960 if (fread (&FileHdr, sizeof (FileHdr), 1, Fptr) != 1) { in CheckPE32File()
970 if (fread (&OptionalHdr, sizeof (OptionalHdr), 1, Fptr) != 1) { in CheckPE32File()
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/
DEfiRom.h214 FILE *Fptr,
DEfiRom.c764 FILE *Fptr, in CheckPE32File() argument
794 fseek (Fptr, 0, SEEK_SET); in CheckPE32File()
799 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
813 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
818 if (fread (&PeHdr, sizeof (PeHdr), 1, Fptr) != 1) { in CheckPE32File()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c2243 FILE *Fptr; in ParseGuidBaseNameFile() local
2249 if ((Fptr = fopen (LongFilePath (FileName), "r")) == NULL) { in ParseGuidBaseNameFile()
2267 fclose (Fptr); in ParseGuidBaseNameFile()
2279 while (fgets (Line, sizeof (Line), Fptr) != NULL) { in ParseGuidBaseNameFile()
2286 fclose (Fptr); in ParseGuidBaseNameFile()
2303 fclose (Fptr); in ParseGuidBaseNameFile()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/
DProcessDsc.c3782 FILE *Fptr; in ParseGuidDatabaseFile() local
3787 Fptr = fopen (FileName, "r"); in ParseGuidDatabaseFile()
3788 if (Fptr == NULL) { in ParseGuidDatabaseFile()
3793 while (fgets (Line, sizeof (Line), Fptr) != NULL) { in ParseGuidDatabaseFile()
3803 fclose (Fptr); in ParseGuidDatabaseFile()
4715 FILE *Fptr; in SmartOpen() local
4731 if ((Fptr = fopen (FileName, "r")) != NULL) { in SmartOpen()
4732 fseek (Fptr, 0, SEEK_END); in SmartOpen()
4733 FileSize = ftell (Fptr); in SmartOpen()
4734 fseek (Fptr, 0, SEEK_SET); in SmartOpen()
[all …]