Home
last modified time | relevance | path

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

/linux/drivers/ptp/
H A Dptp_dfl_tod.c174 u32 period, diff, rem, rem_period, adj_period; in dfl_tod_adjust_time() local
197 adj_period = period - (diff << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()
202 adj_period = period + (diff << PERIOD_FRAC_OFFSET); in dfl_tod_adjust_time()
214 ret = fine_adjust_tod_clock(dt, adj_period, count); in dfl_tod_adjust_time()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpts.c419 u64 adj_period, pps_adj_period; in am65_cpts_ptp_adjfine() local
438 adj_period = div_u64(cpts->refclk_freq, ppb); in am65_cpts_ptp_adjfine()
448 ppm_hi = upper_32_bits(adj_period) & 0x3FF; in am65_cpts_ptp_adjfine()
449 ppm_low = lower_32_bits(adj_period); in am65_cpts_ptp_adjfine()
462 pps_adj_period = adj_period * (cpts->ts_add_val + 1); in am65_cpts_ptp_adjfine()