Home
last modified time | relevance | path

Searched refs:ntv (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/kern/
H A Dkern_ntptime.c289 struct ntptimeval ntv; in sys_ntp_gettime() local
291 memset(&ntv, 0, sizeof(ntv)); in sys_ntp_gettime()
294 ntp_gettime1(&ntv); in sys_ntp_gettime()
297 td->td_retval[0] = ntv.time_state; in sys_ntp_gettime()
298 return (copyout(&ntv, uap->ntvp, sizeof(ntv))); in sys_ntp_gettime()
304 struct ntptimeval ntv; /* temporary structure */ in ntp_sysctl() local
306 memset(&ntv, 0, sizeof(ntv)); in ntp_sysctl()
309 ntp_gettime1(&ntv); in ntp_sysctl()
312 return (sysctl_handle_opaque(oidp, &ntv, sizeof(ntv), req)); in ntp_sysctl()
345 kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp) in kern_ntp_adjtime() argument
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_loopfilter.c136 static struct timex ntv; /* ntp_adjtime() parameters */ variable
761 ZERO(ntv); in local_clock()
763 ntv.modes = MOD_STATUS; in local_clock()
765 ntv.modes = MOD_BITS; in local_clock()
766 ntv.offset = var_long_from_dbl( in local_clock()
767 clock_offset, &ntv.modes); in local_clock()
769 ntv.constant = sys_poll; in local_clock()
771 ntv.constant = sys_poll - 4; in local_clock()
773 if (ntv.constant < 0) in local_clock()
774 ntv in local_clock()
[all...]
H A Drefclock_local.c149 struct timex ntv; in local_poll() local
184 memset(&ntv, 0, sizeof ntv); in local_poll()
185 switch (ntp_adjtime(&ntv)) { in local_poll()
/freebsd/contrib/ntp/util/
H A Dntptime.c93 struct timex ntv; in main() local
95 struct ntptimeval ntv; in main() local
236 status = syscall(BADCALL, &ntv); /* dummy parameter */ in main()
250 status = ntp_gettime(&ntv); in main()
255 times[c] = ntv.time.tv_frac_sec; in main()
269 status = ntp_gettime(&ntv); in main()
291 status = ntp_gettime(&ntv); in main()
297 time_frac = ntv.time.tv_frac_sec; in main()
300 ntv.time.tv_frac_sec /= 1000; in main()
306 tv.tv_sec = ntv.time.tv_sec; in main()
[all …]
/freebsd/contrib/ntp/include/
H A Dntp_syscall.h33 struct ntptimeval *ntv in ntp_gettime() argument
41 ntv->time = tntx.time; in ntp_gettime()
42 ntv->maxerror = tntx.maxerror; in ntp_gettime()
43 ntv->esterror = tntx.esterror; in ntp_gettime()
46 ntv->tai = tntx.tai; in ntp_gettime()
/freebsd/sys/compat/linux/
H A Dlinux_vdso_gtod.inc88 struct timeval *ntv)
92 if (ntv->tv_sec > INT_MAX || ntv->tv_sec < INT_MIN)
95 ltv->tv_sec = ntv->tv_sec;
96 ltv->tv_usec = ntv->tv_usec;
/freebsd/sys/sys/
H A Dsyscallsubr.h260 int kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp);
/freebsd/contrib/ntp/
H A DCommitLog-4.1.01610 initializing ntv.modes. Initialize ntv.{maxerror,esterror,status}
6028 * ntpd/ntp_loopfilter.c (local_clock): Limit ntv.constant to
H A DChangeLog1395 * [Bug 2640] STA_NANO can result in invalid ntv.constant.
H A DCommitLog[all...]