Lines Matching refs:need
428 unsigned int need = num; in mcache_alloc_ext() local
461 objs = MIN((unsigned int)ccp->cc_objs, need); in mcache_alloc_ext()
471 if ((need -= objs) == 0) { in mcache_alloc_ext()
514 &bkt, (need <= ccp->cc_bktsize) ? 1 : 2); in mcache_alloc_ext()
553 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext()
559 if (need > 0) { in mcache_alloc_ext()
576 (*cp->mc_slab_log)((num - need), *top, TRUE); in mcache_alloc_ext()
580 return num - need; in mcache_alloc_ext()
599 if (n != (num - need)) { in mcache_alloc_ext()
602 (void *)cp, num - need, n); in mcache_alloc_ext()
613 return num - need; in mcache_alloc_ext()
950 unsigned int need = num; in mcache_slab_alloc() local
995 if (--need == 0) { in mcache_slab_alloc()
1000 return num - need; in mcache_slab_alloc()
1125 uint32_t need = num; in mcache_bkt_batch_alloc() local
1127 ASSERT(list != NULL && need > 0); in mcache_bkt_batch_alloc()
1147 if (--need == 0) { in mcache_bkt_batch_alloc()
1156 return num - need; in mcache_bkt_batch_alloc()