Lines Matching refs:need
423 unsigned int need = num; in mcache_alloc_ext() local
456 objs = MIN((unsigned int)ccp->cc_objs, need); in mcache_alloc_ext()
466 if ((need -= objs) == 0) { in mcache_alloc_ext()
509 &bkt, (need <= ccp->cc_bktsize) ? 1 : 2); in mcache_alloc_ext()
548 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext()
554 if (need > 0) { in mcache_alloc_ext()
571 (*cp->mc_slab_log)((num - need), *top, TRUE); in mcache_alloc_ext()
575 return num - need; in mcache_alloc_ext()
594 if (n != (num - need)) { in mcache_alloc_ext()
597 (void *)cp, num - need, n); in mcache_alloc_ext()
608 return num - need; in mcache_alloc_ext()
945 unsigned int need = num; in mcache_slab_alloc() local
990 if (--need == 0) { in mcache_slab_alloc()
995 return num - need; in mcache_slab_alloc()
1120 uint32_t need = num; in mcache_bkt_batch_alloc() local
1122 ASSERT(list != NULL && need > 0); in mcache_bkt_batch_alloc()
1142 if (--need == 0) { in mcache_bkt_batch_alloc()
1151 return num - need; in mcache_bkt_batch_alloc()