Searched refs:SecPerClust (Results 1 – 5 of 5) sorted by relevance
92 uint8_t SecPerClust; in msdosfs_mount() local127 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()
84 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()
226 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()
43 u_int SecPerClust; /* sectors per cluster */ member
468 uint8_t SecPerClust; in msdosfs_mountfs() local553 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()