Lines Matching refs:bpbBytesPerSec

105     u_int8_t bpbBytesPerSec[2];		/* bytes per sector */  member
149 u_int bpbBytesPerSec; /* bytes per sector */ member
326 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()
335 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos()
349 if (bpb.bpbBytesPerSec < MINBPS || in mkfs_msdos()
350 bpb.bpbBytesPerSec > MAXBPS || in mkfs_msdos()
351 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()
353 bpb.bpbBytesPerSec); in mkfs_msdos()
385 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos()
387 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()
390 if (o.block_size > bpb.bpbBytesPerSec * MAXSPC) { in mkfs_msdos()
392 o.block_size, bpb.bpbBytesPerSec * MAXSPC); in mkfs_msdos()
395 bpb.bpbSecPerClust = o.block_size / bpb.bpbBytesPerSec; in mkfs_msdos()
417 bpb.bpbBytesPerSec / sizeof(struct de)); in mkfs_msdos()
418 if (bpb.bpbBytesPerSec == 0 || o.directory_entries >= MAXU16) in mkfs_msdos()
447 if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bpbBytesPerSec || in mkfs_msdos()
448 sb.st_size < bpb.bpbBytesPerSec || in mkfs_msdos()
449 sb.st_size > bpb.bpbBytesPerSec * MAXU16) { in mkfs_msdos()
453 bss = sb.st_size / bpb.bpbBytesPerSec; in mkfs_msdos()
461 bpb.bpbBytesPerSec * NPB) * in mkfs_msdos()
464 bpb.bpbBytesPerSec / sizeof(struct de)) + in mkfs_msdos()
467 howmany(DEFBLK, bpb.bpbBytesPerSec))) in mkfs_msdos()
471 howmany((RESFTE + MAXCLS16) * 2, bpb.bpbBytesPerSec) * in mkfs_msdos()
473 howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) + in mkfs_msdos()
476 howmany(8192, bpb.bpbBytesPerSec))) in mkfs_msdos()
526 MAX(x, MAX(16384 / bpb.bpbBytesPerSec, 4)) : x) + extra_res; in mkfs_msdos()
535 bpb.bpbBytesPerSec / sizeof(struct de)); in mkfs_msdos()
538 DEFBLK, bpb.bpbBytesPerSec); in mkfs_msdos()
541 bpb.bpbBytesPerSec * NPB) * bpb.bpbFATs + in mkfs_msdos()
560 x = (u_int64_t)(bpb.bpbHugeSectors - x1) * bpb.bpbBytesPerSec * NPB / in mkfs_msdos()
561 (bpb.bpbSecPerClust * bpb.bpbBytesPerSec * NPB + in mkfs_msdos()
564 bpb.bpbBytesPerSec * NPB); in mkfs_msdos()
586 x = (u_int64_t)bpb.bpbBigFATsecs * bpb.bpbBytesPerSec * NPB / (fat / BPN) - in mkfs_msdos()
607 cls == 1 ? "" : "s", bpb.bpbBytesPerSec * bpb.bpbSecPerClust); in mkfs_msdos()
671 if ((n = read(fd1, img, bpb.bpbBytesPerSec)) == -1) { in mkfs_msdos()
675 if ((unsigned)n != bpb.bpbBytesPerSec) { in mkfs_msdos()
680 memset(img, 0, bpb.bpbBytesPerSec); in mkfs_msdos()
686 mk2(bsbpb->bpbBytesPerSec, bpb.bpbBytesPerSec); in mkfs_msdos()
769 img += bpb.bpbBytesPerSec; in mkfs_msdos()
956 if (bpb->bpbBytesPerSec) in getdiskinfo()
957 dlp.d_secsize = bpb->bpbBytesPerSec; in getdiskinfo()
958 if (bpb->bpbBytesPerSec == 0 && ioctl(fd, DIOCGSECTORSIZE, in getdiskinfo()
990 if (bpb->bpbBytesPerSec == 0) { in getdiskinfo()
993 bpb->bpbBytesPerSec = lp->d_secsize; in getdiskinfo()
1019 bpb->bpbBytesPerSec, bpb->bpbSecPerClust, bpb->bpbResSectors, in print_bpb()