Home
last modified time | relevance | path

Searched refs:tod_drift_adjust_rate (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
149 tod_drift_adjust_rate = rate / gcd(tod_rem, rate); in dfl_tod_adjust_fine()
152 (tod_drift_adjust_rate > TOD_DRIFT_ADJUST_RATE_MAX)) { in dfl_tod_adjust_fine()
154 tod_drift_adjust_rate >>= 1; in dfl_tod_adjust_fine()
158 tod_drift_adjust_rate = 0; in dfl_tod_adjust_fine()
165 writel(tod_drift_adjust_rate, base + TOD_DRIFT_ADJUST_RATE); in dfl_tod_adjust_fine()