Lines Matching refs:BytesPerSec
74 boot->BytesPerSec = block[11] + (block[12] << 8);
117 (boot->BytesPerSec % DOSBOOTBLOCKSIZE != 0) ||
118 (boot->BytesPerSec / DOSBOOTBLOCKSIZE == 0) ||
128 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
129 != boot->FSInfo * boot->BytesPerSec
155 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
156 != boot->FSInfo * boot->BytesPerSec
175 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET)
176 != boot->Backup * boot->BytesPerSec
215 if (boot->BytesPerSec % DOSBOOTBLOCKSIZE != 0) {
216 pfatal("Invalid sector size: %u", boot->BytesPerSec);
223 if (boot->BytesPerSec == 0) {
224 pfatal("Invalid sector size: %u", boot->BytesPerSec);
237 boot->ClusterOffset = (boot->RootDirEnts * 32 + boot->BytesPerSec - 1)
238 / boot->BytesPerSec
259 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 4;
262 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 2;
265 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec * 2) / 3;
274 boot->ClusterSize = boot->BytesPerSec * boot->SecPerClust;
289 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
290 != boot->FSInfo * boot->BytesPerSec
303 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
304 != boot->FSInfo * boot->BytesPerSec