Lines Matching defs:hrtimer
12 #include <linux/hrtimer.h>
116 static enum hrtimer_restart ptp_reset_thresh(struct hrtimer *hrtimer)
118 struct ptp *ptp = container_of(hrtimer, struct ptp, hrtimer);
138 hrtimer_forward_now(hrtimer, period_ns);
149 hrtimer_start(&ptp->hrtimer, period_ns, HRTIMER_MODE_REL);
460 if (hrtimer_active(&ptp->hrtimer))
461 hrtimer_cancel(&ptp->hrtimer);
503 * one second boundary, the hrtimer handler will be invoked and
548 hrtimer_init(&ptp->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
549 ptp->hrtimer.function = ptp_reset_thresh;
580 if (cn10k_ptp_errata(ptp) && hrtimer_active(&ptp->hrtimer))
581 hrtimer_cancel(&ptp->hrtimer);