/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sched.c | 219 struct timespec tv1, tv2; in ATF_TC_BODY() local 225 tv1.tv_sec = tv2.tv_sec = -1; in ATF_TC_BODY() 226 tv1.tv_nsec = tv2.tv_nsec = -1; in ATF_TC_BODY() 228 ATF_REQUIRE(sched_rr_get_interval(0, &tv1) == 0); in ATF_TC_BODY() 231 ATF_REQUIRE(tv1.tv_sec != -1); in ATF_TC_BODY() 234 ATF_REQUIRE(tv1.tv_nsec != -1); in ATF_TC_BODY() 237 ATF_REQUIRE(tv1.tv_sec == tv2.tv_sec); in ATF_TC_BODY() 238 ATF_REQUIRE(tv1.tv_nsec == tv2.tv_nsec); in ATF_TC_BODY()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | test_crypto.c | 41 struct timeval tv1, tv2; in time_encryption() local 67 gettimeofday(&tv1, NULL); in time_encryption() 78 timevalsub(&tv2, &tv1); in time_encryption() 97 struct timeval tv1, tv2; in time_s2k() local 111 gettimeofday(&tv1, NULL); in time_s2k() 123 timevalsub(&tv2, &tv1); in time_s2k()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_gettimeofday.c | 65 struct timeval tv1, tv2; in ATF_TC_BODY() local 70 (void)memset(&tv1, 0, sizeof(struct timeval)); in ATF_TC_BODY() 73 ATF_REQUIRE(gettimeofday(&tv1, NULL) == 0); in ATF_TC_BODY() 76 if (timercmp(&tv2, &tv1, <) != 0) in ATF_TC_BODY()
|
/freebsd/sys/contrib/device-tree/Bindings/display/ |
H A D | allwinner,sun8i-r40-tcon-top.yaml | 31 \ [3] TCON-TV1 [1] - TVE1/RGB 131 - description: The TCON TOP TV1 clock 140 - const: tcon-tv1 147 - description: TCON TV1 output clock name 223 "tcon-tv1", 227 "tcon-top-tv1",
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress.h | 122 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \ argument 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) 125 #define test_timeval_diff_eq(tv1, tv2, diff) \ argument 126 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
|
H A D | regress.c | 3291 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3304 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1)); in test_gettimeofday_cached() 3306 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10); in test_gettimeofday_cached() 3307 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10); in test_gettimeofday_cached() 3312 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1); in test_gettimeofday_cached() 3323 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3326 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3329 tt_assert(evutil_timercmp(&tv1, &tv2, ==)); in test_gettimeofday_cached()
|
H A D | regress_util.c | 1359 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1364 evutil_gettimeofday(&tv1, NULL); in test_evutil_usleep() 1370 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep()
|
/freebsd/contrib/libevent/test/ |
H A D | regress.h | 122 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \ argument 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) 125 #define test_timeval_diff_eq(tv1, tv2, diff) \ argument 126 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
|
H A D | regress.c | 3291 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3304 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1)); in test_gettimeofday_cached() 3306 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10); in test_gettimeofday_cached() 3307 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10); in test_gettimeofday_cached() 3312 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1); in test_gettimeofday_cached() 3323 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3326 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3329 tt_assert(evutil_timercmp(&tv1, &tv2, ==)); in test_gettimeofday_cached()
|
H A D | regress_util.c | 1359 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1364 evutil_gettimeofday(&tv1, NULL); in test_evutil_usleep() 1370 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | xattrtest.c | 333 timeval_sub(struct timeval *delta, struct timeval *tv1, struct timeval *tv2) in timeval_sub() argument 336 tv1->tv_sec - tv2->tv_sec, in timeval_sub() 337 tv1->tv_usec - tv2->tv_usec); in timeval_sub() 341 timeval_sub_seconds(struct timeval *tv1, struct timeval *tv2) in timeval_sub_seconds() argument 345 timeval_sub(&delta, tv1, tv2); in timeval_sub_seconds()
|
/freebsd/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 349 static struct timeval tv1, tv2; variable 360 gettimeofday(&tv1, NULL); in T0() 369 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6; in delta_t() 370 dt += (tv2.tv_sec - tv1.tv_sec); in delta_t()
|
/freebsd/sys/kern/ |
H A D | kern_time.c | 122 struct timeval delta, tv1, tv2; in settime() 126 microtime(&tv1); in settime() 128 timevalsub(&delta, &tv1); in settime() 146 if (tv1.tv_sec > maxtime.tv_sec) in settime() 147 maxtime = tv1; in settime() 155 if (tv1.tv_sec == laststep.tv_sec) in settime() 158 tv->tv_sec = tv1.tv_sec + 1; in settime() 121 struct timeval delta, tv1, tv2; settime() local
|
/freebsd/lib/libc/rpc/ |
H A D | svc_vc.c | 511 struct timeval tv0, tv1; in write_vc() local 536 gettimeofday(&tv1, NULL); in write_vc() 537 if (tv1.tv_sec - tv0.tv_sec >= 2) { in write_vc()
|
/freebsd/contrib/ntp/kernel/sys/ |
H A D | bsd_audioirig.h | 78 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 238 struct timeval tv0, tv1, utv, *tvp; in linux_select() local 283 microtime(&tv1); in linux_select() 284 timevalsub(&tv1, &tv0); in linux_select() 285 timevalsub(&utv, &tv1); in linux_select() 2128 struct timeval utv, tv0, tv1, *tvp; in linux_common_pselect6() local 2170 microtime(&tv1); in linux_common_pselect6() 2171 timevalsub(&tv1, &tv0); in linux_common_pselect6() 2172 timevalsub(&utv, &tv1); in linux_common_pselect6()
|
/freebsd/sbin/ping/ |
H A D | ping.c | 1153 struct timespec tv1; in pr_pack() local 1160 sizeof(tv1)) { in pr_pack() 1163 tv1.tv_sec = ntohl(tv32.tv32_sec); in pr_pack() 1164 tv1.tv_nsec = ntohl(tv32.tv32_nsec); in pr_pack() 1165 timespecsub(tv, &tv1, tv); in pr_pack()
|
/freebsd/sys/contrib/device-tree/src/arm/allwinner/ |
H A D | sun8i-r40.dtsi | 1064 "tcon-tv1", 1068 "tcon-top-tv1",
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | event.c | 1418 /* True iff tv1 and tv2 have the same common-timeout index, or if neither 1421 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1423 return (tv1->tv_usec & ~MICROSECONDS_MASK) == in is_same_common_timeout()
|
/freebsd/contrib/libevent/ |
H A D | event.c | 1418 /* True iff tv1 and tv2 have the same common-timeout index, or if neither 1421 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1423 return (tv1->tv_usec & ~MICROSECONDS_MASK) == in is_same_common_timeout()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEInstrVec.td | 114 // vbrd_v tv1, 2, tv0
|