Home
last modified time | relevance | path

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

/openbmc/linux/drivers/ptp/
H A Dptp_dfl_tod.c129 u32 tod_period, tod_rem, tod_drift_adjust_fns, tod_drift_adjust_rate; in dfl_tod_adjust_fine() local
148 tod_drift_adjust_fns = tod_rem / gcd(tod_rem, rate); in dfl_tod_adjust_fine()
151 while ((tod_drift_adjust_fns > TOD_DRIFT_ADJUST_FNS_MAX) || in dfl_tod_adjust_fine()
153 tod_drift_adjust_fns >>= 1; in dfl_tod_adjust_fine()
157 if (tod_drift_adjust_fns == 0) in dfl_tod_adjust_fine()
164 writel(tod_drift_adjust_fns, base + TOD_DRIFT_ADJUST); in dfl_tod_adjust_fine()