Lines Matching refs:bs

91 	struct bootsec	bs;
109 #define PC_BPSEC(h) ltohs((h)->bs.bps[0])
110 #define PC_RESSEC(h) ltohs((h)->bs.res_sec[0])
111 #define PC_NROOTENT(h) ltohs((h)->bs.rdirents[0])
112 #define PC_NSEC(h) ltohs((h)->bs.numsect[0])
223 bcopy(buf, &h->bs, sizeof (h->bs));
227 h->bs.fatsec = ltohs(h->bs.fatsec);
228 h->bs.spt = ltohs(h->bs.spt);
229 h->bs.nhead = ltohs(h->bs.nhead);
230 h->bs.hiddensec = ltohi(h->bs.hiddensec);
231 h->bs.totalsec = ltohi(h->bs.totalsec);
247 switch (h->bs.mediadesriptor) {
270 (h->bs.fatsec > 0) &&
271 ((PC_NSEC(h) == 0 && h->bs.totalsec > 0) ||
277 (h->bs.fatsec == 0 && h->bs32.f_fatlength > 0) &&
278 ((PC_NSEC(h) == 0 && h->bs.totalsec > 0) ||
281 fatmatch = (PC_NSEC(h) > 0 && h->bs.fatsec > 0);
285 h->bs.spcl > 0 && PC_RESSEC(h) >= 1 && h->bs.nfat > 0);
294 h->TotSec = h->bs.totalsec;
296 if (h->bs.fatsec != 0) {
297 h->FATSz = h->bs.fatsec;
301 if ((h->bps == 0) || (h->bs.spcl == 0)) {
307 PC_RESSEC(h) + h->bs.nfat * h->FATSz + h->RootDirSectors;
309 h->CountOfClusters = h->DataSec / h->bs.spcl;
365 FirstRootDirSecNum = PC_RESSEC(h) + h->bs.nfat * h->bs.fatsec;
404 clustersize = h->bs.spcl * h->bps;
412 (n - 2) * h->bs.spcl + h->FirstDataSector;
511 h->bps, h->bs.spcl);
514 (unsigned short)PC_RESSEC(h), h->bs.nfat);
520 h->bs.fatsec, h->bs.spt);
523 h->bs.nhead, h->bs.hiddensec);
527 (void) fprintf(fout, "Media Type: 0x%x ", h->bs.mediadesriptor);
529 switch (h->bs.mediadesriptor) {
584 ADD_UINT32(h, "sectors_per_cluster", h->bs.spcl);
586 ADD_UINT32(h, "fats", h->bs.nfat);
589 ADD_UINT32(h, "media", h->bs.mediadesriptor);
590 ADD_UINT32(h, "fat_size_16", h->bs.fatsec);
591 ADD_UINT32(h, "sectors_per_track", h->bs.spt);
592 ADD_UINT32(h, "heads", h->bs.nhead);
593 ADD_UINT32(h, "hidden_sectors", h->bs.hiddensec);
594 ADD_UINT32(h, "total_sectors_32", h->bs.totalsec);