• Home
  • Raw
  • Download

Lines Matching refs:OFile

39   FAT_OFILE *OFile;  in FatGetPosition()  local
42 OFile = IFile->OFile; in FatGetPosition()
44 if (OFile->Error == EFI_NOT_FOUND) { in FatGetPosition()
48 if (OFile->ODir != NULL) { in FatGetPosition()
76 FAT_OFILE *OFile; in FatSetPosition() local
79 OFile = IFile->OFile; in FatSetPosition()
81 if (OFile->Error == EFI_NOT_FOUND) { in FatSetPosition()
90 if (OFile->ODir != NULL) { in FatSetPosition()
98 FatResetODirCursor (OFile); in FatSetPosition()
104 Position = OFile->FileSize; in FatSetPosition()
133 FAT_OFILE *OFile; in FatIFileReadDir() local
138 OFile = IFile->OFile; in FatIFileReadDir()
139 ODir = OFile->ODir; in FatIFileReadDir()
149 FatResetODirCursor (OFile); in FatIFileReadDir()
155 Status = FatGetNextDirEnt (OFile, &DirEnt); in FatIFileReadDir()
165 Status = FatGetDirEntInfo (OFile->Volume, DirEnt, BufferSize, Buffer); in FatIFileReadDir()
211 FAT_OFILE *OFile; in FatIFileAccess() local
217 OFile = IFile->OFile; in FatIFileAccess()
218 Volume = OFile->Volume; in FatIFileAccess()
224 if ((OFile->ODir != NULL) && (IoMode == WriteData)) { in FatIFileAccess()
228 if (OFile->Error == EFI_NOT_FOUND) { in FatIFileAccess()
236 if (IFile->Position > OFile->FileSize) { in FatIFileAccess()
270 Status = OFile->Error; in FatIFileAccess()
272 if (OFile->ODir != NULL) { in FatIFileAccess()
278 OFile = NULL; in FatIFileAccess()
284 if (EndPosition > OFile->FileSize) { in FatIFileAccess()
292 *BufferSize -= (UINTN) EndPosition - OFile->FileSize; in FatIFileAccess()
297 Status = FatGrowEof (OFile, EndPosition); in FatIFileAccess()
304 FatOFileFlush (OFile); in FatIFileAccess()
305 OFile = NULL; in FatIFileAccess()
309 FatUpdateDirEntClusterSizeInfo (OFile); in FatIFileAccess()
313 Status = FatAccessOFile (OFile, IoMode, (UINTN) IFile->Position, BufferSize, Buffer, Task); in FatIFileAccess()
337 Status = FatCleanupVolume (Volume, OFile, Status, NULL); in FatIFileAccess()
462 IN FAT_OFILE *OFile, in FatAccessOFile() argument
476 Volume = OFile->Volume; in FatAccessOFile()
484 Status = FatOFilePosition (OFile, Position, BufferSize); in FatAccessOFile()
491 Len = BufferSize > OFile->PosRem ? OFile->PosRem : BufferSize; in FatAccessOFile()
496 Status = FatDiskIo (Volume, IoMode, OFile->PosDisk, Len, UserBuffer, Task); in FatAccessOFile()
507 OFile->Dirty = TRUE; in FatAccessOFile()
508 OFile->Archive = TRUE; in FatAccessOFile()
513 ASSERT (Position <= OFile->FileSize); in FatAccessOFile()
535 IN FAT_OFILE *OFile, in FatExpandOFile() argument
542 WritePos = OFile->FileSize; in FatExpandOFile()
543 Status = FatGrowEof (OFile, ExpandedSize); in FatExpandOFile()
545 Status = FatWriteZeroPool (OFile, WritePos); in FatExpandOFile()
565 IN FAT_OFILE *OFile, in FatWriteZeroPool() argument
575 AppendedSize = OFile->FileSize - WritePos; in FatWriteZeroPool()
595 Status = FatAccessOFile (OFile, WriteData, WritePos, &WriteSize, ZeroBuffer, NULL); in FatWriteZeroPool()
620 IN FAT_OFILE *OFile, in FatTruncateOFile() argument
624 OFile->FileSize = TruncatedSize; in FatTruncateOFile()
625 return FatShrinkEof (OFile); in FatTruncateOFile()