• Home
  • Raw
  • Download

Lines Matching refs:FatBs

206   FAT_BOOT_SECTOR       FatBs;  in FatOpenDevice()  local
223 Status = DiskIo->ReadDisk (DiskIo, Volume->MediaId, 0, sizeof (FatBs), &FatBs); in FatOpenDevice()
235 Sectors = FatBs.FatBsb.Sectors; in FatOpenDevice()
237 Sectors = FatBs.FatBsb.LargeSectors; in FatOpenDevice()
240 SectorsPerFat = FatBs.FatBsb.SectorsPerFat; in FatOpenDevice()
242 SectorsPerFat = FatBs.FatBse.Fat32Bse.LargeSectorsPerFat; in FatOpenDevice()
251 if (FatBs.FatBsb.ReservedSectors == 0 || FatBs.FatBsb.NumFats == 0 || Sectors == 0) { in FatOpenDevice()
255 if ((FatBs.FatBsb.SectorSize & (FatBs.FatBsb.SectorSize - 1)) != 0) { in FatOpenDevice()
259 BlockAlignment = (UINT8) HighBitSet32 (FatBs.FatBsb.SectorSize); in FatOpenDevice()
264 if ((FatBs.FatBsb.SectorsPerCluster & (FatBs.FatBsb.SectorsPerCluster - 1)) != 0) { in FatOpenDevice()
268 SectorsPerClusterAlignment = (UINT8) HighBitSet32 (FatBs.FatBsb.SectorsPerCluster); in FatOpenDevice()
273 if (FatBs.FatBsb.Media <= 0xf7 && in FatOpenDevice()
274 FatBs.FatBsb.Media != 0xf0 && in FatOpenDevice()
275 FatBs.FatBsb.Media != 0x00 && in FatOpenDevice()
276 FatBs.FatBsb.Media != 0x01 in FatOpenDevice()
284 if (FatBs.FatBsb.RootEntries == 0) { in FatOpenDevice()
290 Volume->RootEntries = FatBs.FatBsb.RootEntries; in FatOpenDevice()
295 …if ((SectorsPerFat == 0 || FatBs.FatBse.Fat32Bse.FsVersion != 0) || (FatBs.FatBse.Fat32Bse.Extende… in FatOpenDevice()
301 Volume->RootCluster = FatBs.FatBse.Fat32Bse.RootDirFirstCluster; in FatOpenDevice()
304 Volume->NumFats = FatBs.FatBsb.NumFats; in FatOpenDevice()
308 BlockSize = FatBs.FatBsb.SectorSize; in FatOpenDevice()
311 FatLba = FatBs.FatBsb.ReservedSectors; in FatOpenDevice()
312 RootLba = FatBs.FatBsb.NumFats * SectorsPerFat + FatLba; in FatOpenDevice()
366 Volume->FreeInfoPos = FatBs.FatBse.Fat32Bse.FsInfoSector * BlockSize; in FatOpenDevice()
367 if (FatBs.FatBse.Fat32Bse.FsInfoSector != 0) { in FatOpenDevice()