Lines Matching refs:bpb
68 BytesPerCluster = TheBIOSParameterBlock.bpb.sectors_per_cluster * in computeFileAreaSize()
69 TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
74 if (TheBIOSParameterBlock.bpb.sectors_in_volume > 0) in computeFileAreaSize()
75 dataSectors = TheBIOSParameterBlock.bpb.sectors_in_volume; in computeFileAreaSize()
78 TheBIOSParameterBlock.bpb.sectors_in_logical_volume; in computeFileAreaSize()
80 overhead = TheBIOSParameterBlock.bpb.resv_sectors; in computeFileAreaSize()
82 RootDirSize = TheBIOSParameterBlock.bpb.num_root_entries * in computeFileAreaSize()
84 overhead += RootDirSize / TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
86 if (TheBIOSParameterBlock.bpb.sectors_per_fat) { in computeFileAreaSize()
90 overhead += TheBIOSParameterBlock.bpb.num_fats * in computeFileAreaSize()
91 TheBIOSParameterBlock.bpb.sectors_per_fat; in computeFileAreaSize()
96 FATSize = TheBIOSParameterBlock.bpb.sectors_per_fat * in computeFileAreaSize()
97 TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
111 overhead += TheBIOSParameterBlock.bpb.num_fats * in computeFileAreaSize()
118 TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
127 TheBIOSParameterBlock.bpb.sectors_per_cluster; in computeFileAreaSize()
134 TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
154 TheBIOSParameterBlock.bpb.sectors_per_cluster, in computeFileAreaSize()
156 TheBIOSParameterBlock.bpb.sectors_per_cluster * in computeFileAreaSize()
157 TheBIOSParameterBlock.bpb.bytes_per_sector); in computeFileAreaSize()
203 (void) memcpy(&(TheBIOSParameterBlock.bpb), &(ubpb.bs.bs_front.bs_bpb), in readBPB()
204 sizeof (TheBIOSParameterBlock.bpb)); in readBPB()
215 if (TheBIOSParameterBlock.bpb.bytes_per_sector != BPSEC && in readBPB()
216 TheBIOSParameterBlock.bpb.bytes_per_sector != 2 * BPSEC && in readBPB()
217 TheBIOSParameterBlock.bpb.bytes_per_sector != 4 * BPSEC) { in readBPB()
223 if (!(ISP2(TheBIOSParameterBlock.bpb.sectors_per_cluster) && in readBPB()
224 IN_RANGE(TheBIOSParameterBlock.bpb.sectors_per_cluster, in readBPB()
232 if (TheBIOSParameterBlock.bpb.sectors_per_fat == 0) { in readBPB()
243 if ((TheBIOSParameterBlock.bpb.num_root_entries == 0) || in readBPB()
244 ((TheBIOSParameterBlock.bpb.num_root_entries * in readBPB()
246 TheBIOSParameterBlock.bpb.bytes_per_sector) != 0) { in readBPB()
254 if (TheBIOSParameterBlock.bpb.num_root_entries != 0) { in readBPB()
271 if (TheBIOSParameterBlock.bpb.num_fats > 4 || in readBPB()
272 TheBIOSParameterBlock.bpb.num_fats < 1) { in readBPB()