/device/linaro/bootloader/edk2/EmbeddedPkg/Library/EfiFileLib/ |
D | EfiFileLib.c | 71 EFI_OPEN_FILE File; member 104 IN EFI_OPEN_FILE *File in FileHandleValid() argument 110 GuardFile = BASE_CR (File, EFI_OPEN_FILE_GUARD, File); in FileHandleValid() 371 IN OUT EFI_OPEN_FILE *File, in EblFileDevicePath() argument 402 if (File->EfiHandle != NULL) { in EblFileDevicePath() 403 File->DevicePath = DevicePathFromHandle (File->EfiHandle); in EblFileDevicePath() 406 File->DevicePath = AppendDevicePath (File->DevicePath, FileDevicePath); in EblFileDevicePath() 410 Status = gBS->HandleProtocol (File->EfiHandle, &gEfiBlockIoProtocolGuid, (VOID **)&BlkIo); in EblFileDevicePath() 412 File->FsBlockIoMedia = BlkIo->Media; in EblFileDevicePath() 413 File->FsBlockIo = BlkIo; in EblFileDevicePath() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
D | BootMonFsReadWrite.c | 50 BOOTMON_FS_FILE *File; in BootMonFsReadFile() local 62 File = BOOTMON_FS_FILE_FROM_FILE_THIS (This); in BootMonFsReadFile() 63 if (File->Info == NULL) { in BootMonFsReadFile() 71 Instance = File->Instance; in BootMonFsReadFile() 74 FileStart = (Media->LowestAlignedLba + File->HwDescription.BlockStart) * Media->BlockSize; in BootMonFsReadFile() 76 if (File->Position >= File->Info->FileSize) { in BootMonFsReadFile() 80 if (File->Position > File->Info->FileSize) { in BootMonFsReadFile() 88 RemainingFileSize = File->Info->FileSize - File->Position; in BootMonFsReadFile() 98 FileStart + File->Position, in BootMonFsReadFile() 106 File->Position += *BufferSize; in BootMonFsReadFile() [all …]
|
D | BootMonFsOpenClose.c | 26 IN BOOTMON_FS_FILE *File in InvalidateImageDescription() argument 35 DiskIo = File->Instance->DiskIo; in InvalidateImageDescription() 36 BlockIo = File->Instance->BlockIo; in InvalidateImageDescription() 47 File->HwDescAddress, in InvalidateImageDescription() 79 IN BOOTMON_FS_FILE *File, in WriteFileDescription() argument 91 DiskIo = File->Instance->DiskIo; in WriteFileDescription() 92 BlockSize = File->Instance->BlockIo->Media->BlockSize; in WriteFileDescription() 100 Description = &File->HwDescription; in WriteFileDescription() 125 File->HwDescAddress = ((Description->BlockEnd + 1) * BlockSize) - sizeof (HW_IMAGE_DESCRIPTION); in WriteFileDescription() 130 File->Instance->Media->MediaId, in WriteFileDescription() [all …]
|
D | BootMonFsDir.c | 33 *Root = &Instance->RootFile->File; in OpenBootMonFsOpenVolume() 40 IN BOOTMON_FS_FILE *File in BootMonFsGetImageLength() argument 52 FileSize += File->HwDescription.Region[Index].Size; in BootMonFsGetImageLength() 56 for (RegionToFlushLink = GetFirstNode (&File->RegionToFlushLink); in BootMonFsGetImageLength() 57 !IsNull (&File->RegionToFlushLink, RegionToFlushLink); in BootMonFsGetImageLength() 58 RegionToFlushLink = GetNextNode (&File->RegionToFlushLink, RegionToFlushLink) in BootMonFsGetImageLength() 72 IN BOOTMON_FS_FILE* File in BootMonFsGetPhysicalSize() argument 76 if (File->HwDescription.RegionCount == 0) { in BootMonFsGetPhysicalSize() 80 return ((File->HwDescription.BlockEnd - File->HwDescription.BlockStart) + 1 ) in BootMonFsGetPhysicalSize() 81 * File->Instance->Media->BlockSize; in BootMonFsGetPhysicalSize() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/ |
D | MyAlloc.c | 50 UINT8 File[], in MyCheck() argument 83 if (File == NULL || Line == 0) { in MyCheck() 88 File, in MyCheck() 95 if (strlen (File) == 0) { in MyCheck() 100 File, in MyCheck() 123 File, in MyCheck() 125 Tmp->File, in MyCheck() 143 File, in MyCheck() 150 Tmp->File, in MyCheck() 167 UINT8 File[], in MyAlloc() argument [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | MyAlloc.c | 43 UINT8 File[], in MyCheck() argument 76 if (File == NULL || Line == 0) { in MyCheck() 81 File, in MyCheck() 88 if (strlen ((CHAR8 *)File) == 0) { in MyCheck() 93 File, in MyCheck() 116 File, in MyCheck() 118 Tmp->File, in MyCheck() 136 File, in MyCheck() 143 Tmp->File, in MyCheck() 160 UINT8 File[], in MyAlloc() argument [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/ |
D | Section.py | 130 for File in FfsInf.BinFileList: 131 if File.Arch == "COMMON" or FfsInf.CurrentArch == File.Arch: 132 if File.Type == FileType or (int(FfsInf.PiSpecVersion, 16) >= 0x0001000A \ 133 … and FileType == 'DXE_DPEX'and File.Type == 'SMM_DEPEX') \ 134 or (FileType == 'TE'and File.Type == 'PE32'): 135 …if '*' in FfsInf.TargetOverrideList or File.Target == '*' or File.Target in FfsInf.TargetOverrideL… 136 FileList.append(FfsInf.PatchEfiFile(File.Path, File.Type)) 138 … File %s is not in the Scope of %s specified by INF %s in FDF" %(File.Target, File.File, FfsInf.Ta… 140 …le %s in %s is not same with file type \'%s\' from Rule in FDF" %(File.Type, File.File, FfsInf.Inf… 142 …t Arch Scope of %s specified by INF %s in FDF" %(FfsInf.CurrentArch, File.File, File.Arch, FfsInf.…
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/build/ |
D | BuildReport.py | 133 def FileWrite(File, String, Wrapper=False): argument 136 File.write(String + gEndOfLine) 312 def GenerateReport(self, File): argument 313 FileWrite(File, gSubSectionStart) 314 FileWrite(File, TAB_BRG_LIBRARY) 316 FileWrite(File, gSubSectionSep) 319 FileWrite(File, LibInfPath) 338 FileWrite(File, "{%s: %s}" % (LibClass, EdkIILibInfo)) 340 FileWrite(File, "{%s}" % LibClass) 342 FileWrite(File, gSubSectionEnd) [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
D | EfiDevice.c | 32 IN EFI_OPEN_FILE *File in EblPrintFsInfo() argument 37 if (File == NULL) { in EblPrintFsInfo() 41 AsciiPrint (" %a: ", File->DeviceName); in EblPrintFsInfo() 42 if (File->FsInfo != NULL) { in EblPrintFsInfo() 43 for (Str = File->FsInfo->VolumeLabel; *Str != '\0'; Str++) { in EblPrintFsInfo() 51 if (File->FsInfo->ReadOnly) { in EblPrintFsInfo() 57 EfiClose (File); in EblPrintFsInfo() 69 IN EFI_OPEN_FILE *File in EblPrintFvbInfo() argument 72 if (File == NULL) { in EblPrintFvbInfo() 76 …t (" %a: 0x%08lx - 0x%08lx : 0x%08x\n", File->DeviceName, File->FvStart, File->FvStart + File->Fv… in EblPrintFvbInfo() [all …]
|
D | Dir.c | 73 EFI_OPEN_FILE *File; in EblDirCmd() local 107 File = EfiOpen (Path, EFI_FILE_MODE_READ, 0); in EblDirCmd() 108 if (File == NULL) { in EblDirCmd() 112 if (File->Type == EfiOpenFirmwareVolume) { in EblDirCmd() 150 Fv = File->Fv; in EblDirCmd() 215 …AsciiPrint ("%,20d bytes in files %,d bytes free\n", TotalSize, File->FvSize - File->FvHeaderSize … in EblDirCmd() 219 } else if ((File->Type == EfiOpenFileSystem) || (File->Type == EfiOpenBlockIo)) { in EblDirCmd() 222 if (File->FsFileInfo == NULL) { in EblDirCmd() 226 if (!(File->FsFileInfo->Attribute & EFI_FILE_DIRECTORY)) { in EblDirCmd() 240 File->FsFileHandle->SetPosition (File->FsFileHandle, 0); in EblDirCmd() [all …]
|
/device/google/contexthub/util/common/ |
D | file.cpp | 28 File::File() in File() function in android::File 33 File::File(const char *path, const char *mode) in File() function in android::File 39 File::~File() { in ~File() 43 status_t File::initCheck() const { in initCheck() 47 status_t File::setTo(const char *path, const char *mode) { in setTo() 71 void File::close() { in close() 80 ssize_t File::read(void *data, size_t size) { in read() 84 ssize_t File::write(const void *data, size_t size) { in write() 88 off64_t File::seekTo(off64_t pos, int whence) { in seekTo()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FvSimpleFileSystemDxe/ |
D | FvSimpleFileSystem.c | 482 FV_FILESYSTEM_FILE *File; in FvSimpleFileSystemOpen() local 502 File = FVFS_FILE_FROM_FILE_THIS (This); in FvSimpleFileSystemOpen() 503 Instance = File->Instance; in FvSimpleFileSystemOpen() 524 NewFile->FvFileInfo = File->FvFileInfo; in FvSimpleFileSystemOpen() 613 FV_FILESYSTEM_FILE *File; in FvSimpleFileSystemClose() local 615 File = FVFS_FILE_FROM_FILE_THIS (This); in FvSimpleFileSystemClose() 616 Instance = File->Instance; in FvSimpleFileSystemClose() 618 if (File != Instance->Root) { in FvSimpleFileSystemClose() 619 RemoveEntryList (&File->Link); in FvSimpleFileSystemClose() 620 FreePool (File); in FvSimpleFileSystemClose() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/ |
D | FileStorage.c | 64 OUT EFI_FILE_PROTOCOL **File 72 IN EFI_FILE_PROTOCOL *File in FileClose() argument 77 Status = File->Flush (File); in FileClose() 80 Status = File->Close (File); in FileClose() 189 EFI_FILE_PROTOCOL *File; in OnSimpleFileSystemInstall() local 225 &File in OnSimpleFileSystemInstall() 230 Status = File->Write (File, &NumBytes, VAR_DATA_PTR (Dev)); in OnSimpleFileSystemInstall() 232 FileClose (File); in OnSimpleFileSystemInstall() 295 EFI_FILE_PROTOCOL *File; in FileEraseStore() local 308 &File in FileEraseStore() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/ |
D | FileIo.c | 32 IN EFI_FILE_PROTOCOL *File, in FileWrite() argument 40 Status = File->SetPosition (File, Offset); in FileWrite() 43 Status = File->Write (File, &Size, (VOID *) Buffer); in FileWrite() 139 IN EFI_FILE_PROTOCOL *File in FileClose() argument 142 File->Flush (File); in FileClose() 143 File->Close (File); in FileClose() 149 OUT EFI_FILE_PROTOCOL **File, in FileOpen() argument 158 *File = NULL; in FileOpen() 196 File, in FileOpen() 202 *File = NULL; in FileOpen()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/ |
D | msvc.dsp | 1 # Microsoft Developer Studio Project File - Name="lib" - Package Owner=<4> 2 # Microsoft Developer Studio Generated Build File, Format Version 5.00 80 # Begin Source File 83 # End Source File 88 # Begin Source File 92 # End Source File 93 # Begin Source File 97 # End Source File 98 # Begin Source File 101 # End Source File [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/ |
D | FsAccess.c | 99 IN EFI_FILE_HANDLE File, in NvVarsFileReadCheckup() argument 109 FileInfo = FileHandleGetInfo (File); in NvVarsFileReadCheckup() 137 IN EFI_FILE_HANDLE File in FileHandleEmpty() argument 146 FileInfo = FileHandleGetInfo (File); in FileHandleEmpty() 172 Status = FileHandleSetInfo (File, FileInfo); in FileHandleEmpty() 232 EFI_FILE_HANDLE File; in ReadNvVarsFile() local 238 Status = GetNvVarsFile (FsHandle, TRUE, &File); in ReadNvVarsFile() 244 NvVarsFileReadCheckup (File, &FileExists, &FileSize); in ReadNvVarsFile() 246 FileHandleClose (File); in ReadNvVarsFile() 250 FileContents = FileHandleReadToNewBuffer (File, FileSize); in ReadNvVarsFile() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/SimpleFileSystem/ |
D | SimpleFileSystem.h | 78 IN EFI_FILE * File, 131 IN EFI_FILE * File 150 IN EFI_FILE * File 171 IN EFI_FILE * File, 200 IN EFI_FILE * File, 230 IN EFI_FILE * File, 252 IN EFI_FILE * File, 274 IN EFI_FILE * File, 307 IN EFI_FILE * File, 337 IN EFI_FILE * File
|
/device/linaro/bootloader/edk2/CorebootModulePkg/SecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() local 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 62 if (IS_FFS_FILE2 (File)) { in FindImageBase() 63 Size = FFS_FILE2_SIZE (File); in FindImageBase() 68 Size = FFS_FILE_SIZE (File); in FindImageBase() 82 if (File->Type != EFI_FV_FILETYPE_SECURITY_CORE && in FindImageBase() 83 File->Type != EFI_FV_FILETYPE_PEI_CORE) { in FindImageBase() 90 if (IS_FFS_FILE2 (File)) { in FindImageBase() 91 … EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER2)); in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase() [all …]
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspWrapperSecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() local 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 62 if (IS_FFS_FILE2 (File)) { in FindImageBase() 63 Size = FFS_FILE2_SIZE (File); in FindImageBase() 68 Size = FFS_FILE_SIZE (File); in FindImageBase() 82 if (File->Type != EFI_FV_FILETYPE_SECURITY_CORE && in FindImageBase() 83 File->Type != EFI_FV_FILETYPE_PEI_CORE) { in FindImageBase() 90 if (IS_FFS_FILE2 (File)) { in FindImageBase() 91 … EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER2)); in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/SecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() local 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 62 if (IS_FFS_FILE2 (File)) { in FindImageBase() 63 Size = FFS_FILE2_SIZE (File); in FindImageBase() 68 Size = FFS_FILE_SIZE (File); in FindImageBase() 82 if (File->Type != EFI_FV_FILETYPE_SECURITY_CORE && in FindImageBase() 83 File->Type != EFI_FV_FILETYPE_PEI_CORE) { in FindImageBase() 90 if (IS_FFS_FILE2 (File)) { in FindImageBase() 91 … EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER2)); in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase() [all …]
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspInitPei/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() local 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 62 if (IS_FFS_FILE2 (File)) { in FindImageBase() 63 Size = FFS_FILE2_SIZE (File); in FindImageBase() 68 Size = FFS_FILE_SIZE (File); in FindImageBase() 82 if (File->Type != EFI_FV_FILETYPE_SECURITY_CORE && in FindImageBase() 83 File->Type != EFI_FV_FILETYPE_PEI_CORE) { in FindImageBase() 90 if (IS_FFS_FILE2 (File)) { in FindImageBase() 91 … EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER2)); in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
D | UniClassObject.py | 139 def GetLanguageCode1766(LangName, File=None): argument 155 File) 174 File) 186 def GetLanguageCode(LangName, IsCompatibleMode, File): argument 198 File) 219 File) 308 self.File = None 327 def GetLangDef(self, File, Line): argument 331 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16').read() 333 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16_le').read() [all …]
|
D | Misc.py | 143 for File in listdir("."): 144 if os.path.isdir(File): 145 RemoveDirectory(File, Recursively) 147 remove(File) 162 def SaveFileOnChange(File, Content, IsBinaryFile=True): argument 166 if os.path.exists(File): 168 if Content == __FileHookOpen__(File, "rb").read(): 171 Logger.Error(None, ToolError.FILE_OPEN_FAILURE, ExtraData=File) 173 CreateDirectory(os.path.dirname(File)) 175 FileFd = __FileHookOpen__(File, "wb") [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Table/ |
D | TableFile.py | 90 File = FileClass(-1, Name, Ext, Filepath, FileFullPath, Model, '', [], [], []) 91 return self.Insert(File.Name, File.ExtName, File.Path, File.FullPath, File.Model, TimeStamp) 99 def GetFileId(self, File): argument 100 QueryScript = "select ID from %s where FullPath = '%s'" % (self.Table, str(File))
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
D | pcctslib50.dsp | 1 # Microsoft Developer Studio Project File - Name="pcctslib" - Package Owner=<4> 2 # Microsoft Developer Studio Generated Build File, Format Version 5.00 89 # Begin Source File 92 # End Source File 93 # Begin Source File 96 # End Source File 97 # Begin Source File 100 # End Source File 101 # Begin Source File 104 # End Source File [all …]
|