Home
last modified time | relevance | path

Searched refs:oldtp (Results 1 – 8 of 8) sorted by relevance

/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
Dclock_test_008.cpp46 struct timespec res, tp, oldtp; in ClockTest() local
57 ret = clock_gettime(clk, &oldtp); in ClockTest()
59 printf("The current monotonic time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest()
62 tp.tv_nsec = oldtp.tv_nsec; in ClockTest()
73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
Dclock_test_006.cpp46 struct timespec res, tp, oldtp; in ClockTest() local
57 ret = clock_gettime(clk, &oldtp); in ClockTest()
59 printf("The current coarse real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest()
62 tp.tv_nsec = oldtp.tv_nsec; // 5, times the number of nseconds. in ClockTest()
75 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
Dclock_test_001.cpp46 struct timespec res, tp, oldtp; in ClockTest() local
57 ret = clock_gettime(clk, &oldtp); in ClockTest()
58 printf("The current real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
64 tp.tv_sec = oldtp.tv_sec + 2; // 2, use for testing clock setting in ClockTest()
65 tp.tv_nsec = oldtp.tv_nsec; in ClockTest()
77 …passflag = (tp.tv_sec >= 2 + oldtp.tv_sec) && (tp.tv_sec <= 2 + oldtp.tv_sec + 1); // 2, use for t… in ClockTest()
Dclock_test_009.cpp46 struct timespec res, tp, oldtp; in ClockTest() local
57 ret = clock_gettime(clk, &oldtp); in ClockTest()
59 … printf("The current monotonic raw time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
Dclock_test_007.cpp46 struct timespec res, tp, oldtp; in ClockTest() local
56 ret = clock_gettime(clk, &oldtp); in ClockTest()
58 …printf("The current monotonic coarse time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nse… in ClockTest()
72 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
Dclock_test_010.cpp46 struct timespec tp, oldtp; in SleepTest() local
51 ret = clock_gettime(clk, &oldtp); in SleepTest()
63 …escapeTime = (tp.tv_sec - oldtp.tv_sec) * static_cast<int64_t>(1e9) + (tp.tv_nsec - oldtp.tv_nsec… in SleepTest()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/smoke/
Dclock_test_smoke.cpp36 struct timespec res = {0,0}, setts = {0,0}, oldtp = {0,0}, ts = {0,0}; in ClockSmokeTest() local
47 ret = clock_gettime(clk, &oldtp); in ClockSmokeTest()
48 printf("the clock current time: %lld second, %ld nanosecond\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockSmokeTest()
52 setts.tv_sec = oldtp.tv_sec + 1; in ClockSmokeTest()
53 setts.tv_nsec = oldtp.tv_nsec; in ClockSmokeTest()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_minisocks.c435 static void smc_check_reset_syn_req(struct tcp_sock *oldtp, in smc_check_reset_syn_req() argument
444 if (oldtp->syn_smc && !ireq->smc_ok) in smc_check_reset_syn_req()
464 struct tcp_sock *oldtp, *newtp; in tcp_create_openreq_child() local
472 oldtp = tcp_sk(sk); in tcp_create_openreq_child()
474 smc_check_reset_syn_req(oldtp, req, newtp); in tcp_create_openreq_child()