Lines Matching refs:secs
276 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument
280 if (secs < MINSEC) in ntp_update_offset_fll()
283 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
288 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
295 long secs; in ntp_update_offset() local
314 secs = get_seconds() - time_reftime; in ntp_update_offset()
316 secs = 0; in ntp_update_offset()
321 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset()
328 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset()
329 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset()
331 freq_adj += (offset64 * secs) << in ntp_update_offset()
393 int second_overflow(unsigned long secs) in second_overflow() argument
407 ntp_next_leap_sec = secs + SECS_PER_DAY - in second_overflow()
408 (secs % SECS_PER_DAY); in second_overflow()
411 ntp_next_leap_sec = secs + SECS_PER_DAY - in second_overflow()
412 ((secs+1) % SECS_PER_DAY); in second_overflow()
419 } else if (secs % SECS_PER_DAY == 0) { in second_overflow()
430 } else if ((secs + 1) % SECS_PER_DAY == 0) { in second_overflow()