Lines Matching refs:entry
45 struct bpf_dispatcher_prog *entry; in bpf_dispatcher_add_prog() local
50 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_add_prog()
51 if (entry) { in bpf_dispatcher_add_prog()
52 refcount_inc(&entry->users); in bpf_dispatcher_add_prog()
56 entry = bpf_dispatcher_find_free(d); in bpf_dispatcher_add_prog()
57 if (!entry) in bpf_dispatcher_add_prog()
61 entry->prog = prog; in bpf_dispatcher_add_prog()
62 refcount_set(&entry->users, 1); in bpf_dispatcher_add_prog()
70 struct bpf_dispatcher_prog *entry; in bpf_dispatcher_remove_prog() local
75 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_remove_prog()
76 if (!entry) in bpf_dispatcher_remove_prog()
79 if (refcount_dec_and_test(&entry->users)) { in bpf_dispatcher_remove_prog()
80 entry->prog = NULL; in bpf_dispatcher_remove_prog()