Home
last modified time | relevance | path

Searched refs:time1 (Results 1 – 17 of 17) sorted by relevance

/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
Dsignal_test_042.cpp64 struct timespec time1 = { 0, 50 }; in TestCase() local
81 time1.tv_sec = -1; in TestCase()
83 ret = SigtimedwaitFailTest(&set, &si, &time1, EINVAL); in TestCase()
86 time1.tv_sec = 1; in TestCase()
87 time1.tv_nsec = -1; in TestCase()
89 ret = SigtimedwaitFailTest(&set, &si, &time1, EINVAL); in TestCase()
92 time1.tv_sec = 1; in TestCase()
93 time1.tv_nsec = 1000 * 1000 * 1000 + 1; // 1000, set the nsec of time. in TestCase()
95 ret = SigtimedwaitFailTest(&set, &si, &time1, EINVAL); in TestCase()
/kernel/liteos_m/testsuites/unittest/xts/time/
Dclock_time_test.c53 struct timespec time1 = {0, 0}; variable
54 int rt = clock_gettime(cid, &time1);
66 struct timespec time1 = {0, 0}; variable
68 int rt = clock_gettime(CLOCK_REALTIME, &time1);
70 time_t sec = time1.tv_sec;
71 time1.tv_sec -= 1; /* 1, common data for test, no special meaning */
72 time1.tv_nsec = 1; /* 1, common data for test, no special meaning */
73 rt = clock_settime(CLOCK_REALTIME, &time1);
76 rt = clock_gettime(CLOCK_REALTIME, &time1);
78 ICUNIT_ASSERT_EQUAL(time1.tv_sec, sec, time1.tv_sec);
/kernel/liteos_m/testsuites/unittest/posix/src/time/
Dtime_func_test_01.c101 struct timespec time1 = { 0, 0 }; in KeepRun() local
103 clock_gettime(CLOCK_MONOTONIC, &time1); in KeepRun()
104 LOG("KeepRun start : tv_sec=%lld, tv_nsec=%ld\n", time1.tv_sec, time1.tv_nsec); in KeepRun()
110 ran = (time2.tv_sec - time1.tv_sec) * MILLISECONDS_PER_SECOND; in KeepRun()
111 ran += (time2.tv_nsec - time1.tv_nsec) / NANOSECONDS_PER_MILLISECOND; in KeepRun()
154 struct timespec time1 = { 0 }, time2 = { 0 }; variable
158 clock_gettime(CLOCK_MONOTONIC, &time1);
162 … duration = (time2.tv_sec - time1.tv_sec) * 1000000 + (time2.tv_nsec - time1.tv_nsec) / 1000;
181 struct timespec time1 = { 0 }; variable
183 clock_gettime(CLOCK_MONOTONIC, &time1);
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/
Dtimer.c32 wait->time1 = time; in nvif_timer_wait_test()
35 if (wait->time1 == time) { in nvif_timer_wait_test()
39 wait->time1 = time; in nvif_timer_wait_test()
43 if (wait->time1 - wait->time0 > wait->limit) in nvif_timer_wait_test()
46 return wait->time1 - wait->time0; in nvif_timer_wait_test()
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-wm8350.c34 u16 time1[4], time2[4]; in wm8350_rtc_readtime() local
43 4, time1); in wm8350_rtc_readtime()
51 if (memcmp(time1, time2, sizeof(time1)) == 0) { in wm8350_rtc_readtime()
52 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime()
54 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK) in wm8350_rtc_readtime()
57 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK; in wm8350_rtc_readtime()
59 tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT) in wm8350_rtc_readtime()
62 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) in wm8350_rtc_readtime()
65 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK); in wm8350_rtc_readtime()
67 tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK) in wm8350_rtc_readtime()
[all …]
Drtc-digicolor.c62 u32 reference, time1, time2; in dc_rtc_read() local
70 time1 = readl_relaxed(rtc->regs + DC_RTC_TIME); in dc_rtc_read()
74 if (time1 == time2) in dc_rtc_read()
76 time1 = time2; in dc_rtc_read()
79 *val = reference + time1; in dc_rtc_read()
Drtc-wm831x.c122 u16 time1[2], time2[2]; in wm831x_rtc_readtime() local
142 2, time1); in wm831x_rtc_readtime()
151 if (memcmp(time1, time2, sizeof(time1)) == 0) { in wm831x_rtc_readtime()
152 u32 time = (time1[0] << 16) | time1[1]; in wm831x_rtc_readtime()
/kernel/linux/linux-5.10/lib/
Drbtree_test.c245 cycles_t time1, time2, time; in rbtree_test_init() local
257 time1 = get_cycles(); in rbtree_test_init()
267 time = time2 - time1; in rbtree_test_init()
273 time1 = get_cycles(); in rbtree_test_init()
283 time = time2 - time1; in rbtree_test_init()
292 time1 = get_cycles(); in rbtree_test_init()
300 time = time2 - time1; in rbtree_test_init()
306 time1 = get_cycles(); in rbtree_test_init()
312 time = time2 - time1; in rbtree_test_init()
318 time1 = get_cycles(); in rbtree_test_init()
[all …]
Dinterval_tree_test.c66 cycles_t time1, time2, time; in interval_tree_test_init() local
84 time1 = get_cycles(); in interval_tree_test_init()
94 time = time2 - time1; in interval_tree_test_init()
104 time1 = get_cycles(); in interval_tree_test_init()
116 time = time2 - time1; in interval_tree_test_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c34 wait->time1 = time; in nvkm_timer_wait_test()
37 if (wait->time1 == time) { in nvkm_timer_wait_test()
43 wait->time1 = time; in nvkm_timer_wait_test()
47 if (wait->time1 - wait->time0 > wait->limit) in nvkm_timer_wait_test()
50 return wait->time1 - wait->time0; in nvkm_timer_wait_test()
/kernel/linux/linux-5.10/drivers/ide/
Dali14xx.c116 int time1, time2; in ali14xx_set_pio_mode() local
124 time1 = ide_pio_cycle_time(drive, pio); in ali14xx_set_pio_mode()
127 param4 = param2 = (time1 * bus_speed + 999) / 1000 - param1; in ali14xx_set_pio_mode()
133 drive->name, pio, time1, time2, param1, param2, param3, param4); in ali14xx_set_pio_mode()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/
Dtimer.h9 u64 time1; member
/kernel/linux/linux-5.10/drivers/staging/vt6656/
Dusbpipe.h27 u16 time1; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dtimer.h35 u64 time1; member
/kernel/linux/linux-5.10/drivers/net/hamradio/
Dbaycom_epp.c644 unsigned int time1 = 0, time2 = 0, time3 = 0; in epp_bh() local
658 GETTICK(time1); in epp_bh()
745 bc->debug_vals.mod_cycles = time2 - time1; in epp_bh()
/kernel/liteos_a/compat/posix/src/
Dtime.c1070 double difftime(time_t time2, time_t time1) in difftime() argument
1072 return (double)(time2 - time1); in difftime()
/kernel/linux/linux-5.10/tools/power/pm-graph/
Dsleepgraph.py4755 .time1 {font:22px Arial;border:1px solid;}\n\