Lines Matching refs:bpbBytesPerSec

109     u_int8_t bpbBytesPerSec[2];		/* bytes per sector */
153 u_int bpbBytesPerSec; /* bytes per sector */
322 bpb.bpbBytesPerSec = o.bytes_per_sector;
331 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec);
345 if (bpb.bpbBytesPerSec < MINBPS ||
346 bpb.bpbBytesPerSec > MAXBPS ||
347 !powerof2(bpb.bpbBytesPerSec)) {
349 bpb.bpbBytesPerSec);
381 if (o.block_size < bpb.bpbBytesPerSec) {
383 o.block_size, bpb.bpbBytesPerSec);
386 if (o.block_size > bpb.bpbBytesPerSec * MAXSPC) {
388 o.block_size, bpb.bpbBytesPerSec * MAXSPC);
391 bpb.bpbSecPerClust = o.block_size / bpb.bpbBytesPerSec;
439 if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bpbBytesPerSec ||
440 sb.st_size < bpb.bpbBytesPerSec ||
441 sb.st_size > bpb.bpbBytesPerSec * MAXU16) {
445 bss = sb.st_size / bpb.bpbBytesPerSec;
453 bpb.bpbBytesPerSec * NPB) *
456 bpb.bpbBytesPerSec / sizeof(struct de)) +
459 howmany(DEFBLK, bpb.bpbBytesPerSec)))
463 howmany((RESFTE + MAXCLS16) * 2, bpb.bpbBytesPerSec) *
465 howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) +
468 howmany(8192, bpb.bpbBytesPerSec)))
518 MAX(x, MAX(16384 / bpb.bpbBytesPerSec, 4)) : x) + extra_res;
527 bpb.bpbBytesPerSec / sizeof(struct de));
530 DEFBLK, bpb.bpbBytesPerSec);
533 bpb.bpbBytesPerSec * NPB) * bpb.bpbFATs +
552 x = (u_int64_t)(bpb.bpbHugeSectors - x1) * bpb.bpbBytesPerSec * NPB /
553 (bpb.bpbSecPerClust * bpb.bpbBytesPerSec * NPB +
556 bpb.bpbBytesPerSec * NPB);
575 x = (u_int64_t)bpb.bpbBigFATsecs * bpb.bpbBytesPerSec * NPB / (fat / BPN) -
596 cls == 1 ? "" : "s", bpb.bpbBytesPerSec * bpb.bpbSecPerClust);
660 if ((n = read(fd1, img, bpb.bpbBytesPerSec)) == -1) {
664 if ((unsigned)n != bpb.bpbBytesPerSec) {
669 memset(img, 0, bpb.bpbBytesPerSec);
675 mk2(bsbpb->bpbBytesPerSec, bpb.bpbBytesPerSec);
758 img += bpb.bpbBytesPerSec;
877 if (ioctl(fd, BLKSSZGET, &bpb->bpbBytesPerSec) == -1) {
881 if (ckgeom(fname, bpb->bpbBytesPerSec, "bytes/sector") == -1) return -1;
888 u_int64_t sectors = device_size/bpb->bpbBytesPerSec;
891 sectors, device_size, bpb->bpbBytesPerSec);
937 if (bpb->bpbBytesPerSec)
938 dlp.d_secsize = bpb->bpbBytesPerSec;
939 if (bpb->bpbBytesPerSec == 0 && ioctl(fd, DIOCGSECTORSIZE,
970 if (bpb->bpbBytesPerSec == 0) {
973 bpb->bpbBytesPerSec = lp->d_secsize;
999 bpb->bpbBytesPerSec, bpb->bpbSecPerClust, bpb->bpbResSectors,