• Home
  • Raw
  • Download

Lines Matching refs:bpbBytesPerSec

117     u_int8_t bpbBytesPerSec[2];		/* bytes per sector */  member
161 u_int bpbBytesPerSec; /* bytes per sector */ member
327 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()
335 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos()
349 if (!powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()
350 warnx("bytes/sector (%u) is not a power of 2", bpb.bpbBytesPerSec); in mkfs_msdos()
353 if (bpb.bpbBytesPerSec < MINBPS) { in mkfs_msdos()
355 bpb.bpbBytesPerSec, MINBPS); in mkfs_msdos()
387 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos()
389 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()
392 if (o.block_size > bpb.bpbBytesPerSec * MAXSPC) { in mkfs_msdos()
394 o.block_size, bpb.bpbBytesPerSec * MAXSPC); in mkfs_msdos()
397 bpb.bpbSecPerClust = o.block_size / bpb.bpbBytesPerSec; in mkfs_msdos()
448 if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bpbBytesPerSec || in mkfs_msdos()
449 sb.st_size < bpb.bpbBytesPerSec || in mkfs_msdos()
450 sb.st_size > bpb.bpbBytesPerSec * MAXU16) { in mkfs_msdos()
454 bss = sb.st_size / bpb.bpbBytesPerSec; in mkfs_msdos()
462 bpb.bpbBytesPerSec * NPB) * in mkfs_msdos()
465 bpb.bpbBytesPerSec / sizeof(struct de)) + in mkfs_msdos()
468 howmany(DEFBLK, bpb.bpbBytesPerSec))) in mkfs_msdos()
472 howmany((RESFTE + MAXCLS16) * 2, bpb.bpbBytesPerSec) * in mkfs_msdos()
474 howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) + in mkfs_msdos()
477 howmany(8192, bpb.bpbBytesPerSec))) in mkfs_msdos()
527 MAX(x, MAX(16384 / bpb.bpbBytesPerSec, 4)) : x) + extra_res; in mkfs_msdos()
536 bpb.bpbBytesPerSec / sizeof(struct de)); in mkfs_msdos()
539 DEFBLK, bpb.bpbBytesPerSec); in mkfs_msdos()
542 bpb.bpbBytesPerSec * NPB) * bpb.bpbFATs + in mkfs_msdos()
561 x = (u_int64_t)(bpb.bpbHugeSectors - x1) * bpb.bpbBytesPerSec * NPB / in mkfs_msdos()
562 (bpb.bpbSecPerClust * bpb.bpbBytesPerSec * NPB + in mkfs_msdos()
565 bpb.bpbBytesPerSec * NPB); in mkfs_msdos()
584 x = (u_int64_t)bpb.bpbBigFATsecs * bpb.bpbBytesPerSec * NPB / (fat / BPN) - in mkfs_msdos()
605 cls == 1 ? "" : "s", bpb.bpbBytesPerSec * bpb.bpbSecPerClust); in mkfs_msdos()
631 if (!(img = malloc(bpb.bpbBytesPerSec))) { in mkfs_msdos()
663 if ((n = read(fd1, img, bpb.bpbBytesPerSec)) == -1) { in mkfs_msdos()
667 if ((unsigned)n != bpb.bpbBytesPerSec) { in mkfs_msdos()
672 memset(img, 0, bpb.bpbBytesPerSec); in mkfs_msdos()
678 mk2(bsbpb->bpbBytesPerSec, bpb.bpbBytesPerSec); in mkfs_msdos()
757 if ((n = write(fd, img, bpb.bpbBytesPerSec)) == -1) { in mkfs_msdos()
761 if ((unsigned)n != bpb.bpbBytesPerSec) { in mkfs_msdos()
838 if (ioctl(fd, BLKSSZGET, &bpb->bpbBytesPerSec)) { in getdiskinfo()
842 if (ckgeom(fname, bpb->bpbBytesPerSec, "bytes/sector") == -1) return -1; in getdiskinfo()
910 if (bpb->bpbBytesPerSec) in getdiskinfo()
911 dlp.d_secsize = bpb->bpbBytesPerSec; in getdiskinfo()
912 if (bpb->bpbBytesPerSec == 0 && ioctl(fd, DIOCGSECTORSIZE, in getdiskinfo()
938 if (bpb->bpbBytesPerSec == 0) { in getdiskinfo()
941 bpb->bpbBytesPerSec = lp->d_secsize; in getdiskinfo()
968 bpb->bpbBytesPerSec, bpb->bpbSecPerClust, bpb->bpbResSectors, in print_bpb()