Lines Matching refs:BytesPerSec
74 boot->BytesPerSec = block[11] + (block[12] << 8);
109 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
110 != boot->FSInfo * boot->BytesPerSec
136 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
137 != boot->FSInfo * boot->BytesPerSec
156 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET)
157 != boot->Backup * boot->BytesPerSec
196 boot->ClusterOffset = (boot->RootDirEnts * 32 + boot->BytesPerSec - 1)
197 / boot->BytesPerSec
202 if (boot->BytesPerSec % DOSBOOTBLOCKSIZE != 0) {
203 pfatal("Invalid sector size: %u", boot->BytesPerSec);
231 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 4;
234 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 2;
237 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec * 2) / 3;
246 boot->ClusterSize = boot->BytesPerSec * boot->SecPerClust;
261 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
262 != boot->FSInfo * boot->BytesPerSec
275 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
276 != boot->FSInfo * boot->BytesPerSec