Lines Matching refs:offset
128 static inline s64 ntp_offset_chunk(struct ntp_data *ntpdata, s64 offset) in ntp_offset_chunk() argument
131 return offset; in ntp_offset_chunk()
133 return shift_right(offset, SHIFT_PLL + ntpdata->time_constant); in ntp_offset_chunk()
217 static inline s64 ntp_offset_chunk(struct ntp_data *ntpdata, s64 offset) in ntp_offset_chunk() argument
219 return shift_right(offset, SHIFT_PLL + ntpdata->time_constant); in ntp_offset_chunk()
285 static void ntp_update_offset(struct ntp_data *ntpdata, long offset) in ntp_update_offset() argument
295 offset = clamp(offset, -USEC_PER_SEC, USEC_PER_SEC); in ntp_update_offset()
296 offset *= NSEC_PER_USEC; in ntp_update_offset()
300 offset = clamp(offset, -MAXPHASE, MAXPHASE); in ntp_update_offset()
313 offset64 = offset; in ntp_update_offset()
757 ntp_update_offset(ntpdata, txc->offset); in process_adjtimex_modes()
781 ntpdata->time_adjust = txc->offset; in ntp_adjtimex()
787 txc->offset = save_adjust; in ntp_adjtimex()
806 txc->offset = shift_right(ntpdata->time_offset * NTP_INTERVAL_FREQ, NTP_SCALE_SHIFT); in ntp_adjtimex()
808 txc->offset = div_s64(txc->offset, NSEC_PER_USEC); in ntp_adjtimex()