Home
last modified time | relevance | path

Searched refs:bpbBytesPerSec (Results 1 – 10 of 10) sorted by relevance

/freebsd/sbin/fsck_msdosfs/
H A Dboot.c69 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()
70 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()
71 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()
72 !powerof2(boot->bpbBytesPerSec)) { in readboot()
73 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()
201 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
227 boot->bpbBytesPerSec, SEEK_SET) in readboot()
228 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
258 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()
342 != boot->bpbFSInfo * boot->bpbBytesPerSec in writefsinfo()
[all …]
H A Dfat.c591 off *= boot->bpbBytesPerSec; in checkdirty()
593 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty()
604 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty()
605 boot->bpbBytesPerSec) { in checkdirty()
658 off *= boot->bpbBytesPerSec; in cleardirty()
660 buffer = malloc(len = boot->bpbBytesPerSec); in cleardirty()
704 fat->fatsize = boot->FATsecs * boot->bpbBytesPerSec; in _readfat()
707 off *= boot->bpbBytesPerSec; in _readfat()
737 fat->fat32_offset = boot->bpbResSectors * boot->bpbBytesPerSec; in _readfat()
1160 dst_off *= boot->bpbBytesPerSec; in copyfat()
[all …]
H A Ddir.c230 cluster_size = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection()
306 clsz = boot->bpbSecPerClust * boot->bpbBytesPerSec; in delete()
318 off *= boot->bpbBytesPerSec; in delete()
504 buf = malloc(boot->bpbBytesPerSec); in check_subdirectory()
507 boot->bpbBytesPerSec); in check_subdirectory()
511 off *= boot->bpbBytesPerSec; in check_subdirectory()
513 read(fd, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) { in check_subdirectory()
590 iosize = boot->bpbSecPerClust * boot->bpbBytesPerSec; in readDosDirSection()
611 off *= boot->bpbBytesPerSec; in readDosDirSection()
1133 + boot->FirstCluster * boot->bpbBytesPerSec; in reconnect()
H A Ddosfs.h45 u_int bpbBytesPerSec; /* bytes per sector */ member
/freebsd/sbin/newfs_msdos/
H A Dmkfs_msdos.c351 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()
353 bpb.bpbBytesPerSec); in mkfs_msdos()
387 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()
461 bpb.bpbBytesPerSec * NPB) * in mkfs_msdos()
538 DEFBLK, bpb.bpbBytesPerSec); in mkfs_msdos()
564 bpb.bpbBytesPerSec * NPB); 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()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dbpb.h26 uint16_t bpbBytesPerSec; /* bytes per sector */ member
44 uint16_t bpbBytesPerSec; /* bytes per sector */ member
62 uint16_t bpbBytesPerSec; /* bytes per sector */ member
104 int8_t bpbBytesPerSec[2]; /* bytes per sector */ member
122 int8_t bpbBytesPerSec[2]; /* bytes per sector */ member
140 uint8_t bpbBytesPerSec[2]; /* bytes per sector */ member
H A Dbootsect.h82 #define bsBytesPerSec bsBPB.bpbBytesPerSec
H A Dmsdosfsmount.h145 #define pm_BytesPerSec pm_bpb.bpbBytesPerSec
H A Dmsdosfs_vfsops.c597 pmp->pm_BytesPerSec = getushort(b50->bpbBytesPerSec); in mountmsdosfs()
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_vfsops.c111 pmp->pm_BytesPerSec = getushort(b50->bpbBytesPerSec); in m_msdosfs_mount()