/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/UefiShell/ |
D | daShell.c | 169 EFI_FILE_INFO *FileInfo; in da_ShellMkdir() local 179 FileInfo = ShellGetFileInfo( FileHandle); in da_ShellMkdir() 181 if(FileInfo != NULL) { in da_ShellMkdir() 182 TempAttr = FileInfo->Attribute & (EFI_FILE_RESERVED | EFI_FILE_DIRECTORY); in da_ShellMkdir() 183 FileInfo->Attribute = TempAttr | Omode2EFI(perms); in da_ShellMkdir() 184 Status = ShellSetFileInfo( FileHandle, FileInfo); in da_ShellMkdir() 185 FreePool(FileInfo); in da_ShellMkdir() 331 EFI_FILE_INFO *FileInfo = NULL; in da_ShellStat() local 338 FileInfo = ShellGetFileInfo( FileHandle); in da_ShellStat() 340 if(FileInfo != NULL) { in da_ShellStat() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/ |
D | FsAccess.c | 104 EFI_FILE_INFO *FileInfo; in NvVarsFileReadCheckup() local 109 FileInfo = FileHandleGetInfo (File); in NvVarsFileReadCheckup() 110 if (FileInfo == NULL) { in NvVarsFileReadCheckup() 114 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) != 0) { in NvVarsFileReadCheckup() 115 FreePool (FileInfo); in NvVarsFileReadCheckup() 120 *Size = (UINTN) FileInfo->FileSize; in NvVarsFileReadCheckup() 122 FreePool (FileInfo); in NvVarsFileReadCheckup() 141 EFI_FILE_INFO *FileInfo; in FileHandleEmpty() local 146 FileInfo = FileHandleGetInfo (File); in FileHandleEmpty() 147 if (FileInfo == NULL) { in FileHandleEmpty() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiFileHandleLib/ |
D | UefiFileHandleLib.c | 55 EFI_FILE_INFO *FileInfo; in FileHandleGetInfo() local 67 FileInfo = NULL; in FileHandleGetInfo() 76 FileInfo = AllocateZeroPool(FileInfoSize); in FileHandleGetInfo() 83 FileInfo); in FileHandleGetInfo() 87 if (EFI_ERROR(Status) && (FileInfo != NULL)) { in FileHandleGetInfo() 88 FreePool(FileInfo); in FileHandleGetInfo() 89 FileInfo = NULL; in FileHandleGetInfo() 92 return (FileInfo); in FileHandleGetInfo() 118 IN CONST EFI_FILE_INFO *FileInfo in FileHandleSetInfo() argument 122 if (FileHandle == NULL || FileInfo == NULL) { in FileHandleSetInfo() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/PlatformHelperLib/ |
D | PlatformHelperPei.c | 65 EFI_FV_FILE_INFO FileInfo; in PlatformFindFvFileRawDataSection() local 88 Status = PeiServicesFfsGetFileInfo (FileHandle, &FileInfo); in PlatformFindFvFileRawDataSection() 92 if (IS_SECTION2(FileInfo.Buffer)) { in PlatformFindFvFileRawDataSection() 93 *SectionDataSize = SECTION2_SIZE(FileInfo.Buffer) - sizeof(EFI_COMMON_SECTION_HEADER2); in PlatformFindFvFileRawDataSection() 95 *SectionDataSize = SECTION_SIZE(FileInfo.Buffer) - sizeof(EFI_COMMON_SECTION_HEADER); in PlatformFindFvFileRawDataSection()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
D | Attrib.c | 55 EFI_FILE_INFO *FileInfo; in ShellCommandRunAttrib() local 222 FileInfo = gEfiShellProtocol->GetFileInfo(FileNode->Handle); in ShellCommandRunAttrib() 228 FileInfo->Attribute &= ~EFI_FILE_READ_ONLY; in ShellCommandRunAttrib() 232 Status = ShellSetFileInfo(FileNode->Handle, FileInfo); in ShellCommandRunAttrib() 242 FileInfo->Attribute &= ~FileAttributesToRemove; in ShellCommandRunAttrib() 243 FileInfo->Attribute |= FileAttributesToAdd; in ShellCommandRunAttrib() 248 Status = ShellSetFileInfo(FileNode->Handle, FileInfo); in ShellCommandRunAttrib() 254 SHELL_FREE_NON_NULL(FileInfo); in ShellCommandRunAttrib()
|
D | Rm.c | 37 EFI_FILE_INFO *FileInfo; in IsDirectoryEmpty() local 43 FileInfo = NULL; in IsDirectoryEmpty() 45 for (FileHandleFindFirstFile(FileHandle, &FileInfo) in IsDirectoryEmpty() 47 ; FileHandleFindNextFile(FileHandle, FileInfo, &NoFile) in IsDirectoryEmpty() 49 if (StrStr(FileInfo->FileName, L".") != FileInfo->FileName in IsDirectoryEmpty() 50 &&StrStr(FileInfo->FileName, L"..") != FileInfo->FileName) { in IsDirectoryEmpty()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/ |
D | Touch.c | 35 EFI_FILE_INFO *FileInfo; in TouchFileByHandle() local 37 FileInfo = gEfiShellProtocol->GetFileInfo(Handle); in TouchFileByHandle() 38 if ((FileInfo->Attribute & EFI_FILE_READ_ONLY) != 0){ in TouchFileByHandle() 41 Status = gRT->GetTime(&FileInfo->ModificationTime, NULL); in TouchFileByHandle() 47 CopyMem(&FileInfo->LastAccessTime, &FileInfo->ModificationTime, sizeof(EFI_TIME)); in TouchFileByHandle() 49 Status = gEfiShellProtocol->SetFileInfo(Handle, FileInfo); in TouchFileByHandle() 51 FreePool(FileInfo); in TouchFileByHandle()
|
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/ |
D | VariableStorage.h | 103 VS_FILE_INFO FileInfo; member 113 #define VAR_FILE_DEVICEPATH(a) ((a)->Info.FileInfo.DevicePath) 114 #define VAR_FILE_VOLUMEID(a) ((a)->Info.FileInfo.VolumeId) 115 #define VAR_FILE_FILEPATH(a) ((a)->Info.FileInfo.FilePath)
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeServicesLib/ |
D | DxeServicesLib.c | 624 EFI_FILE_INFO *FileInfo; in GetFileBufferByFilePath() local 642 FileInfo = NULL; in GetFileBufferByFilePath() 776 FileInfo = NULL; in GetFileBufferByFilePath() 782 FileInfo in GetFileBufferByFilePath() 786 FileInfo = AllocatePool (FileInfoSize); in GetFileBufferByFilePath() 787 if (FileInfo == NULL) { in GetFileBufferByFilePath() 794 FileInfo in GetFileBufferByFilePath() 799 if (!EFI_ERROR (Status) && (FileInfo != NULL)) { in GetFileBufferByFilePath() 800 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) == 0) { in GetFileBufferByFilePath() 804 ImageBuffer = AllocatePool ((UINTN)FileInfo->FileSize); in GetFileBufferByFilePath() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FvSimpleFileSystemDxe/ |
D | FvSimpleFileSystem.c | 136 FvFileInfo->FileInfo.FileSize = 0; in FvFsGetFileSize() 142 …Status = FvFsFindExecutableSection (FvProtocol, FvFileInfo, (UINTN*)&FvFileInfo->FileInfo.FileSize… in FvFsGetFileSize() 156 (UINTN*)&FvFileInfo->FileInfo.FileSize, in FvFsGetFileSize() 170 (UINTN*)&FvFileInfo->FileInfo.FileSize, in FvFsGetFileSize() 184 (UINTN*)&FvFileInfo->FileInfo.FileSize, in FvFsGetFileSize() 301 OUT EFI_FILE_INFO *FileInfo in FvFsGetFileInfo() argument 306 InfoSize = (UINTN)FvFileInfo->FileInfo.Size; in FvFsGetFileInfo() 315 CopyMem (FileInfo, &FvFileInfo->FileInfo, InfoSize); in FvFsGetFileInfo() 544 …if (mUnicodeCollation->StriColl (mUnicodeCollation, &FvFileInfo->FileInfo.FileName[0], FileName) =… in FvSimpleFileSystemOpen() 569 …if (mUnicodeCollation->StriColl (mUnicodeCollation, &FvFileInfo->FileInfo.FileName[0], FileNameWit… in FvSimpleFileSystemOpen() [all …]
|
D | FvSimpleFileSystemEntryPoint.c | 124 Root->FvFileInfo->FileInfo.Size = sizeof (EFI_FILE_INFO); in FvSimpleFileSystemOpenVolume() 125 Root->FvFileInfo->FileInfo.Attribute = EFI_FILE_DIRECTORY | EFI_FILE_READ_ONLY; in FvSimpleFileSystemOpenVolume() 201 Status = StrnCpyS (&FvFileInfo->FileInfo.FileName[0], DestMax, Name, StrLen (Name)); in FvSimpleFileSystemOpenVolume() 205 Status = StrnCatS (&FvFileInfo->FileInfo.FileName[0], DestMax, L".efi", StrLen (L".efi")); in FvSimpleFileSystemOpenVolume() 209 FvFileInfo->FileInfo.Size = sizeof (EFI_FILE_INFO) + NameLen - sizeof (CHAR16); in FvSimpleFileSystemOpenVolume() 212 FvFileInfo->FileInfo.PhysicalSize = FvFileInfo->FileInfo.FileSize; in FvSimpleFileSystemOpenVolume() 213 FvFileInfo->FileInfo.Attribute = EFI_FILE_READ_ONLY; in FvSimpleFileSystemOpenVolume()
|
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/ |
D | QemuKernel.c | 309 EFI_FILE_INFO *FileInfo; in ConvertKernelBlobTypeToFileInfo() local 330 ASSERT (FileInfoSize >= sizeof *FileInfo); in ConvertKernelBlobTypeToFileInfo() 338 FileInfo = (EFI_FILE_INFO *)Buffer; in ConvertKernelBlobTypeToFileInfo() 339 FileInfo->Size = FileInfoSize; in ConvertKernelBlobTypeToFileInfo() 340 FileInfo->FileSize = FileSize; in ConvertKernelBlobTypeToFileInfo() 341 FileInfo->PhysicalSize = FileSize; in ConvertKernelBlobTypeToFileInfo() 342 FileInfo->Attribute = Attribute; in ConvertKernelBlobTypeToFileInfo() 344 CopyMem (&FileInfo->CreateTime, &mInitTime, sizeof mInitTime); in ConvertKernelBlobTypeToFileInfo() 345 CopyMem (&FileInfo->LastAccessTime, &mInitTime, sizeof mInitTime); in ConvertKernelBlobTypeToFileInfo() 346 CopyMem (&FileInfo->ModificationTime, &mInitTime, sizeof mInitTime); in ConvertKernelBlobTypeToFileInfo() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/ |
D | FwVol.c | 1164 OUT EFI_FV_FILE_INFO *FileInfo in PeiFfsGetFileInfo() argument 1169 if ((FileHandle == NULL) || (FileInfo == NULL)) { in PeiFfsGetFileInfo() 1181 return CoreFvHandle->FvPpi->GetFileInfo (CoreFvHandle->FvPpi, FileHandle, FileInfo); in PeiFfsGetFileInfo() 1199 OUT EFI_FV_FILE_INFO2 *FileInfo in PeiFfsGetFileInfo2() argument 1204 if ((FileHandle == NULL) || (FileInfo == NULL)) { in PeiFfsGetFileInfo2() 1218 return CoreFvHandle->FvPpi->GetFileInfo2 (CoreFvHandle->FvPpi, FileHandle, FileInfo); in PeiFfsGetFileInfo2() 1295 EFI_FV_FILE_INFO FileInfo; in ProcessFvFile() local 1380 Status = ParentFvPpi->GetFileInfo (ParentFvPpi, ParentFvFileHandle, &FileInfo); in ProcessFvFile() 1393 &FileInfo.FileName, in ProcessFvFile() 1402 &FileInfo.FileName in ProcessFvFile() [all …]
|
D | FwVol.h | 220 OUT EFI_FV_FILE_INFO *FileInfo 247 OUT EFI_FV_FILE_INFO2 *FileInfo
|
/device/linaro/bootloader/edk2/Nt32Pkg/WinNtSimpleFileSystemDxe/ |
D | WinNtSimpleFileSystem.c | 1536 EFI_FILE_INFO *FileInfo; in WinNtSimpleFileSystemRead() local 1563 FileInfo = AllocatePool (FileInfoSize); in WinNtSimpleFileSystemRead() 1569 FileInfo in WinNtSimpleFileSystemRead() 1573 FreePool (FileInfo); in WinNtSimpleFileSystemRead() 1574 FileInfo = AllocatePool (FileInfoSize); in WinNtSimpleFileSystemRead() 1579 FileInfo in WinNtSimpleFileSystemRead() 1588 FileSize = FileInfo->FileSize; in WinNtSimpleFileSystemRead() 1590 FreePool (FileInfo); in WinNtSimpleFileSystemRead() 1984 BY_HANDLE_FILE_INFORMATION FileInfo; in WinNtSimpleFileSystemFileInfo() local 2003 &FileInfo in WinNtSimpleFileSystemFileInfo() [all …]
|
/device/google/dragon/crash_collector/ |
D | coredump_writer.h | 51 struct FileInfo { struct 55 using FileMappings = std::map<FileRange, FileInfo>; argument
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | FwVol.c | 593 OUT EFI_FV_FILE_INFO *FileInfo in FfsGetFileInfo() argument 601 if ((FileHandle == NULL) || (FileInfo == NULL)) { in FfsGetFileInfo() 633 CopyMem (&FileInfo->FileName, &FileHeader->Name, sizeof(EFI_GUID)); in FfsGetFileInfo() 634 FileInfo->FileType = FileHeader->Type; in FfsGetFileInfo() 635 FileInfo->FileAttributes = FileHeader->Attributes; in FfsGetFileInfo() 636 …FileInfo->BufferSize = ((*(UINT32 *)FileHeader->Size) & 0x00FFFFFF) - sizeof (EFI_FFS_FILE_HEADER… in FfsGetFileInfo() 637 FileInfo->Buffer = (FileHeader + 1); in FfsGetFileInfo()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | DmpStore.c | 613 EFI_FILE_INFO *FileInfo; in ShellCommandRunDmpStore() local 681 FileInfo = ShellGetFileInfo (FileHandle); in ShellCommandRunDmpStore() 682 if (FileInfo == NULL) { in ShellCommandRunDmpStore() 686 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) == EFI_FILE_DIRECTORY) { in ShellCommandRunDmpStore() 695 FreePool (FileInfo); in ShellCommandRunDmpStore() 732 FileInfo = ShellGetFileInfo (FileHandle); in ShellCommandRunDmpStore() 733 if (FileInfo == NULL) { in ShellCommandRunDmpStore() 737 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) == EFI_FILE_DIRECTORY) { in ShellCommandRunDmpStore() 741 FreePool (FileInfo); in ShellCommandRunDmpStore()
|
/device/linaro/bootloader/edk2/MdePkg/Include/Ppi/ |
D | FirmwareVolume.h | 153 OUT EFI_FV_FILE_INFO *FileInfo 180 OUT EFI_FV_FILE_INFO2 *FileInfo
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/FileInfo/ |
D | FileInfo.c | 23 #include EFI_PROTOCOL_DEFINITION (FileInfo)
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/ |
D | EfiProtocolLib.inf | 100 FileInfo/FileInfo.h 101 FileInfo/FileInfo.c
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiServicesLib/ |
D | PeiServicesLib.c | 478 OUT EFI_FV_FILE_INFO *FileInfo in PeiServicesFfsGetFileInfo() argument 481 return (*GetPeiServicesTablePointer())->FfsGetFileInfo (FileHandle, FileInfo); in PeiServicesFfsGetFileInfo() 503 OUT EFI_FV_FILE_INFO2 *FileInfo in PeiServicesFfsGetFileInfo2() argument 506 return (*GetPeiServicesTablePointer())->FfsGetFileInfo2 (FileHandle, FileInfo); in PeiServicesFfsGetFileInfo2()
|
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/ |
D | UsbCredentialProvider.c | 268 EFI_FILE_INFO *FileInfo; in GetFileData() local 272 FileInfo = NULL; in GetFileData() 355 FileInfo = AllocateZeroPool (ScratchBufferSize); in GetFileData() 356 if (FileInfo == NULL) { in GetFileData() 366 FileInfo in GetFileData() 377 *BufferSize = (UINT32) FileInfo->FileSize; in GetFileData() 408 if (FileInfo != NULL) { in GetFileData() 409 FreePool (FileInfo); in GetFileData()
|
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
D | PeiServicesLib.h | 372 OUT EFI_FV_FILE_INFO *FileInfo 397 OUT EFI_FV_FILE_INFO2 *FileInfo
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Dispatcher/ |
D | Dispatcher.c | 50 EFI_FV_FILE_INFO FileInfo; in DiscoverPeimsAndOrderWithApriori() local 105 Status = FvPpi->GetFileInfo (FvPpi, AprioriFileHandle, &FileInfo); in DiscoverPeimsAndOrderWithApriori() 107 Private->AprioriCount = FileInfo.BufferSize; in DiscoverPeimsAndOrderWithApriori() 108 if (IS_SECTION2 (FileInfo.Buffer)) { in DiscoverPeimsAndOrderWithApriori() 120 Status = FvPpi->GetFileInfo (FvPpi, Private->CurrentFvFileHandles[Index], &FileInfo); in DiscoverPeimsAndOrderWithApriori() 121 CopyMem (&FileGuid[Index], &FileInfo.FileName, sizeof(EFI_GUID)); in DiscoverPeimsAndOrderWithApriori() 1265 EFI_FV_FILE_INFO FileInfo; in DepexSatisfied() local 1267 Status = PeiServicesFfsGetFileInfo (FileHandle, &FileInfo); in DepexSatisfied() 1271 DEBUG ((DEBUG_DISPATCH, "Evaluate PEI DEPEX for FFS(%g)\n", &FileInfo.FileName)); in DepexSatisfied()
|