Lines Matching refs:hrtimer
56 unsigned long hrtimer; /* ms */ member
70 struct hrtimer hrtimer; member
156 static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt) in ot_hrtimer_handler()
158 struct ot_item *item = container_of(hrt, struct ot_item, hrtimer); in ot_hrtimer_handler()
173 if (!item->test->hrtimer) in ot_start_hrtimer()
175 hrtimer_start(&item->hrtimer, item->hrtcycle, HRTIMER_MODE_REL); in ot_start_hrtimer()
180 if (!item->test->hrtimer) in ot_stop_hrtimer()
182 hrtimer_cancel(&item->hrtimer); in ot_stop_hrtimer()
185 static int ot_init_hrtimer(struct ot_item *item, unsigned long hrtimer) in ot_init_hrtimer() argument
187 struct hrtimer *hrt = &item->hrtimer; in ot_init_hrtimer()
189 if (!hrtimer) in ot_init_hrtimer()
192 item->hrtcycle = ktime_set(0, hrtimer * 1000000UL); in ot_init_hrtimer()
213 ot_init_hrtimer(item, item->test->hrtimer); in ot_init_cpu_item()