Lines Matching defs:bs
498 parsebs(DOS_FS *fs, DOS_BS *bs)
502 if ((bs->jmp[0] != 0x69 &&
503 bs->jmp[0] != 0xe9 &&
504 (bs->jmp[0] != 0xeb || bs->jmp[2] != 0x90)) ||
505 bs->bpb.media < 0xf0)
507 if (cv2(bs->bpb.secsiz) != SECSIZ)
509 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1))
513 if ((fs->spf = cv2(bs->bpb.spf))) {
514 if (bs->bpb.fats != 2)
516 if (!(fs->dirents = cv2(bs->bpb.dirents)))
519 if (!(fs->spf = cv4(bs->bpb.lspf)))
521 if (!bs->bpb.fats || bs->bpb.fats > 16)
523 if ((fs->rdcl = cv4(bs->bpb.rdcl)) < LOCLUS)
526 if (!(fs->lsnfat = cv2(bs->bpb.ressec)))
528 fs->lsndir = fs->lsnfat + fs->spf * bs->bpb.fats;
530 if (!(sc = cv2(bs->bpb.secs)) && !(sc = cv4(bs->bpb.lsecs)))