Lines Matching refs:freq_norm
932 static long hardpps_update_freq(struct pps_normtime freq_norm) in hardpps_update_freq() argument
938 if (freq_norm.sec > (2 << pps_shift)) { in hardpps_update_freq()
944 freq_norm.sec); in hardpps_update_freq()
952 ftemp = div_s64(((s64)(-freq_norm.nsec)) << NTP_SCALE_SHIFT, in hardpps_update_freq()
953 freq_norm.sec); in hardpps_update_freq()
1032 struct pps_normtime pts_norm, freq_norm; in __hardpps() local
1051 freq_norm = pps_normalize_ts(timespec64_sub(*raw_ts, pps_fbase)); in __hardpps()
1055 if ((freq_norm.sec == 0) || in __hardpps()
1056 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || in __hardpps()
1057 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { in __hardpps()
1068 if (freq_norm.sec >= (1 << pps_shift)) { in __hardpps()
1072 hardpps_update_freq(freq_norm); in __hardpps()