Home
last modified time | relevance | path

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

/freebsd-9-stable/sys/kern/
Dsys_generic.c927 struct timeval atv, rtv, ttv; in kern_select() local
1020 atv = *tvp; in kern_select()
1021 if (itimerfix(&atv)) { in kern_select()
1026 timevaladd(&atv, &rtv); in kern_select()
1028 atv.tv_sec = 0; in kern_select()
1029 atv.tv_usec = 0; in kern_select()
1038 if (atv.tv_sec || atv.tv_usec) { in kern_select()
1040 if (timevalcmp(&rtv, &atv, >=)) in kern_select()
1042 ttv = atv; in kern_select()
1279 struct timeval atv, rtv, ttv; local
[all …]
Dkern_ntptime.c248 struct timespec atv; /* nanosecond time */ in ntp_gettime1() local
252 nanotime(&atv); in ntp_gettime1()
253 ntvp->time.tv_sec = atv.tv_sec; in ntp_gettime1()
254 ntvp->time.tv_nsec = atv.tv_nsec; in ntp_gettime1()
956 struct timeval atv; in kern_adjtime() local
961 atv.tv_sec = time_adjtime / 1000000; in kern_adjtime()
962 atv.tv_usec = time_adjtime % 1000000; in kern_adjtime()
963 if (atv.tv_usec < 0) { in kern_adjtime()
964 atv.tv_usec += 1000000; in kern_adjtime()
965 atv.tv_sec--; in kern_adjtime()
[all …]
Dkern_time.c393 struct timeval atv; in kern_clock_settime() local
403 TIMESPEC_TO_TIMEVAL(&atv, ats); in kern_clock_settime()
404 error = settime(td, &atv); in kern_clock_settime()
556 struct timeval atv; in sys_gettimeofday() local
561 microtime(&atv); in sys_gettimeofday()
562 error = copyout(&atv, uap->tp, sizeof (atv)); in sys_gettimeofday()
582 struct timeval atv, *tvp; in sys_settimeofday() local
587 error = copyin(uap->tv, &atv, sizeof(atv)); in sys_settimeofday()
590 tvp = &atv; in sys_settimeofday()
Dkern_event.c1342 struct timeval atv, rtv, ttv; in kqueue_scan() local
1356 TIMESPEC_TO_TIMEVAL(&atv, tsp); in kqueue_scan()
1357 if (itimerfix(&atv)) { in kqueue_scan()
1364 timeout = atv.tv_sec > 24 * 60 * 60 ? in kqueue_scan()
1365 24 * 60 * 60 * hz : tvtohz(&atv); in kqueue_scan()
1367 timevaladd(&atv, &rtv); in kqueue_scan()
1369 atv.tv_sec = 0; in kqueue_scan()
1370 atv.tv_usec = 0; in kqueue_scan()
1383 if (atv.tv_sec || atv.tv_usec) { in kqueue_scan()
1385 if (timevalcmp(&rtv, &atv, >=)) in kqueue_scan()
[all …]
Dvfs_aio.c1901 struct timeval atv; in kern_aio_suspend() local
1911 TIMESPEC_TO_TIMEVAL(&atv, ts); in kern_aio_suspend()
1912 if (itimerfix(&atv)) in kern_aio_suspend()
1914 timo = tvtohz(&atv); in kern_aio_suspend()
2424 struct timeval atv; in kern_aio_waitcomplete() local
2437 TIMESPEC_TO_TIMEVAL(&atv, ts); in kern_aio_waitcomplete()
2438 if (itimerfix(&atv)) in kern_aio_waitcomplete()
2440 timo = tvtohz(&atv); in kern_aio_waitcomplete()
/freebsd-9-stable/sys/netinet6/
Din6_rmx.c240 struct timeval atv; in in6_mtutimo() local
249 atv.tv_sec = MTUTIMO_DEFAULT; in in6_mtutimo()
250 atv.tv_usec = 0; in in6_mtutimo()
251 callout_reset(&V_rtq_mtutimer, tvtohz(&atv), in6_mtutimo, rock); in in6_mtutimo()
/freebsd-9-stable/sys/netinet/
Din_rmx.c246 struct timeval atv; in in_rtqtimo() local
253 atv.tv_usec = 0; in in_rtqtimo()
254 atv.tv_sec = V_rtq_timeout; in in_rtqtimo()
255 callout_reset(&V_rtq_timer, tvtohz(&atv), in_rtqtimo, rock); in in_rtqtimo()
Dip_icmp.c925 struct timeval atv; in iptime() local
928 getmicrotime(&atv); in iptime()
929 t = (atv.tv_sec % (24*60*60)) * 1000 + atv.tv_usec / 1000; in iptime()
/freebsd-9-stable/sys/amd64/linux32/
Dlinux32_machdep.c853 struct timeval atv; in linux_gettimeofday() local
859 microtime(&atv); in linux_gettimeofday()
860 atv32.tv_sec = atv.tv_sec; in linux_gettimeofday()
861 atv32.tv_usec = atv.tv_usec; in linux_gettimeofday()
876 struct timeval atv, *tvp; in linux_settimeofday() local
884 atv.tv_sec = atv32.tv_sec; in linux_settimeofday()
885 atv.tv_usec = atv32.tv_usec; in linux_settimeofday()
886 tvp = &atv; in linux_settimeofday()
/freebsd-9-stable/sys/compat/svr4/
Dsvr4_misc.c1530 struct timeval atv; local
1532 microtime(&atv);
1533 return copyout(&atv, uap->tp, sizeof (atv));
/freebsd-9-stable/sys/compat/freebsd32/
Dfreebsd32_misc.c790 struct timeval atv; in freebsd32_gettimeofday() local
796 microtime(&atv); in freebsd32_gettimeofday()
797 CP(atv, atv32, tv_sec); in freebsd32_gettimeofday()
798 CP(atv, atv32, tv_usec); in freebsd32_gettimeofday()