Lines Matching refs:bpbBytesPerSec
69 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()
70 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()
71 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()
72 !powerof2(boot->bpbBytesPerSec)) { in readboot()
73 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()
200 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
201 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
227 boot->bpbBytesPerSec, SEEK_SET) in readboot()
228 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
258 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()
305 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 4; in readboot()
308 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 2; in readboot()
311 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec * 2) / 3; in readboot()
328 boot->ClusterSize = boot->bpbBytesPerSec * boot->bpbSecPerClust; in readboot()
341 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
342 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()
355 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
356 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()