Lines Matching refs:secs
267 static inline s64 ntp_update_offset_fll(struct ntp_data *ntpdata, s64 offset64, long secs) in ntp_update_offset_fll() argument
271 if (secs < MINSEC) in ntp_update_offset_fll()
274 if (!(ntpdata->time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
279 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
285 long secs, real_secs; in ntp_update_offset() local
304 secs = (long)(real_secs - ntpdata->time_reftime); in ntp_update_offset()
306 secs = 0; in ntp_update_offset()
311 freq_adj = ntp_update_offset_fll(ntpdata, offset64, secs); in ntp_update_offset()
318 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + ntpdata->time_constant))) in ntp_update_offset()
319 secs = 1 << (SHIFT_PLL + 1 + ntpdata->time_constant); in ntp_update_offset()
321 freq_adj += (offset64 * secs) << in ntp_update_offset()
390 int second_overflow(time64_t secs) in second_overflow() argument
406 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow()
407 ntpdata->ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
410 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow()
411 ntpdata->ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
418 } else if (secs == ntpdata->ntp_next_leap_sec) { in second_overflow()
428 } else if (secs == ntpdata->ntp_next_leap_sec) { in second_overflow()