Lines Matching refs:nalloc
87 (*cp)->bp[i].nalloc = 0; in init_cache()
130 if (bp->nent >= bp->nalloc) { in add_cache()
131 if (bp->nalloc == 0) { in add_cache()
137 "realloc(%d) bucket=%d\n", bp->nalloc + cp->bsz, in add_cache()
142 (bp->nalloc + cp->bsz)); in add_cache()
146 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache()
149 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache()
162 bp->nalloc += cp->bsz; in add_cache()
199 for (*bidx = 0; *bidx < cp->hsz && (cp->bp[*bidx].nalloc == 0 || in first_item()
229 *bidx < cp->hsz && (cp->bp[*bidx].nalloc == 0 || in next_item()
265 if (bp->nalloc > 0) { in des_cache()
319 bp->nalloc = 0; in del_cache()
352 if (bp->nalloc > 0) { in cache_stat()
353 (void) printf("Bucket #%d Alloc %d", bidx, bp->nalloc); in cache_stat()
357 (bp->nalloc / cp->hsz)); in cache_stat()
360 ((bp->nent * 100)/bp->nalloc)); in cache_stat()