Lines Matching refs:secs
281 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) in ntp_update_offset_fll() argument
285 if (secs < MINSEC) in ntp_update_offset_fll()
288 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) in ntp_update_offset_fll()
293 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); in ntp_update_offset_fll()
300 long secs; in ntp_update_offset() local
321 secs = (long)(__ktime_get_real_seconds() - time_reftime); in ntp_update_offset()
323 secs = 0; in ntp_update_offset()
328 freq_adj = ntp_update_offset_fll(offset64, secs); in ntp_update_offset()
335 if (unlikely(secs > 1 << (SHIFT_PLL + 1 + time_constant))) in ntp_update_offset()
336 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset()
338 freq_adj += (offset64 * secs) << in ntp_update_offset()
400 int second_overflow(time64_t secs) in second_overflow() argument
415 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow()
416 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
419 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow()
420 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
427 } else if (secs == ntp_next_leap_sec) { in second_overflow()
438 } else if (secs == ntp_next_leap_sec) { in second_overflow()