Lines Matching refs:N_INUSEBITS
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()
655 max_idx = pmp->pm_maxcluster / N_INUSEBITS; in chainlength()
656 idx = start / N_INUSEBITS; in chainlength()
657 start %= N_INUSEBITS; in chainlength()
667 len = N_INUSEBITS - start; in chainlength()
682 len += N_INUSEBITS; in chainlength()
782 idx = cn / N_INUSEBITS; in clusteralloc1()
784 map |= (1U << (cn % N_INUSEBITS)) - 1; in clusteralloc1()
786 cn = idx * N_INUSEBITS + ffs(map ^ FULL_RUN) - 1; in clusteralloc1()
796 cn += N_INUSEBITS - cn % N_INUSEBITS; in clusteralloc1()
799 idx = cn / N_INUSEBITS; in clusteralloc1()
801 map |= (1U << (cn % N_INUSEBITS)) - 1; in clusteralloc1()
803 cn = idx * N_INUSEBITS + ffs(map ^ FULL_RUN) - 1; in clusteralloc1()
813 cn += N_INUSEBITS - cn % N_INUSEBITS; in clusteralloc1()
913 for (cn = 0; cn < (pmp->pm_maxcluster + N_INUSEBITS) / N_INUSEBITS; cn++) in fillinusemap()
966 N_INUSEBITS) / N_INUSEBITS; cn++) in fillinusemap()
967 pmp->pm_inusemap[cn / N_INUSEBITS] |= 1U << (cn % N_INUSEBITS); in fillinusemap()