Lines Matching refs:secs
270 static inline s64 ntp_update_offset_fll(struct ntp_data *ntpdata, s64 offset64, long secs) in ntp_update_offset_fll() argument
274 if (secs < MINSEC) in ntp_update_offset_fll()
277 if (!(ntpdata->time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
282 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
288 long secs, real_secs; in ntp_update_offset() local
307 secs = (long)(real_secs - ntpdata->time_reftime); in ntp_update_offset()
309 secs = 0; in ntp_update_offset()
314 freq_adj = ntp_update_offset_fll(ntpdata, offset64, secs); in ntp_update_offset()
321 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + ntpdata->time_constant))) in ntp_update_offset()
322 secs = 1 << (SHIFT_PLL + 1 + ntpdata->time_constant); in ntp_update_offset()
324 freq_adj += (offset64 * secs) << in ntp_update_offset()
398 int second_overflow(unsigned int tkid, time64_t secs) in second_overflow() argument
414 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow()
415 ntpdata->ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
418 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow()
419 ntpdata->ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
426 } else if (secs == ntpdata->ntp_next_leap_sec) { in second_overflow()
436 } else if (secs == ntpdata->ntp_next_leap_sec) { in second_overflow()