Home
last modified time | relevance | path

Searched refs:FileInfo (Results 1 – 25 of 54) sorted by relevance

123

/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/UefiShell/
DdaShell.c169 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/
DFsAccess.c104 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/
DUefiFileHandleLib.c55 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/
DPlatformHelperPei.c65 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/
DAttrib.c55 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()
DRm.c37 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/
DTouch.c35 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/
DVariableStorage.h103 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/
DDxeServicesLib.c624 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/
DFvSimpleFileSystem.c136 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 …]
DFvSimpleFileSystemEntryPoint.c124 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/
DQemuKernel.c309 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/
DFwVol.c1164 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 …]
DFwVol.h220 OUT EFI_FV_FILE_INFO *FileInfo
247 OUT EFI_FV_FILE_INFO2 *FileInfo
/device/linaro/bootloader/edk2/Nt32Pkg/WinNtSimpleFileSystemDxe/
DWinNtSimpleFileSystem.c1536 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/
Dcoredump_writer.h51 struct FileInfo { struct
55 using FileMappings = std::map<FileRange, FileInfo>; argument
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/
DFwVol.c593 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()
636FileInfo->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/
DDmpStore.c613 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/
DFirmwareVolume.h153 OUT EFI_FV_FILE_INFO *FileInfo
180 OUT EFI_FV_FILE_INFO2 *FileInfo
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/FileInfo/
DFileInfo.c23 #include EFI_PROTOCOL_DEFINITION (FileInfo)
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/
DEfiProtocolLib.inf100 FileInfo/FileInfo.h
101 FileInfo/FileInfo.c
/device/linaro/bootloader/edk2/MdePkg/Library/PeiServicesLib/
DPeiServicesLib.c478 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/
DUsbCredentialProvider.c268 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/
DPeiServicesLib.h372 OUT EFI_FV_FILE_INFO *FileInfo
397 OUT EFI_FV_FILE_INFO2 *FileInfo
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Dispatcher/
DDispatcher.c50 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()

123