Lines Matching refs:secs
272 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument
276 if (secs < MINSEC) in ntp_update_offset_fll()
279 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
284 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
291 long secs; in ntp_update_offset() local
310 secs = get_seconds() - time_reftime; in ntp_update_offset()
312 secs = 0; in ntp_update_offset()
317 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset()
324 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset()
325 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset()
327 freq_adj += (offset64 * secs) << in ntp_update_offset()
373 int second_overflow(unsigned long secs) in second_overflow() argument
393 else if (secs % 86400 == 0) { in second_overflow()
403 else if ((secs + 1) % 86400 == 0) { in second_overflow()