Lines Matching refs:secs
273 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument
277 if (secs < MINSEC) in ntp_update_offset_fll()
280 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
285 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
292 long secs; in ntp_update_offset() local
311 secs = get_seconds() - time_reftime; in ntp_update_offset()
313 secs = 0; in ntp_update_offset()
318 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset()
325 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset()
326 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset()
328 freq_adj += (offset64 * secs) << in ntp_update_offset()
374 int second_overflow(unsigned long secs) in second_overflow() argument
394 else if (secs % 86400 == 0) { in second_overflow()
404 else if ((secs + 1) % 86400 == 0) { in second_overflow()