Lines Matching refs:timer
35 struct bpf_timer *timer; in timer_cb1() local
38 timer = bpf_map_lookup_elem(&timer2_map, &key); in timer_cb1()
39 if (timer) in timer_cb1()
40 timer2_err = bpf_timer_cancel(timer); in timer_cb1()
47 struct bpf_timer *timer; in timer_cb2() local
50 timer = bpf_map_lookup_elem(&timer1_map, &key); in timer_cb2()
51 if (timer) in timer_cb2()
52 timer1_err = bpf_timer_cancel(timer); in timer_cb2()
60 struct bpf_timer *timer; in timer1_prog() local
63 timer = bpf_map_lookup_elem(&timer1_map, &key); in timer1_prog()
64 if (timer) { in timer1_prog()
65 bpf_timer_init(timer, &timer1_map, CLOCK_BOOTTIME); in timer1_prog()
66 bpf_timer_set_callback(timer, timer_cb1); in timer1_prog()
67 bpf_timer_start(timer, 1, BPF_F_TIMER_CPU_PIN); in timer1_prog()
76 struct bpf_timer *timer; in timer2_prog() local
79 timer = bpf_map_lookup_elem(&timer2_map, &key); in timer2_prog()
80 if (timer) { in timer2_prog()
81 bpf_timer_init(timer, &timer2_map, CLOCK_BOOTTIME); in timer2_prog()
82 bpf_timer_set_callback(timer, timer_cb2); in timer2_prog()
83 bpf_timer_start(timer, 1, BPF_F_TIMER_CPU_PIN); in timer2_prog()