/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/ |
D | ParseInf.c | 29 IN MEMORY_FILE *InputFile, in ReadLine() argument 65 assert (InputFile->FileImage); in ReadLine() 66 assert (InputFile->Eof); in ReadLine() 67 assert (InputFile->CurrentFilePointer); in ReadLine() 72 if (InputFile->CurrentFilePointer >= InputFile->Eof) { in ReadLine() 78 EndOfLine = strchr (InputFile->CurrentFilePointer, '\n'); in ReadLine() 87 CharsToCopy = InputFile->Eof - InputFile->CurrentFilePointer; in ReadLine() 88 } else if (EndOfLine >= InputFile->Eof) { in ReadLine() 92 CharsToCopy = InputFile->Eof - InputFile->CurrentFilePointer; in ReadLine() 97 CharsToCopy = EndOfLine - InputFile->CurrentFilePointer; in ReadLine() [all …]
|
D | CommonLib.c | 183 FILE *InputFile; in GetFileImage() local 198 InputFile = fopen (InputFileName, "rb"); in GetFileImage() 199 if (InputFile == NULL) { in GetFileImage() 206 if (fseek (InputFile, 0, SEEK_END)) { in GetFileImage() 208 fclose (InputFile); in GetFileImage() 214 FileSize = ftell (InputFile); in GetFileImage() 217 fclose (InputFile); in GetFileImage() 225 fclose (InputFile); in GetFileImage() 231 if (fseek (InputFile, 0, SEEK_SET)) { in GetFileImage() 233 fclose (InputFile); in GetFileImage() [all …]
|
D | ParseInf.h | 43 IN MEMORY_FILE *InputFile, 73 IN MEMORY_FILE *InputFile, 97 IN MEMORY_FILE *InputFile, 130 IN MEMORY_FILE *InputFile, 217 IN FILE *InputFile, 240 IN FILE *InputFile,
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | ParseInf.c | 25 IN MEMORY_FILE *InputFile, in ReadLine() argument 61 assert (InputFile->FileImage); in ReadLine() 62 assert (InputFile->Eof); in ReadLine() 63 assert (InputFile->CurrentFilePointer); in ReadLine() 68 if (InputFile->CurrentFilePointer >= InputFile->Eof) { in ReadLine() 74 EndOfLine = strchr (InputFile->CurrentFilePointer, '\n'); in ReadLine() 83 CharsToCopy = InputFile->Eof - InputFile->CurrentFilePointer; in ReadLine() 84 } else if (EndOfLine >= InputFile->Eof) { in ReadLine() 88 CharsToCopy = InputFile->Eof - InputFile->CurrentFilePointer; in ReadLine() 93 CharsToCopy = EndOfLine - InputFile->CurrentFilePointer; in ReadLine() [all …]
|
D | MemoryFile.c | 155 MEMORY_FILE *InputFile; in ReadMemoryFileLine() local 164 InputFile = (MEMORY_FILE*)InputMemoryFile; in ReadMemoryFileLine() 169 if (InputFile->CurrentFilePointer >= InputFile->Eof) { in ReadMemoryFileLine() 176 BytesToEof = InputFile->Eof - InputFile->CurrentFilePointer; in ReadMemoryFileLine() 181 EndOfLine = memchr (InputFile->CurrentFilePointer, '\n', BytesToEof); in ReadMemoryFileLine() 190 CharsToCopy = InputFile->Eof - InputFile->CurrentFilePointer; in ReadMemoryFileLine() 195 CharsToCopy = EndOfLine - InputFile->CurrentFilePointer; in ReadMemoryFileLine() 206 memcpy (OutputString, InputFile->CurrentFilePointer, CharsToCopy); in ReadMemoryFileLine() 224 InputFile->CurrentFilePointer += CharsToCopy + 1; in ReadMemoryFileLine() 225 if (InputFile->CurrentFilePointer > InputFile->Eof) { in ReadMemoryFileLine() [all …]
|
D | ParseInf.h | 31 IN MEMORY_FILE *InputFile, 62 IN MEMORY_FILE *InputFile, 87 IN MEMORY_FILE *InputFile, 174 IN FILE *InputFile, 198 IN FILE *InputFile,
|
D | CommonLib.c | 182 FILE *InputFile; in GetFileImage() local 197 InputFile = fopen (LongFilePath (InputFileName), "rb"); in GetFileImage() 198 if (InputFile == NULL) { in GetFileImage() 205 if (fseek (InputFile, 0, SEEK_END)) { in GetFileImage() 207 fclose (InputFile); in GetFileImage() 213 FileSize = ftell (InputFile); in GetFileImage() 216 fclose (InputFile); in GetFileImage() 224 fclose (InputFile); in GetFileImage() 230 if (fseek (InputFile, 0, SEEK_SET)) { in GetFileImage() 232 fclose (InputFile); in GetFileImage() [all …]
|
D | ParseGuidedSectionTools.c | 44 IN CHAR8 *InputFile in ParseGuidedSectionToolsFile() argument 71 Status = GetMemoryFile (InputFile, &MemoryFile); in ParseGuidedSectionToolsFile() 86 IN EFI_HANDLE InputFile in ParseGuidedSectionToolsMemoryFile() argument 121 NextLine = ReadMemoryFileLine (InputFile); in ParseGuidedSectionToolsMemoryFile()
|
D | ParseGuidedSectionTools.h | 26 IN CHAR8 *InputFile 53 IN EFI_HANDLE InputFile
|
D | OsPath.c | 290 FILE *InputFile; in OsPathExists() local 291 InputFile = fopen (LongFilePath (InputFileName), "rb"); in OsPathExists() 292 if (InputFile == NULL) { in OsPathExists() 295 fclose (InputFile); in OsPathExists()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/ |
D | GenCRC32Section.c | 171 FILE *InputFile; in ReadFilesContentsIntoBuffer() local 176 InputFile = NULL; in ReadFilesContentsIntoBuffer() 186 InputFile = fopen (FileName, "rb"); in ReadFilesContentsIntoBuffer() 187 if (InputFile == NULL) { in ReadFilesContentsIntoBuffer() 192 fread (&Temp, sizeof (UINT8), 1, InputFile); in ReadFilesContentsIntoBuffer() 193 while (!feof (InputFile)) { in ReadFilesContentsIntoBuffer() 195 fread (&Temp, sizeof (UINT8), 1, InputFile); in ReadFilesContentsIntoBuffer() 198 fclose (InputFile); in ReadFilesContentsIntoBuffer() 199 InputFile = NULL; in ReadFilesContentsIntoBuffer()
|
/device/linaro/bootloader/edk2/BaseTools/Conf/ |
D | build_rule.template | 19 # <InputFile[.<ToolChainFamily>]> <EOL> 33 # Missing <InputFile> will cause an exception and break build. 115 <InputFile> 141 <InputFile> 165 <InputFile> 178 <InputFile> 187 <InputFile.MSFT, InputFile.INTEL, InputFile.RVCT> 190 <InputFile.GCC, InputFile.GCCLD> 211 <InputFile> 226 <InputFile> [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/ |
D | DepexSection.py | 114 InputFile = os.path.join (OutputPath, ModuleName + 'SEC' + SecNum + '.depex') 115 InputFile = os.path.normpath(InputFile) 117 Depex.Generate(InputFile) 122 …GenFdsGlobalVariable.GenerateSection(OutputFile, [InputFile], Section.Section.SectionType.get (Sec…
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/PatchPcdValue/ |
D | PatchPcdValue.py | 243 InputFile = Args[len(Args) - 1] 244 return Options, InputFile 261 CommandOptions, InputFile = Options() 266 if not os.path.exists (InputFile): 267 EdkLogger.error("PatchPcdValue", FILE_NOT_FOUND, ExtraData=InputFile) 281 …ReturnValue, ErrorInfo = PatchBinaryFile (InputFile, CommandOptions.PcdOffset, CommandOptions.PcdT…
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Trim/ |
D | Trim.py | 577 InputFile = Args[0] 578 return Options, InputFile 592 CommandOptions, InputFile = Options() 603 CommandOptions.OutputFile = os.path.splitext(InputFile)[0] + '.iii' 604 TrimPreprocessedVfr(InputFile, CommandOptions.OutputFile) 607 CommandOptions.OutputFile = os.path.splitext(InputFile)[0] + '.iii' 608 TrimAslFile(InputFile, CommandOptions.OutputFile, CommandOptions.IncludePathFile) 610 TrimEdkSources(InputFile, CommandOptions.OutputFile) 613 CommandOptions.OutputFile = os.path.splitext(InputFile)[0] + '.iii' 614 …TrimPreprocessedFile(InputFile, CommandOptions.OutputFile, CommandOptions.ConvertHex, CommandOptio… [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GnuGenBootSector/ |
D | GnuGenBootSector.c | 204 FILE *InputFile; in ProcessBsOrMbr() local 208 InputFile = fopen (LongFilePath (InputInfo->PhysicalPath), "r"); in ProcessBsOrMbr() 209 if (InputFile == NULL) { in ProcessBsOrMbr() 213 if (0x200 != fread(FirstSector, 1, 0x200, InputFile)) { in ProcessBsOrMbr() 214 fclose(InputFile); in ProcessBsOrMbr() 218 fclose(InputFile); in ProcessBsOrMbr()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/ |
D | VfrError.cpp | 86 IN INT8 *InputFile in SetInputFile() argument 89 if (InputFile != NULL) { in SetInputFile() 90 mInputFileName = new INT8[strlen(InputFile) + 1]; in SetInputFile() 91 strcpy (mInputFileName, InputFile); in SetInputFile()
|
/device/linaro/bootloader/edk2/BeagleBoardPkg/Tools/ |
D | generate_image.c | 316 FILE *InputFile; in ConstructImage() local 323 InputFile = fopen(gInputImageFile, "rb"); in ConstructImage() 324 if (InputFile == NULL) { in ConstructImage() 330 fstat(fileno(InputFile), &FileStat); in ConstructImage() 348 fread(&Ch, 1, 1, InputFile); in ConstructImage() 352 fclose(InputFile); in ConstructImage()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/ |
D | VfrError.cpp | 103 IN CHAR8 *InputFile in SetInputFile() argument 106 if (InputFile != NULL) { in SetInputFile() 107 mInputFileName = new CHAR8[strlen(InputFile) + 1]; in SetInputFile() 108 strcpy (mInputFileName, InputFile); in SetInputFile()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenPage/ |
D | GenPage.c | 303 CHAR8 *InputFile = NULL; in main() local 410 InputFile = argv[0]; in main() 415 if (InputFile == NULL) { in main() 432 result = GenBinPage (BaseMemory, InputFile, OutputFile); in main()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/ |
D | VolInfo.c | 113 IN FILE *InputFile, 232 FILE *InputFile; in main() local 393 InputFile = fopen (LongFilePath (mUtilityFilename), "rb"); in main() 394 if (InputFile == NULL) { in main() 403 fseek (InputFile, Offset, SEEK_SET); in main() 408 Status = ReadHeader (InputFile, &FvSize, &ErasePolarity); in main() 411 fclose (InputFile); in main() 420 fclose (InputFile); in main() 426 fseek (InputFile, Offset, SEEK_SET); in main() 427 BytesRead = fread (FvImage, 1, FvSize, InputFile); in main() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | MigrationUtilities.py | 550 InputFile = Args[0] 551 if not os.path.exists(InputFile): 552 raise MigrationError(FILE_NOT_FOUND, name=InputFile) 559 Options.OutputFile = os.path.splitext(InputFile)[0] + "." + Destinate.lower() 563 return Options, InputFile
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/TianoCompress/ |
D | TianoCompress.c | 1612 FILE *InputFile; in GetFileContents() local 1618 InputFile = fopen (LongFilePath (InputFileName), "rb"); in GetFileContents() 1619 if (InputFile == NULL) { in GetFileContents() 1624 fseek (InputFile, 0, SEEK_END); in GetFileContents() 1625 FileSize = ftell (InputFile); in GetFileContents() 1626 fseek (InputFile, 0, SEEK_SET); in GetFileContents() 1631 if (fread (FileBuffer, FileSize, 1, InputFile) != 1) { in GetFileContents() 1633 fclose (InputFile); in GetFileContents() 1638 fclose (InputFile); in GetFileContents() 1747 FILE *InputFile; in main() local [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Rsa2048Sha256Sign/ |
D | Rsa2048Sha256Sign.py | 109 args.InputFileName = args.InputFile.name 110 args.InputFileBuffer = args.InputFile.read() 111 args.InputFile.close()
|
D | Rsa2048Sha256GenerateKeys.py | 110 if args.InputFile <> None: 111 for Item in args.InputFile:
|