Home
last modified time | relevance | path

Searched refs:maxsec (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/linux/
H A Dclockchips.h193 clockevents_calc_mult_shift(struct clock_event_device *ce, u32 freq, u32 maxsec) in clockevents_calc_mult_shift() argument
195 return clocks_calc_mult_shift(&ce->mult, &ce->shift, NSEC_PER_SEC, freq, maxsec); in clockevents_calc_mult_shift()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpts.c606 u64 frac, maxsec, ns; in cpts_calc_mult_shift() local
614 maxsec = cpts->cc.mask; in cpts_calc_mult_shift()
615 do_div(maxsec, freq); in cpts_calc_mult_shift()
619 if (maxsec > 10) in cpts_calc_mult_shift()
620 maxsec = 10; in cpts_calc_mult_shift()
623 cpts->ov_check_period = (HZ * maxsec) / 2; in cpts_calc_mult_shift()
631 freq, NSEC_PER_SEC, maxsec); in cpts_calc_mult_shift()
/openbmc/linux/kernel/time/
H A Dclocksource.c57 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec) in clocks_calc_mult_shift() argument
66 tmp = ((u64)maxsec * from) >> 32; in clocks_calc_mult_shift()