Lines Matching refs:bpbBytesPerSec
71 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()
72 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()
73 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()
74 !powerof2(boot->bpbBytesPerSec)) { in readboot()
75 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()
202 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
203 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
229 boot->bpbBytesPerSec, SEEK_SET) in readboot()
230 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
260 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()
307 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 4; in readboot()
310 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 2; in readboot()
313 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec * 2) / 3; in readboot()
330 boot->ClusterSize = boot->bpbBytesPerSec * boot->bpbSecPerClust; in readboot()
343 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
344 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()
357 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
358 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()