Lines Matching refs:alloc
400 /* Refill alloc array, but only if NUMA match */
407 pool->alloc.cache[pool->alloc.count++] = netmem;
419 } while (pool->alloc.count < PP_ALLOC_CACHE_REFILL);
422 if (likely(pool->alloc.count > 0)) {
423 netmem = pool->alloc.cache[--pool->alloc.count];
436 if (likely(pool->alloc.count)) {
438 netmem = pool->alloc.cache[--pool->alloc.count];
605 /* Don't support bulk alloc for high-order pages */
609 /* Unnecessary as alloc cache is empty, but guarantees zero count */
610 if (unlikely(pool->alloc.count > 0))
611 return pool->alloc.cache[--pool->alloc.count];
613 /* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
614 memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
617 (struct page **)pool->alloc.cache);
621 /* Pages have been filled into alloc.cache array, but count is zero and
625 netmem = pool->alloc.cache[i];
632 pool->alloc.cache[pool->alloc.count++] = netmem;
640 if (likely(pool->alloc.count > 0)) {
641 netmem = pool->alloc.cache[--pool->alloc.count];
647 /* When page just alloc'ed is should/must have refcnt 1. */
795 * alloc side cache. E.g. during RX-NAPI processing for XDP_DROP use-case.
802 if (unlikely(pool->alloc.count == PP_ALLOC_CACHE_SIZE)) {
808 pool->alloc.cache[pool->alloc.count++] = netmem;
1144 /* Empty alloc cache, assume caller made sure this is
1148 while (pool->alloc.count) {
1149 netmem = pool->alloc.cache[--pool->alloc.count];
1320 /* Flush pool alloc cache, as refill will check NUMA node */
1321 while (pool->alloc.count) {
1322 netmem = pool->alloc.cache[--pool->alloc.count];