Lines Matching defs:ntotslabs
1643 int minperpool, ntotslabs, nxslabs, nslabs;
1663 idn.slabpool->ntotslabs = ntotslabs = nwr_available / IDN_SLAB_SIZE;
1664 ASSERT(ntotslabs > 0);
1665 minperpool = (ntotslabs < IDN_SLAB_MINPERPOOL) ?
1667 idn.slabpool->npools = (ntotslabs + (minperpool - 1)) / minperpool;
1676 minperpool = (ntotslabs < idn.slabpool->npools) ?
1677 1 : (ntotslabs / idn.slabpool->npools);
1685 if (ntotslabs > (idn.slabpool->npools * minperpool))
1686 nxslabs = ntotslabs - (idn.slabpool->npools * minperpool);
1693 sp = GETSTRUCT(smr_slab_t, idn.slabpool->ntotslabs);
1699 (p < idn.slabpool->npools) && (ntotslabs > 0);
1700 p++, ntotslabs -= nslabs) {
1702 nslabs = (ntotslabs < minperpool) ? ntotslabs : minperpool;
1721 ASSERT((ntotslabs == 0) && (nxslabs == 0));
1726 + (idn.slabpool->ntotslabs * IDN_SLAB_SIZE)));
1740 FREESTRUCT(idn.slabpool->savep, smr_slab_t, idn.slabpool->ntotslabs);
1837 idn.slabpool->ntotslabs)));
1919 idn.slabpool->ntotslabs)));