Lines Matching defs:spc
120 u_int8_t spc; /* sectors per cluster */
164 u_int spc; /* sectors per cluster */
182 { .bps = a, .spc = b, .res = c, .nft = d, .rde = e, \
340 if (bpb.spc == 0) { /* set defaults */
344 bpb.spc = 1; /* use 512 bytes */
348 bpb.spc = 1; /* use 512 bytes */
352 bpb.spc = 8; /* use 4k */
357 while (bpb.spc < 128 && x < x1) {
359 bpb.spc *= 2;
424 bpb.spc = o.block_size / bpb.bps;
432 bpb.spc = o.sectors_per_cluster;
486 howmany((RESFTE + (bpb.spc ? MINCLS16 : MAXCLS12 + 1)) *
487 ((bpb.spc ? 16 : 12) / BPN), bpb.bps * NPB) *
491 (bpb.spc ? MINCLS16 : MAXCLS12 + 1) *
492 (bpb.spc ? bpb.spc : howmany(DEFBLK, bpb.bps)))
499 (bpb.spc ? bpb.spc : howmany(8192, bpb.bps)))
537 if (!bpb.spc)
538 for (bpb.spc = howmany(o.fat_type == 16 ? DEFBLK16 : DEFBLK, bpb.bps);
539 bpb.spc < MAXSPC &&
544 (u_int64_t)(maxcls(o.fat_type) + 1) * bpb.spc <= bpb.bsec;
545 bpb.spc <<= 1);
558 (bpb.spc * bpb.bps * NPB + o.fat_type / BPN * bpb.nft);
566 cls = (bpb.bsec - x1) / bpb.spc;
576 if (bspf_is_calculated && o.sectors_per_cluster == 0 && bpb.spc > 2) {
587 bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;
593 "(%u bytes/cluster)\n", fname, cls * bpb.spc,
594 cls * bpb.spc == 1 ? "" : "s", cls, o.fat_type,
595 cls == 1 ? "" : "s", bpb.bps * bpb.spc);
648 for (lsn = 0; lsn < dir + (o.fat_type == 32 ? bpb.spc : rds); lsn++) {
651 fname,lsn,(dir + (o.fat_type == 32 ? bpb.spc : rds)),
652 (lsn*100)/(dir + (o.fat_type == 32 ? bpb.spc : rds)));
681 mk1(bsbpb->spc, bpb.spc);
925 printf("bps=%u spc=%u res=%u nft=%u", bpb->bps, bpb->spc, bpb->res,