Lines Matching refs:ptr
825 static void notrace unit_free(struct bpf_mem_cache *c, void *ptr) in unit_free() argument
827 struct llist_node *llnode = ptr - LLIST_NODE_SZ; in unit_free()
865 static void notrace unit_free_rcu(struct bpf_mem_cache *c, void *ptr) in unit_free_rcu() argument
867 struct llist_node *llnode = ptr - LLIST_NODE_SZ; in unit_free_rcu()
907 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free() argument
912 if (!ptr) in bpf_mem_free()
915 c = *(void **)(ptr - LLIST_NODE_SZ); in bpf_mem_free()
920 unit_free(this_cpu_ptr(ma->caches)->cache + idx, ptr); in bpf_mem_free()
923 void notrace bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free_rcu() argument
928 if (!ptr) in bpf_mem_free_rcu()
931 c = *(void **)(ptr - LLIST_NODE_SZ); in bpf_mem_free_rcu()
936 unit_free_rcu(this_cpu_ptr(ma->caches)->cache + idx, ptr); in bpf_mem_free_rcu()
947 void notrace bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_cache_free() argument
949 if (!ptr) in bpf_mem_cache_free()
952 unit_free(this_cpu_ptr(ma->cache), ptr); in bpf_mem_cache_free()
955 void notrace bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_cache_free_rcu() argument
957 if (!ptr) in bpf_mem_cache_free_rcu()
960 unit_free_rcu(this_cpu_ptr(ma->cache), ptr); in bpf_mem_cache_free_rcu()
973 void bpf_mem_cache_raw_free(void *ptr) in bpf_mem_cache_raw_free() argument
975 if (!ptr) in bpf_mem_cache_raw_free()
978 kfree(ptr - LLIST_NODE_SZ); in bpf_mem_cache_raw_free()