Lines Matching refs:refcnt
638 if (atomic64_dec_and_test(&map->refcnt)) { in __bpf_map_put()
1117 atomic64_set(&map->refcnt, 1); in map_create()
1214 atomic64_inc(&map->refcnt); in bpf_map_inc()
1220 atomic64_inc(&map->refcnt); in bpf_map_inc_with_uref()
1261 refold = atomic64_fetch_add_unless(&map->refcnt, 1, 0); in __bpf_map_inc_not_zero()
2072 if (atomic64_dec_and_test(&aux->refcnt)) { in __bpf_prog_put()
2206 atomic64_add(i, &prog->aux->refcnt); in bpf_prog_add()
2217 WARN_ON(atomic64_sub_return(i, &prog->aux->refcnt) == 0); in bpf_prog_sub()
2223 atomic64_inc(&prog->aux->refcnt); in bpf_prog_inc()
2232 refold = atomic64_fetch_add_unless(&prog->aux->refcnt, 1, 0); in bpf_prog_inc_not_zero()
2590 atomic64_set(&prog->aux->refcnt, 1); in bpf_prog_load()
2686 atomic64_set(&link->refcnt, 1); in bpf_link_init()
2720 atomic64_inc(&link->refcnt); in bpf_link_inc()
2748 if (!atomic64_dec_and_test(&link->refcnt)) in bpf_link_put()
4723 return atomic64_fetch_add_unless(&link->refcnt, 1, 0) ? link : ERR_PTR(-ENOENT); in bpf_link_inc_not_zero()