Home
last modified time | relevance | path

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

/openbmc/linux/drivers/ptp/
H A Dptp_dfl_tod.c40 #define PERIOD_FRAC_OFFSET 16 macro
140 tod_period = div_u64_rem(ppb << PERIOD_FRAC_OFFSET, rate, &tod_rem); in dfl_tod_adjust_fine()
196 diff = (period - TOD_PERIOD_MIN) >> PERIOD_FRAC_OFFSET; in dfl_tod_adjust_time()
197 adj_period = period - (diff << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()
199 rem_period = period - (rem << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()
201 diff = (TOD_PERIOD_MAX - period) >> PERIOD_FRAC_OFFSET; in dfl_tod_adjust_time()
202 adj_period = period + (diff << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()
204 rem_period = period + (rem << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()