Lines Matching refs:nent
86 (*cp)->bp[i].nent = 0; in init_cache()
130 if (bp->nent >= bp->nalloc) { in add_cache()
164 bp->itempp[bp->nent] = itemp; in add_cache()
165 bp->nent++; in add_cache()
182 for (i = 0; i < bp->nent; i++) in lookup_cache()
200 cp->bp[*bidx].nent == 0); (*bidx)++) in first_item()
203 if (*bidx < cp->hsz && cp->bp[*bidx].nent > 0) { in first_item()
225 if ((*iidx + 1) < cp->bp[*bidx].nent) { in next_item()
230 cp->bp[*bidx].nent == 0); in next_item()
233 if (*bidx < cp->hsz && cp->bp[*bidx].nent > 0) { in next_item()
266 for (j = 0; j < bp->nent; j++) { in des_cache()
302 for (iidx = 0; iidx < bp->nent; iidx++) in del_cache()
308 if (iidx < bp->nent) { in del_cache()
315 bp->nent--; in del_cache()
316 if (bp->nent == 0) { in del_cache()
321 for (tidx = iidx + 1; tidx < (bp->nent + 1); tidx++) { in del_cache()
354 if (bp->nent > 0) { in cache_stat()
356 " Entries %d Reallocs %d", bp->nent, in cache_stat()
360 ((bp->nent * 100)/bp->nalloc)); in cache_stat()
387 if (bp->nent > 0) in pr_cache()
388 for (iidx = 0; iidx < bp->nent; iidx++) { in pr_cache()