Searched refs:ma (Results 1 – 2 of 2) sorted by relevance
357 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init() argument387 ma->cache = pc; in bpf_mem_alloc_init()410 ma->caches = pcc; in bpf_mem_alloc_init()435 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier() argument437 free_percpu(ma->cache); in free_mem_alloc_no_barrier()438 free_percpu(ma->caches); in free_mem_alloc_no_barrier()439 ma->cache = NULL; in free_mem_alloc_no_barrier()440 ma->caches = NULL; in free_mem_alloc_no_barrier()443 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc() argument450 free_mem_alloc_no_barrier(ma); in free_mem_alloc()[all …]
88 struct bpf_mem_alloc ma; member574 err = bpf_mem_alloc_init(&htab->ma, htab->elem_size, false); in htab_map_alloc()596 bpf_mem_alloc_destroy(&htab->ma); in htab_map_alloc()873 bpf_mem_cache_free(&htab->ma, l); in htab_elem_free()1011 l_new = bpf_mem_cache_alloc(&htab->ma); in alloc_htab_elem()1026 bpf_mem_cache_free(&htab->ma, l_new); in alloc_htab_elem()1531 bpf_mem_alloc_destroy(&htab->ma); in htab_map_free()