Lines Matching defs:cache
16 * Front-end kmalloc() with per-cpu per-bucket cache of free elements.
17 * Refill this cache asynchronously from irq_work.
27 * It's safe to allocate from cache of the current cpu with irqs disabled.
123 struct bpf_mem_cache cache[NUM_CACHES];
451 * the freelist cache will be elem_size * 64 (or less) on each cpu.
477 /* When page_size == 4k, order-0 cache will have low_mark == 2
548 ma->cache = pc;
562 c = &cc->cache[i];
611 c = &cc->cache[i];
664 if (ma->cache) {
666 c = per_cpu_ptr(ma->cache, cpu);
674 c = &cc->cache[i];
684 free_percpu(ma->cache);
686 ma->cache = NULL;
748 if (ma->cache) {
751 c = per_cpu_ptr(ma->cache, cpu);
766 c = &cc->cache[i];
903 ret = unit_alloc(this_cpu_ptr(ma->caches)->cache + idx);
920 unit_free(this_cpu_ptr(ma->caches)->cache + idx, ptr);
936 unit_free_rcu(this_cpu_ptr(ma->caches)->cache + idx, ptr);
943 ret = unit_alloc(this_cpu_ptr(ma->cache));
952 unit_free(this_cpu_ptr(ma->cache), ptr);
960 unit_free_rcu(this_cpu_ptr(ma->cache), ptr);
990 c = this_cpu_ptr(ma->cache);