Lines Matching refs:val
39 static int timer_cb1(void *map, int *key, struct hmap_elem *val);
41 static int timer_cb2(void *map, int *key, struct hmap_elem *val)
44 bpf_timer_set_callback(&val->timer, timer_cb1);
45 if (bpf_timer_start(&val->timer, 1000, 0))
52 static int timer_cb1(void *map, int *key, struct hmap_elem *val)
55 bpf_timer_set_callback(&val->timer, timer_cb2);
56 if (bpf_timer_start(&val->timer, 1000, 0))
69 struct hmap_elem *val;
78 val = bpf_map_lookup_elem(inner_map, &hash_key);
79 if (!val)
82 bpf_timer_init(&val->timer, inner_map, CLOCK_MONOTONIC);
83 if (bpf_timer_set_callback(&val->timer, timer_cb1))
85 if (bpf_timer_start(&val->timer, 0, 0))