Lines Matching defs:ntv
75 struct ntptimeval ntv;
81 ntv.time.tv_sec = tod.tv_sec;
82 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC);
83 ntv.maxerror = time_maxerror;
84 ntv.esterror = time_esterror;
87 if (copyout(&ntv, tp, sizeof (ntv)))
92 if (TIMEVAL_OVERFLOW(&ntv.time))
95 TIMEVAL_TO_TIMEVAL32(&ntv32.time, &ntv.time);
97 ntv32.maxerror = ntv.maxerror;
98 ntv32.esterror = ntv.esterror;
144 struct timex ntv;
147 if (copyin(tp, &ntv, sizeof (ntv)))
155 modes = ntv.modes;
160 if (ntv.constant < 0 || ntv.constant > 30)
165 time_maxerror = ntv.maxerror;
167 time_esterror = ntv.esterror;
170 time_status |= ntv.status & ~STA_RONLY;
173 time_constant = ntv.constant;
175 clock_update(ntv.offset);
177 time_freq = ntv.freq - pps_freq;
181 ntv.offset = time_offset / SCALE_UPDATE;
182 ntv.freq = time_freq + pps_freq;
183 ntv.maxerror = time_maxerror;
184 ntv.esterror = time_esterror;
185 ntv.status = time_status;
186 ntv.constant = time_constant;
187 ntv.precision = time_precision;
188 ntv.tolerance = time_tolerance;
189 ntv.shift = pps_shift;
190 ntv.ppsfreq = pps_freq;
191 ntv.jitter = pps_jitter >> PPS_AVG;
192 ntv.stabil = pps_stabil;
193 ntv.calcnt = pps_calcnt;
194 ntv.errcnt = pps_errcnt;
195 ntv.jitcnt = pps_jitcnt;
196 ntv.stbcnt = pps_stbcnt;
199 if (copyout(&ntv, tp, sizeof (ntv)))