Lines Matching refs:cache
109 struct bpf_mem_cache cache[NUM_CACHES]; member
387 ma->cache = pc; in bpf_mem_alloc_init()
404 c = &cc->cache[i]; in bpf_mem_alloc_init()
437 free_percpu(ma->cache); in free_mem_alloc_no_barrier()
439 ma->cache = NULL; in free_mem_alloc_no_barrier()
481 copy->cache = ma->cache; in destroy_mem_alloc()
482 ma->cache = NULL; in destroy_mem_alloc()
495 if (ma->cache) { in bpf_mem_alloc_destroy()
498 c = per_cpu_ptr(ma->cache, cpu); in bpf_mem_alloc_destroy()
522 c = &cc->cache[i]; in bpf_mem_alloc_destroy()
617 ret = unit_alloc(this_cpu_ptr(ma->caches)->cache + idx); in bpf_mem_alloc()
632 unit_free(this_cpu_ptr(ma->caches)->cache + idx, ptr); in bpf_mem_free()
639 ret = unit_alloc(this_cpu_ptr(ma->cache)); in bpf_mem_cache_alloc()
648 unit_free(this_cpu_ptr(ma->cache), ptr); in bpf_mem_cache_free()