Lines Matching refs:pm_maxcluster
391 KASSERT(cn <= pmp->pm_maxcluster, ("cn too large %lu %lu", cn, in usemap_alloc()
392 pmp->pm_maxcluster)); in usemap_alloc()
411 KASSERT(cn <= pmp->pm_maxcluster, ("cn too large %lu %lu", cn, in usemap_free()
412 pmp->pm_maxcluster)); in usemap_free()
507 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
588 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
653 if (start > pmp->pm_maxcluster) in chainlength()
655 max_idx = pmp->pm_maxcluster / N_INUSEBITS; in chainlength()
663 if (start + len > pmp->pm_maxcluster) in chainlength()
664 len = pmp->pm_maxcluster - start + 1; in chainlength()
670 if (start + len > pmp->pm_maxcluster) in chainlength()
671 len = pmp->pm_maxcluster - start + 1; in chainlength()
685 if (start + len > pmp->pm_maxcluster) in chainlength()
686 len = pmp->pm_maxcluster - start + 1; in chainlength()
715 if (pmp->pm_nxtfree > pmp->pm_maxcluster) in chainalloc()
781 for (cn = newst; cn <= pmp->pm_maxcluster;) { in clusteralloc1()
842 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
913 for (cn = 0; cn < (pmp->pm_maxcluster + N_INUSEBITS) / N_INUSEBITS; cn++) in fillinusemap()
922 for (cn = 0; cn <= pmp->pm_maxcluster; cn++) { in fillinusemap()
965 for (cn = pmp->pm_maxcluster + 1; cn < (pmp->pm_maxcluster + in fillinusemap()