Home
last modified time | relevance | path

Searched refs:SecPerClust (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/usr.sbin/makefs/msdos/
H A Dmsdosfs_vfsops.c92 uint8_t SecPerClust; in msdosfs_mount() local
127 SecPerClust = b50->bpbSecPerClust; in msdosfs_mount()
145 if (!pmp->pm_BytesPerSec || !SecPerClust in msdosfs_mount()
149 pmp->pm_BytesPerSec, SecPerClust, in msdosfs_mount()
212 if ( (SecPerClust == 0) in msdosfs_mount()
213 || (SecPerClust & (SecPerClust - 1)) in msdosfs_mount()
236 SecPerClust *= tmp; in msdosfs_mount()
262 SecPerClust; in msdosfs_mount()
305 pmp->pm_bpcluster = SecPerClust * pmp->pm_BytesPerSec; in msdosfs_mount()
/netbsd-src/sbin/fsck_msdos/
H A Dboot.c84 boot->SecPerClust = block[13]; in readboot()
85 if (boot->SecPerClust == 0 || popcount(boot->SecPerClust) != 1) { in readboot()
86 pfatal("Invalid cluster size: %u\n", boot->SecPerClust); in readboot()
232 if (boot->SecPerClust == 0) { in readboot()
233 pfatal("Invalid cluster size: %u", boot->SecPerClust); in readboot()
242 if (boot->FirstCluster + boot->SecPerClust > boot->NumSectors) { in readboot()
253 (boot->NumSectors - boot->FirstCluster) / boot->SecPerClust; in readboot()
292 boot->ClusterSize = boot->BytesPerSec * boot->SecPerClust; in readboot()
H A Ddir.c226 b2 = boot->SecPerClust * boot->BytesPerSec; in resetDosDirSection()
319 int clsz = boot->SecPerClust * boot->BytesPerSec; in delete()
329 off = (startcl - CLUST_FIRST) * boot->SecPerClust + boot->FirstCluster; in delete()
493 last = boot->SecPerClust * boot->BytesPerSec; in readDosDirSection()
494 off = (cl - CLUST_FIRST) * boot->SecPerClust + boot->FirstCluster; in readDosDirSection()
H A Ddosfs.h43 u_int SecPerClust; /* sectors per cluster */ member
/netbsd-src/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c468 uint8_t SecPerClust; in msdosfs_mountfs() local
553 SecPerClust = b50->bpbSecPerClust; in msdosfs_mountfs()
584 if ((SecPerClust == 0) || !powerof2(SecPerClust) || in msdosfs_mountfs()
586 (SecPerClust * pmp->pm_BytesPerSec > MAXBSIZE) || in msdosfs_mountfs()
665 SecPerClust *= BlkPerSec; in msdosfs_mountfs()
696 SecPerClust; in msdosfs_mountfs()
767 pmp->pm_bpcluster = SecPerClust * pmp->pm_BytesPerSec; in msdosfs_mountfs()