Searched refs:N_INUSEBITS (Results 1 – 5 of 5) sorted by relevance
387 assert((pmp->pm_inusemap[cn / N_INUSEBITS] & (1 << (cn % N_INUSEBITS))) in usemap_alloc()391 pmp->pm_inusemap[cn / N_INUSEBITS] |= 1U << (cn % N_INUSEBITS); in usemap_alloc()402 assert((pmp->pm_inusemap[cn / N_INUSEBITS] & (1 << (cn % N_INUSEBITS))) in usemap_free()407 pmp->pm_inusemap[cn / N_INUSEBITS] &= ~(1U << (cn % N_INUSEBITS)); in usemap_free()634 max_idx = pmp->pm_maxcluster / N_INUSEBITS; in chainlength()635 idx = start / N_INUSEBITS; in chainlength()636 start %= N_INUSEBITS; in chainlength()646 len = N_INUSEBITS - start; in chainlength()661 len += N_INUSEBITS; in chainlength()754 idx = cn / N_INUSEBITS; in clusteralloc1()[all …]
297 ((pmp->pm_maxcluster + N_INUSEBITS) / N_INUSEBITS)); in m_msdosfs_mount()
395 KASSERT((pmp->pm_inusemap[cn / N_INUSEBITS] & in usemap_alloc()396 (1U << (cn % N_INUSEBITS))) == 0, in usemap_alloc()397 ("Allocating used sector %ld %ld %x", cn, cn % N_INUSEBITS, in usemap_alloc()398 (unsigned)pmp->pm_inusemap[cn / N_INUSEBITS])); in usemap_alloc()399 pmp->pm_inusemap[cn / N_INUSEBITS] |= 1U << (cn % N_INUSEBITS); in usemap_alloc()415 if ((pmp->pm_inusemap[cn / N_INUSEBITS] & in usemap_free()416 (1U << (cn % N_INUSEBITS))) == 0) { in usemap_free()418 pmp->pm_mountp->mnt_stat.f_mntonname, cn, cn % N_INUSEBITS, in usemap_free()419 (unsigned)pmp->pm_inusemap[cn / N_INUSEBITS]); in usemap_free()425 pmp->pm_inusemap[cn / N_INUSEBITS] &= ~(1U << (cn % N_INUSEBITS)); in usemap_free()[all …]
140 #define N_INUSEBITS (8 * sizeof(u_int)) macro
808 N_INUSEBITS) * sizeof(*pmp->pm_inusemap), M_MSDOSFSFAT, M_WAITOK); in mountmsdosfs()