• Home
  • Raw
  • Download

Lines Matching refs:timer

1089 	struct hrtimer timer;  member
1099 struct bpf_hrtimer *timer; member
1111 struct bpf_hrtimer *t = container_of(hrtimer, struct bpf_hrtimer, timer); in bpf_timer_cb()
1148 BPF_CALL_3(bpf_timer_init, struct bpf_timer_kern *, timer, struct bpf_map *, map, in BPF_CALL_3() argument
1168 __bpf_spin_lock_irqsave(&timer->lock); in BPF_CALL_3()
1169 t = timer->timer; in BPF_CALL_3()
1180 t->value = (void *)timer - map->timer_off; in BPF_CALL_3()
1184 hrtimer_init(&t->timer, clockid, HRTIMER_MODE_REL_SOFT); in BPF_CALL_3()
1185 t->timer.function = bpf_timer_cb; in BPF_CALL_3()
1186 WRITE_ONCE(timer->timer, t); in BPF_CALL_3()
1197 WRITE_ONCE(timer->timer, NULL); in BPF_CALL_3()
1202 __bpf_spin_unlock_irqrestore(&timer->lock); in BPF_CALL_3()
1215 BPF_CALL_3(bpf_timer_set_callback, struct bpf_timer_kern *, timer, void *, callback_fn, in BPF_CALL_3() argument
1224 __bpf_spin_lock_irqsave(&timer->lock); in BPF_CALL_3()
1225 t = timer->timer; in BPF_CALL_3()
1256 __bpf_spin_unlock_irqrestore(&timer->lock); in BPF_CALL_3()
1268 BPF_CALL_3(bpf_timer_start, struct bpf_timer_kern *, timer, u64, nsecs, u64, flags) in BPF_CALL_3() argument
1277 __bpf_spin_lock_irqsave(&timer->lock); in BPF_CALL_3()
1278 t = timer->timer; in BPF_CALL_3()
1283 hrtimer_start(&t->timer, ns_to_ktime(nsecs), HRTIMER_MODE_REL_SOFT); in BPF_CALL_3()
1285 __bpf_spin_unlock_irqrestore(&timer->lock); in BPF_CALL_3()
1309 BPF_CALL_1(bpf_timer_cancel, struct bpf_timer_kern *, timer) in BPF_CALL_1() argument
1317 __bpf_spin_lock_irqsave(&timer->lock); in BPF_CALL_1()
1318 t = timer->timer; in BPF_CALL_1()
1333 __bpf_spin_unlock_irqrestore(&timer->lock); in BPF_CALL_1()
1337 ret = ret ?: hrtimer_cancel(&t->timer); in BPF_CALL_1()
1354 struct bpf_timer_kern *timer = val; in bpf_timer_cancel_and_free() local
1358 if (!READ_ONCE(timer->timer)) in bpf_timer_cancel_and_free()
1361 __bpf_spin_lock_irqsave(&timer->lock); in bpf_timer_cancel_and_free()
1363 t = timer->timer; in bpf_timer_cancel_and_free()
1370 WRITE_ONCE(timer->timer, NULL); in bpf_timer_cancel_and_free()
1372 __bpf_spin_unlock_irqrestore(&timer->lock); in bpf_timer_cancel_and_free()
1392 hrtimer_cancel(&t->timer); in bpf_timer_cancel_and_free()