Lines Matching refs:entry
46 struct bpf_dispatcher_prog *entry; in bpf_dispatcher_add_prog() local
51 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_add_prog()
52 if (entry) { in bpf_dispatcher_add_prog()
53 refcount_inc(&entry->users); in bpf_dispatcher_add_prog()
57 entry = bpf_dispatcher_find_free(d); in bpf_dispatcher_add_prog()
58 if (!entry) in bpf_dispatcher_add_prog()
62 entry->prog = prog; in bpf_dispatcher_add_prog()
63 refcount_set(&entry->users, 1); in bpf_dispatcher_add_prog()
71 struct bpf_dispatcher_prog *entry; in bpf_dispatcher_remove_prog() local
76 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_remove_prog()
77 if (!entry) in bpf_dispatcher_remove_prog()
80 if (refcount_dec_and_test(&entry->users)) { in bpf_dispatcher_remove_prog()
81 entry->prog = NULL; in bpf_dispatcher_remove_prog()