Home
last modified time | relevance | path

Searched refs:FileId (Results 1 – 25 of 56) sorted by relevance

123

/reactos/boot/freeldr/freeldr/lib/fs/
H A Dfs.c54 #define IS_VALID_FILEID(FileId) \ argument
55 ((ULONG)(FileId) < _countof(FileData) && FileData[(ULONG)(FileId)].FuncTable)
234 *FileId = INVALID_FILE_ID; in ArcOpen()
309 *FileId = DeviceId; in ArcOpen()
358 *FileId = i; in ArcOpen()
410 _In_ ULONG FileId) in ArcClose() argument
425 (void)FileData[FileId].FuncTable->Close(FileId); in ArcClose()
452 return FileData[FileId].FuncTable->Read(FileId, Buffer, N, Count); in ArcRead()
459 return FileData[FileId].FuncTable->Seek(FileId, Position, SeekMode); in ArcSeek()
466 return FileData[FileId].FuncTable->GetFileInformation(FileId, Information); in ArcGetFileInformation()
[all …]
H A Dpxe.c117 static ARC_STATUS PxeClose(ULONG FileId) in PxeClose() argument
121 if (_OpenFile == NO_FILE || FileId != _OpenFile) in PxeClose()
134 if (_OpenFile == NO_FILE || FileId != _OpenFile) in PxeGetFileInformation()
147 static ARC_STATUS PxeOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in PxeOpen() argument
204 _OpenFile = *FileId; in PxeOpen()
215 if (_OpenFile == NO_FILE || FileId != _OpenFile) in PxeRead()
250 if (_OpenFile == NO_FILE || FileId != _OpenFile) in PxeSeek()
259 if (PxeClose(FileId) != ESUCCESS) in PxeSeek()
261 if (PxeOpen(_OpenFileName, OpenReadOnly, &FileId) != ESUCCESS) in PxeSeek()
297 static ARC_STATUS PxeDiskClose(ULONG FileId) in PxeDiskClose() argument
[all …]
H A Diso.c58 if (Record->FileIdLength == 1 && Record->FileId[0] == 0) in IsoSearchDirectoryBufferForFile()
69 Name[i] = Record->FileId[i]; in IsoSearchDirectoryBufferForFile()
246 ARC_STATUS IsoClose(ULONG FileId) in IsoClose() argument
248 PISO_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in IsoClose()
255 PISO_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in IsoGetFileInformation()
267 ARC_STATUS IsoOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in IsoOpen() argument
277 DeviceId = FsGetDeviceId(*FileId); in IsoOpen()
292 FsSetDeviceSpecific(*FileId, FileHandle); in IsoOpen()
299 PISO_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in IsoRead()
311 DeviceId = FsGetDeviceId(FileId); in IsoRead()
[all …]
H A Dntfs.c760 ARC_STATUS NtfsClose(ULONG FileId) in NtfsClose() argument
762 PNTFS_FILE_HANDLE FileHandle = FsGetDeviceSpecific(FileId); in NtfsClose()
770 ARC_STATUS NtfsGetFileInformation(ULONG FileId, FILEINFORMATION* Information) in NtfsGetFileInformation() argument
772 PNTFS_FILE_HANDLE FileHandle = FsGetDeviceSpecific(FileId); in NtfsGetFileInformation()
784 ARC_STATUS NtfsOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in NtfsOpen() argument
800 DeviceId = FsGetDeviceId(*FileId); in NtfsOpen()
827 FsSetDeviceSpecific(*FileId, FileHandle); in NtfsOpen()
831 ARC_STATUS NtfsRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in NtfsRead() argument
833 PNTFS_FILE_HANDLE FileHandle = FsGetDeviceSpecific(FileId); in NtfsRead()
852 ARC_STATUS NtfsSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) in NtfsSeek() argument
[all …]
H A Dbtrfs.c1162 ARC_STATUS BtrFsClose(ULONG FileId) in BtrFsClose() argument
1164 pbtrfs_file_info phandle = FsGetDeviceSpecific(FileId); in BtrFsClose()
1165 TRACE("BtrFsClose %lu\n", FileId); in BtrFsClose()
1173 pbtrfs_file_info phandle = FsGetDeviceSpecific(FileId); in BtrFsGetFileInformation()
1185 ARC_STATUS BtrFsOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId) in BtrFsOpen() argument
1202 DeviceId = FsGetDeviceId(*FileId); in BtrFsOpen()
1233 FsSetDeviceSpecific(*FileId, phandle); in BtrFsOpen()
1239 pbtrfs_file_info phandle = FsGetDeviceSpecific(FileId); in BtrFsRead()
1242 TRACE("BtrFsRead %lu, size=%lu \n", FileId, Size); in BtrFsRead()
1254 TRACE("An error occured while reading file %lu\n", FileId); in BtrFsRead()
[all …]
H A Dext2.c1195 ARC_STATUS Ext2Close(ULONG FileId) in Ext2Close() argument
1197 PEXT2_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in Ext2Close()
1202 ARC_STATUS Ext2GetFileInformation(ULONG FileId, FILEINFORMATION* Information) in Ext2GetFileInformation() argument
1204 PEXT2_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in Ext2GetFileInformation()
1216 ARC_STATUS Ext2Open(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in Ext2Open() argument
1227 DeviceId = FsGetDeviceId(*FileId); in Ext2Open()
1239 FsSetDeviceSpecific(*FileId, FileHandle); in Ext2Open()
1243 ARC_STATUS Ext2Read(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in Ext2Read() argument
1245 PEXT2_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in Ext2Read()
1264 ARC_STATUS Ext2Seek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) in Ext2Seek() argument
[all …]
H A Dfat.c1397 ARC_STATUS FatClose(ULONG FileId) in FatClose() argument
1399 PFAT_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in FatClose()
1406 ARC_STATUS FatGetFileInformation(ULONG FileId, FILEINFORMATION* Information) in FatGetFileInformation() argument
1408 PFAT_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in FatGetFileInformation()
1420 ARC_STATUS FatOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in FatOpen() argument
1432 DeviceId = FsGetDeviceId(*FileId); in FatOpen()
1458 FsSetDeviceSpecific(*FileId, FileHandle); in FatOpen()
1462 ARC_STATUS FatRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in FatRead() argument
1464 PFAT_FILE_INFO FileHandle = FsGetDeviceSpecific(FileId); in FatRead()
1481 ARC_STATUS FatSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) in FatSeek() argument
[all …]
/reactos/boot/freeldr/freeldr/include/
H A Dfs.h37 ARC_STATUS ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId);
41 _In_ ULONG FileId);
43 ARC_STATUS ArcRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count);
44 ARC_STATUS ArcSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode);
45 ARC_STATUS ArcGetFileInformation(ULONG FileId, FILEINFORMATION* Information);
54 OUT PULONG FileId);
64 PCWSTR FsGetServiceName(ULONG FileId);
65 VOID FsSetDeviceSpecific(ULONG FileId, PVOID Specific);
66 PVOID FsGetDeviceSpecific(ULONG FileId);
67 ULONG FsGetDeviceId(ULONG FileId);
/reactos/boot/freeldr/freeldr/lib/inifile/
H A Dini_init.c28 ULONG FileId; // File handle for freeldr.ini in IniFileInitialize() local
37 Status = FsOpenFile("freeldr.ini", FrLdrBootPath, OpenReadOnly, &FileId); in IniFileInitialize()
46 Status = ArcGetFileInformation(FileId, &FileInformation); in IniFileInitialize()
50 ArcClose(FileId); in IniFileInitialize()
60 ArcClose(FileId); in IniFileInitialize()
65 Status = ArcRead(FileId, FreeLoaderIniFileData, FreeLoaderIniFileSize, &Count); in IniFileInitialize()
70 ArcClose(FileId); in IniFileInitialize()
79 ArcClose(FileId); in IniFileInitialize()
/reactos/boot/environ/lib/io/
H A Dfile.c221 _In_ ULONG FileId in BlFileClose() argument
227 if (FileEntries <= FileId) in BlFileClose()
271 ULONG FileId, CheckFlags; in FileIoOpen() local
427 FileEntry->FileId = FileId; in FileIoOpen()
481 _Out_ PULONG FileId in BlFileOpen() argument
491 !(FileId) || in BlFileOpen()
525 *FileId = FileEntry->FileId; in BlFileOpen()
534 _In_ ULONG FileId, in BlFileSetInformation() argument
565 _In_ ULONG FileId, in BlFileGetInformation() argument
656 _In_ ULONG FileId, in BlFileReadEx() argument
[all …]
H A Detfs.c132 for (Pos = DirEntry->FileId + Length - 1; Length; --Pos) in EtfspGetDirentNameLength()
144 for (Pos = DirEntry->FileId + Length - 1; Length; --Pos) in EtfspGetDirentNameLength()
200 ((DirEntry->FileId[0] != 0) && (DirEntry->FileId[0] != 1))) in EtfspFileMatch()
205 DirName.Buffer = (PCHAR)DirEntry->FileId; in EtfspFileMatch()
317 ((DirEnt->FileId[0] != 0) && (DirEnt->FileId[0] != 1))) in EtfspGetDirent()
/reactos/drivers/filesystems/udfs/udf_info/
H A Ddirtree.cpp480 PFILE_IDENT_DESC FileId; in UDFFindNextFI() local
486 if(FileId->descTag.descVersion != 2 && FileId->descTag.descVersion != 3) in UDFFindNextFI()
488 if(FileId->fileVersionNum != 1) in UDFFindNextFI()
514 PFILE_IDENT_DESC FileId; in UDFIndexDirectory() local
548 FileId = (PFILE_IDENT_DESC)buff; in UDFIndexDirectory()
629 FileId = (PFILE_IDENT_DESC)buff; in UDFIndexDirectory()
637 FileId->lengthFileIdent, FileId->lengthOfImpUse, FileId->fileCharacteristics)); in UDFIndexDirectory()
639 KdDump(FileId, sizeof(FileId->descTag)); in UDFIndexDirectory()
671 … ASSERT( (Offset+sizeof(FILE_IDENT_DESC)+FileId->lengthOfImpUse+FileId->lengthFileIdent) <= in UDFIndexDirectory()
674 ((uint8*)(FileId+1)) + (FileId->lengthOfImpUse), in UDFIndexDirectory()
[all …]
/reactos/boot/freeldr/freeldr/arch/i386/
H A Dhwdisk.c56 DiskClose(ULONG FileId) in DiskClose() argument
58 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskClose()
64 DiskGetFileInformation(ULONG FileId, FILEINFORMATION* Information) in DiskGetFileInformation() argument
66 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskGetFileInformation()
84 DiskOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in DiskOpen() argument
152 FsSetDeviceSpecific(*FileId, Context); in DiskOpen()
158 DiskRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in DiskRead() argument
160 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskRead()
210 DiskSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) in DiskSeek() argument
212 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskSeek()
H A Dntoskrnl.c68 ULONG_PTR FileId = (ULONG_PTR)DeviceObject; in IopReadBootRecord() local
74 Status = ArcSeek(FileId, &Position, SeekAbsolute); in IopReadBootRecord()
78 Status = ArcRead(FileId, BootRecord, SectorSize, &BytesRead); in IopReadBootRecord()
/reactos/boot/freeldr/freeldr/
H A Dmiscboot.c48 ULONG FileId; in LoadAndBootSector() local
155 Status = FsOpenFile(FileName, BootPath, OpenReadOnly, &FileId); in LoadAndBootSector()
157 Status = ArcOpen((PSTR)BootPath, OpenReadOnly, &FileId); in LoadAndBootSector()
174 Status = ArcRead(FileId, UlongToPtr(LoadAddress), 512, &BytesRead); in LoadAndBootSector()
175 ArcClose(FileId); in LoadAndBootSector()
H A Doslist.c169 ULONG FileId; in InitOperatingSystemList() local
170 if (ArcOpen(SettingName, OpenReadOnly, &FileId) == ESUCCESS) in InitOperatingSystemList()
172 ArcClose(FileId); in InitOperatingSystemList()
/reactos/boot/freeldr/freeldr/arch/uefi/
H A Duefidisk.c111 UefiDiskClose(ULONG FileId) in UefiDiskClose() argument
113 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in UefiDiskClose()
120 UefiDiskGetFileInformation(ULONG FileId, FILEINFORMATION *Information) in UefiDiskGetFileInformation() argument
122 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in UefiDiskGetFileInformation()
140 UefiDiskOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId) in UefiDiskOpen() argument
150 TRACE("UefiDiskOpen: File ID: %d, Path: %s\n", FileId, Path); in UefiDiskOpen()
200 FsSetDeviceSpecific(*FileId, Context); in UefiDiskOpen()
206 UefiDiskRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count) in UefiDiskRead() argument
208 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in UefiDiskRead()
256 UefiDiskSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode) in UefiDiskSeek() argument
[all …]
/reactos/drivers/filesystems/cdfs/
H A Dstrucsup.c105 FILE_ID FileId; member
132 _Key.FileId = (F)->FileId; \
141 _Key.FileId = (F)->FileId; \
467 LONGLONG FileId = 0; in CdUpdateVcbFromVolDescriptor() local
527 *((PFILE_ID) &FileId), in CdUpdateVcbFromVolDescriptor()
600 CdFidSetDirectory( Vcb->RootIndexFcb->FileId ); in CdUpdateVcbFromVolDescriptor()
770 CdFidSetDirectory( Vcb->RootIndexFcb->FileId ); in CdUpdateVcbFromVolDescriptor()
988 _In_ FILE_ID FileId, in CdCreateFcb() argument
1090 NewFcb->FileId = FileId; in CdCreateFcb()
2110 _In_ FILE_ID FileId argument
[all …]
H A Dcreate.c1544 FILE_ID FileId; in CdOpenByFileId() local
1568 if (CdFidIsDirectory( FileId )) { in CdOpenByFileId()
1577 if (CdQueryFidDirentOffset( FileId ) != 0) { in CdOpenByFileId()
1598 NextFcb = CdLookupFcbTable( IrpContext, Vcb, FileId ); in CdOpenByFileId()
1606 StreamOffset = CdQueryFidPathTableOffset( FileId ); in CdOpenByFileId()
1764 StreamOffset = CdQueryFidDirentOffset( FileId ); in CdOpenByFileId()
2151 FILE_ID FileId; in CdOpenDirectoryFromPathEntry() local
2200 FileId.QuadPart = 0; in CdOpenDirectoryFromPathEntry()
2202 CdFidSetDirectory( FileId ); in CdOpenDirectoryFromPathEntry()
2429 FILE_ID FileId; in _Requires_lock_held_() local
[all …]
H A Dcddata.c78 ULONG CdAudioDirentSize = FIELD_OFFSET( RAW_DIRENT, FileId ) + sizeof( CdAudioFileName ) + sizeof( …
79 ULONG CdAudioDirentsPerSector = SECTOR_SIZE / (FIELD_OFFSET( RAW_DIRENT, FileId ) + sizeof( CdAudio…
80 ULONG CdAudioSystemUseOffset = FIELD_OFFSET( RAW_DIRENT, FileId ) + sizeof( CdAudioFileName );
467 _In_opt_ ULONG FileId, in CdRaiseStatusEx() argument
477 …gPrint( "%p CdRaiseStatusEx 0x%x @ fid %d, line %d\n", PsGetCurrentThread(), Status, FileId, Line); in CdRaiseStatusEx()
500 DbgPrint( "CDFS: (FILEID %d LINE %d)\n", FileId, Line); in CdRaiseStatusEx()
516 IrpContext->RaisedAtLineFile = (FileId << 16) | Line; in CdRaiseStatusEx()
/reactos/boot/freeldr/freeldr/disk/
H A Dramdisk.c29 static ARC_STATUS RamDiskClose(ULONG FileId) in RamDiskClose() argument
35 static ARC_STATUS RamDiskGetFileInformation(ULONG FileId, FILEINFORMATION* Information) in RamDiskGetFileInformation() argument
44 static ARC_STATUS RamDiskOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in RamDiskOpen() argument
50 static ARC_STATUS RamDiskRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in RamDiskRead() argument
73 static ARC_STATUS RamDiskSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) in RamDiskSeek() argument
H A Dscsiport.c176 static ARC_STATUS DiskClose(ULONG FileId) in DiskClose() argument
178 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskClose()
185 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskGetFileInformation()
202 static ARC_STATUS DiskOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) in DiskOpen() argument
267 FsSetDeviceSpecific(*FileId, Context); in DiskOpen()
272 static ARC_STATUS DiskRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count) in DiskRead() argument
274 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskRead()
384 DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); in DiskSeek()
839 ULONG FileId, i; in SpiScanDevice() local
850 Status = ArcOpen(PartitionName, OpenReadOnly, &FileId); in SpiScanDevice()
[all …]
/reactos/boot/freeldr/freeldr/lib/
H A Dpeloader.c854 ULONG FileId; in PeLdrLoadImageEx() local
868 Status = ArcOpen((PSTR)FilePath, OpenReadOnly, &FileId); in PeLdrLoadImageEx()
876 Status = ArcRead(FileId, HeadersBuffer, SECTOR_SIZE * 2, &BytesRead); in PeLdrLoadImageEx()
880 ArcClose(FileId); in PeLdrLoadImageEx()
889 ArcClose(FileId); in PeLdrLoadImageEx()
897 ArcClose(FileId); in PeLdrLoadImageEx()
918 ArcClose(FileId); in PeLdrLoadImageEx()
938 ArcClose(FileId); in PeLdrLoadImageEx()
983 Status = ArcSeek(FileId, &Position, SeekAbsolute); in PeLdrLoadImageEx()
988 …Status = ArcRead(FileId, (PUCHAR)PhysicalBase + SectionHeader->VirtualAddress, SizeOfRawData, &Byt… in PeLdrLoadImageEx()
[all …]
/reactos/boot/freeldr/freeldr/ntldr/
H A Dwlregistry.c51 ULONG FileId; in WinLdrLoadSystemHive() local
68 Status = ArcOpen(FullHiveName, OpenReadOnly, &FileId); in WinLdrLoadSystemHive()
77 Status = ArcGetFileInformation(FileId, &FileInfo); in WinLdrLoadSystemHive()
82 ArcClose(FileId); in WinLdrLoadSystemHive()
96 ArcClose(FileId); in WinLdrLoadSystemHive()
108 Status = ArcRead(FileId, HiveDataPhysical, HiveFileSize, &BytesRead); in WinLdrLoadSystemHive()
113 ArcClose(FileId); in WinLdrLoadSystemHive()
118 BootFileSystem = FsGetServiceName(FileId); in WinLdrLoadSystemHive()
120 ArcClose(FileId); in WinLdrLoadSystemHive()
/reactos/sdk/include/reactos/arc/
H A Darc.h586 ULONG FileId
592 ULONG FileId,
601 ULONG* FileId
607 ULONG FileId,
615 ULONG FileId,

123