Home
last modified time | relevance | path

Searched refs:NewFile (Results 1 – 9 of 9) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FvSimpleFileSystemDxe/
DFvSimpleFileSystem.c483 FV_FILESYSTEM_FILE *NewFile; in FvSimpleFileSystemOpen() local
518 NewFile = AllocateZeroPool (sizeof (FV_FILESYSTEM_FILE)); in FvSimpleFileSystemOpen()
519 if (NewFile == NULL) { in FvSimpleFileSystemOpen()
522 NewFile->Signature = FVFS_FILE_SIGNATURE; in FvSimpleFileSystemOpen()
523 NewFile->Instance = Instance; in FvSimpleFileSystemOpen()
524 NewFile->FvFileInfo = File->FvFileInfo; in FvSimpleFileSystemOpen()
525 CopyMem (&NewFile->FileProtocol, &mFileSystemTemplate, sizeof (mFileSystemTemplate)); in FvSimpleFileSystemOpen()
526 InitializeListHead (&NewFile->Link); in FvSimpleFileSystemOpen()
527 InsertHeadList (&Instance->FileHead, &NewFile->Link); in FvSimpleFileSystemOpen()
529 NewFile->DirReadNext = NULL; in FvSimpleFileSystemOpen()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DFirmwareVolumeBuffer.c689 EFI_FFS_FILE_HEADER* NewFile; in FvBufAddFileWithExtend() local
691 NewFile = (EFI_FFS_FILE_HEADER*)File; in FvBufAddFileWithExtend()
696 Status = FvBufAddFile (*Fv, NewFile); in FvBufAddFileWithExtend()
701 Status = FvBufExtend (Fv, FvBufExpand3ByteSize (NewFile->Size)); in FvBufAddFileWithExtend()
709 Status = FvBufAddFile (*Fv, NewFile); in FvBufAddFileWithExtend()
743 EFI_FFS_FILE_HEADER* NewFile; in FvBufAddVtfFile() local
788 NewFile = (EFI_FFS_FILE_HEADER*)((UINT8*)hdr + (fvSize - NewFileSize)); in FvBufAddVtfFile()
794 if ((UINT8*)NewFile < ((UINT8*)LastFile + LastFileSize)) { in FvBufAddVtfFile()
803 (((UINT8*)NewFile)[clearLoop] == erasedUint8) in FvBufAddVtfFile()
815 CommonLibBinderCopyMem (NewFile, File, NewFileSize); in FvBufAddVtfFile()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DMisc.py654 NewFile = os.path.normpath(os.path.join(Dir, File))
655 NewFile = GlobalData.gAllFiles[NewFile]
656 if not NewFile and OverrideDir:
657 NewFile = os.path.normpath(os.path.join(OverrideDir, File))
658 NewFile = GlobalData.gAllFiles[NewFile]
659 return NewFile
662 NewFile = None
664 NewFile = GlobalData.gAllFiles[os.path.normpath(os.path.join(OverrideDir, File))]
665 if NewFile:
667 return NewFile[len(OverrideDir):], NewFile[0:len(OverrideDir)]
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/
DBootMonFsImages.c199 BOOTMON_FS_FILE *NewFile; in BootMonFsInitialize() local
205 Status = BootMonFsCreateFile (Instance, &NewFile); in BootMonFsInitialize()
210 Status = BootMonFsDiscoverNextImage (Instance, &Lba, NewFile); in BootMonFsInitialize()
213 FreePool (NewFile); in BootMonFsInitialize()
216 InsertTailList (&Instance->RootFile->Link, &NewFile->Link); in BootMonFsInitialize()
DBootMonFsEntryPoint.c148 BOOTMON_FS_FILE *NewFile; in BootMonFsCreateFile() local
150 NewFile = (BOOTMON_FS_FILE*)AllocateZeroPool (sizeof (BOOTMON_FS_FILE)); in BootMonFsCreateFile()
151 if (NewFile == NULL) { in BootMonFsCreateFile()
155 NewFile->Signature = BOOTMON_FS_FILE_SIGNATURE; in BootMonFsCreateFile()
156 InitializeListHead (&NewFile->Link); in BootMonFsCreateFile()
157 InitializeListHead (&NewFile->RegionToFlushLink); in BootMonFsCreateFile()
158 NewFile->Instance = Instance; in BootMonFsCreateFile()
162 CopyMem (&NewFile->File, &mBootMonFsRootTemplate, sizeof (mBootMonFsRootTemplate)); in BootMonFsCreateFile()
164 CopyMem (&NewFile->File, &mBootMonFsFileTemplate, sizeof (mBootMonFsFileTemplate)); in BootMonFsCreateFile()
166 *File = NewFile; in BootMonFsCreateFile()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DMisc.py255 NewFile = os.path.normpath(os.path.join(Dir, File))
256 NewFile = GlobalData.gALL_FILES[NewFile]
257 if not NewFile and OverrideDir:
258 NewFile = os.path.normpath(os.path.join(OverrideDir, File))
259 NewFile = GlobalData.gALL_FILES[NewFile]
260 return NewFile
270 NewFile = GlobalData.gALL_FILES[os.path.normpath(os.path.join\
272 if NewFile:
274 return NewFile[len(OverrideDir):], NewFile[0:len(OverrideDir)]
276 return NewFile[len(OverrideDir) + 1:], \
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DGenMake.py849 NewFile = self.PlaceMacro(str(F), self.Macros)
854 self.FileListMacros[T.FileListMacro].append(NewFile)
856 self.FileListMacros[T.FileListMacro].append(NewFile)
858 Deps.append(NewFile)
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/
DGenFvImageLib.c2009 FILE *NewFile; in AddFile() local
2032 NewFile = fopen (FvInfo->FvFiles[Index], "rb"); in AddFile()
2034 if (NewFile == NULL) { in AddFile()
2041 FileSize = _filelength (_fileno (NewFile)); in AddFile()
2052 NumBytesRead = fread (FileBuffer, sizeof (UINT8), FileSize, NewFile); in AddFile()
2057 fclose (NewFile); in AddFile()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c1127 FILE *NewFile; in AddFile() local
1147 NewFile = fopen (LongFilePath (FvInfo->FvFiles[Index]), "rb"); in AddFile()
1149 if (NewFile == NULL) { in AddFile()
1157 FileSize = _filelength (fileno (NewFile)); in AddFile()
1164 fclose (NewFile); in AddFile()
1169 NumBytesRead = fread (FileBuffer, sizeof (UINT8), FileSize, NewFile); in AddFile()
1174 fclose (NewFile); in AddFile()