Lines Matching refs:timer_ops
17 static const timer_ops_t *timer_ops; variable
25 assert((timer_ops != NULL) && in udelay()
26 (timer_ops->clk_mult != 0U) && in udelay()
27 (timer_ops->clk_div != 0U) && in udelay()
28 (timer_ops->get_timer_value != NULL)); in udelay()
33 assert(usec < (UINT64_MAX / timer_ops->clk_div)); in udelay()
35 start = timer_ops->get_timer_value(); in udelay()
39 div_round_up((uint64_t)usec * timer_ops->clk_div, in udelay()
40 timer_ops->clk_mult) + 1U; in udelay()
55 delta = start - timer_ops->get_timer_value(); in udelay()
81 timer_ops = ops_ptr; in timer_init()