Lines Matching refs:spc
164 u_int8_t spc; /* sectors per cluster */
208 u_int spc; /* sectors per cluster */
547 bpb.spc = opt_b / bpb.bps;
552 bpb.spc = opt_c;
601 if (!bpb.spc)
632 bpb.spc = bytes_per_cluster / bpb.bps;
641 x += (MAXCLS12+1) * bpb.spc;
659 bpb.spc = bytes_per_cluster / bpb.bps;
667 bpb.spc = bytes_per_cluster / bpb.bps;
674 if (bpb.spc == 0)
689 (MAXCLS12+1) * bpb.spc)
696 (MAXCLS16+1) * bpb.spc)
743 (bpb.spc * bpb.bps * NPB + fat / BPN * bpb.nft));
760 cls = (bpb.bsec - x1) / bpb.spc;
770 bpb.bsec = bpb.res + bpb.bspf*bpb.nft + rds + x*bpb.spc;
782 bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;
787 "(%u bytes/cluster)\n", fname, cls * bpb.spc,
788 cls * bpb.spc == 1 ? "" : "s", cls, fat,
789 cls == 1 ? "" : "s", bpb.bps * bpb.spc);
830 sectors_to_write = dir + (fat == 32 ? bpb.spc : rds);
873 mk1(bsbpb->spc, bpb.spc);
1206 if (*fat != 0 || bpb->spc != 0 || bpb->bps != 512)
1220 bpb->spc = 16;
1226 bpb->spc = 32;
1232 bpb->spc = 32;
1238 bpb->spc = 64;
1243 bpb->spc = 64;
1257 printf("bps=%u spc=%u res=%u nft=%u", bpb->bps, bpb->spc, bpb->res,