Lines Matching refs:bpbBytesPerSec
68 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()
85 if (boot->bpbBytesPerSec % DOSBOOTBLOCKSIZE_REAL != 0 || in readboot()
86 boot->bpbBytesPerSec / DOSBOOTBLOCKSIZE_REAL == 0) { in readboot()
87 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()
130 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
131 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
157 boot->bpbBytesPerSec, SEEK_SET) in readboot()
158 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
177 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot()
179 != boot->bpbBackup * boot->bpbBytesPerSec in readboot()
216 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()
236 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 4; in readboot()
239 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec) / 2; in readboot()
242 boot->NumFatEntries = (boot->FATsecs * boot->bpbBytesPerSec * 2) / 3; in readboot()
251 boot->ClusterSize = boot->bpbBytesPerSec * boot->bpbSecPerClust; in readboot()
264 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
265 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()
278 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
279 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()