Home
last modified time | relevance | path

Searched refs:atv (Results 1 – 5 of 5) sorted by relevance

/f-stack/freebsd/kern/
H A Dkern_ntptime.c255 struct timespec atv; /* nanosecond time */ in ntp_gettime1() local
259 nanotime(&atv); in ntp_gettime1()
260 ntvp->time.tv_sec = atv.tv_sec; in ntp_gettime1()
261 ntvp->time.tv_nsec = atv.tv_nsec; in ntp_gettime1()
996 struct timeval atv; in kern_adjtime() local
1012 atv.tv_sec = ltr / 1000000; in kern_adjtime()
1013 atv.tv_usec = ltr % 1000000; in kern_adjtime()
1014 if (atv.tv_usec < 0) { in kern_adjtime()
1015 atv.tv_usec += 1000000; in kern_adjtime()
1016 atv.tv_sec--; in kern_adjtime()
[all …]
H A Dkern_time.c403 struct timeval atv; in kern_clock_settime() local
418 TIMESPEC_TO_TIMEVAL(&atv, ats); in kern_clock_settime()
419 error = settime(td, &atv); in kern_clock_settime()
649 struct timeval atv; in sys_gettimeofday() local
654 microtime(&atv); in sys_gettimeofday()
655 error = copyout(&atv, uap->tp, sizeof (atv)); in sys_gettimeofday()
675 struct timeval atv, *tvp; in sys_settimeofday() local
680 error = copyin(uap->tv, &atv, sizeof(atv)); in sys_settimeofday()
683 tvp = &atv; in sys_settimeofday()
H A Dvfs_aio.c1951 struct timeval atv; in kern_aio_suspend() local
1961 TIMESPEC_TO_TIMEVAL(&atv, ts); in kern_aio_suspend()
1962 if (itimerfix(&atv)) in kern_aio_suspend()
1964 timo = tvtohz(&atv); in kern_aio_suspend()
2502 struct timeval atv; in kern_aio_waitcomplete() local
2519 TIMESPEC_TO_TIMEVAL(&atv, ts); in kern_aio_waitcomplete()
2520 if (itimerfix(&atv)) in kern_aio_waitcomplete()
2522 timo = tvtohz(&atv); in kern_aio_waitcomplete()
/f-stack/freebsd/amd64/linux32/
H A Dlinux32_machdep.c606 struct timeval atv; in linux_gettimeofday() local
612 microtime(&atv); in linux_gettimeofday()
613 atv32.tv_sec = atv.tv_sec; in linux_gettimeofday()
614 atv32.tv_usec = atv.tv_usec; in linux_gettimeofday()
629 struct timeval atv, *tvp; in linux_settimeofday() local
637 atv.tv_sec = atv32.tv_sec; in linux_settimeofday()
638 atv.tv_usec = atv32.tv_usec; in linux_settimeofday()
639 tvp = &atv; in linux_settimeofday()
/f-stack/freebsd/netinet/
H A Dip_icmp.c1026 struct timeval atv; in iptime() local
1029 getmicrotime(&atv); in iptime()
1030 t = (atv.tv_sec % (24*60*60)) * 1000 + atv.tv_usec / 1000; in iptime()