Lines Matching refs:key

19 	__type(key, int);
27 __type(key, int);
38 __type(key, int);
45 __type(key, int);
52 __type(key, int);
69 static int timer_cb1(void *map, int *key, struct bpf_timer *timer) in timer_cb1() argument
79 if (*key == ARRAY) { in timer_cb1()
93 } else if (*key == LRU) { in timer_cb1()
118 if (*key != LRU) in timer_cb1()
164 static int timer_cb2(void *map, int *key, struct hmap_elem *val) in timer_cb2() argument
166 if (*key == HTAB) in timer_cb2()
173 } else if (*key == HTAB) { in timer_cb2()
196 bpf_map_delete_elem(map, key); in timer_cb2()
207 if (*key != HTAB_MALLOC) in timer_cb2()
217 bpf_map_delete_elem(map, key); in timer_cb2()
227 int key = HTAB, key_malloc = HTAB_MALLOC; in bpf_timer_test() local
229 val = bpf_map_lookup_elem(&hmap, &key); in bpf_timer_test()
250 int key = HTAB, key_malloc = HTAB_MALLOC; in BPF_PROG2() local
253 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
254 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
258 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
270 key = 0; in BPF_PROG2()
271 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
272 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
275 bpf_map_delete_elem(&hmap, &key); in BPF_PROG2()
276 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
277 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
297 static int timer_cb3(void *map, int *key, struct bpf_timer *timer) in timer_cb3() argument
316 int key = 0; in BPF_PROG2() local
321 timer = bpf_map_lookup_elem(&abs_timer, &key); in BPF_PROG2()