Lines Matching refs:time
84 test_absolute_kevent(int time, int scale) in test_absolute_kevent() argument
99 T_LOG("Testing %d MATUs absolute timer...\n", time); in test_absolute_kevent()
102 T_LOG("Testing %d sec absolute timer...\n", time); in test_absolute_kevent()
106 T_LOG("Testing %d usec absolute timer...\n", time); in test_absolute_kevent()
110 T_LOG("Testing %d msec absolute timer...\n", time); in test_absolute_kevent()
121 expected = abs_to_nanos((uint64_t)time) / NSEC_PER_USEC; in test_absolute_kevent()
122 deadline = (int64_t)mach_absolute_time() + time; in test_absolute_kevent()
124 expected = (uint64_t)time * timescale; in test_absolute_kevent()
125 deadline = (int64_t)(nowus / timescale) + time; in test_absolute_kevent()
129 if (time < 0) { in test_absolute_kevent()
139 T_PASS("%s time:%d, scale:0x%x", __func__, time, scale); in test_absolute_kevent()
142 T_FAIL("%s time:%d, scale:0x%x", __func__, time, scale); in test_absolute_kevent()
147 test_oneshot_kevent(int time, int scale) in test_oneshot_kevent() argument
157 T_LOG("Testing %d MATUs interval timer...\n", time); in test_oneshot_kevent()
158 expected = abs_to_nanos((uint64_t)time) / NSEC_PER_USEC; in test_oneshot_kevent()
161 T_LOG("Testing %d sec interval timer...\n", time); in test_oneshot_kevent()
162 expected = (uint64_t)time * USEC_PER_SEC; in test_oneshot_kevent()
165 T_LOG("Testing %d usec interval timer...\n", time); in test_oneshot_kevent()
166 expected = (uint64_t)time; in test_oneshot_kevent()
169 T_LOG("Testing %d nsec interval timer...\n", time); in test_oneshot_kevent()
170 expected = (uint64_t)time / 1000; in test_oneshot_kevent()
173 T_LOG("Testing %d msec interval timer...\n", time); in test_oneshot_kevent()
174 expected = (uint64_t)time * 1000; in test_oneshot_kevent()
184 if (time < 0) { in test_oneshot_kevent()
188 EV_SET64(&kev, 2, EVFILT_TIMER, EV_ADD | EV_ONESHOT, scale, time, in test_oneshot_kevent()
194 T_PASS("%s time:%d, scale:0x%x", __func__, time, scale); in test_oneshot_kevent()
197 T_FAIL("%s time:%d, scale:0x%x", __func__, time, scale); in test_oneshot_kevent()