/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | timevar.c | 261 tv->used = 1; in timevar_push_1() 289 context->timevar = tv; in timevar_push_1() 340 tv->used = 1; in timevar_start() 345 tv->standalone = 1; in timevar_start() 367 timevar_accumulate (&tv->elapsed, &tv->start_time, &now); in timevar_stop() 386 tv->used = 1; in timevar_cond_start() 388 if (tv->standalone) in timevar_cond_start() 393 tv->standalone = 1; in timevar_cond_start() 420 timevar_accumulate (&tv->elapsed, &tv->start_time, &now); in timevar_cond_stop() 469 if (!tv->used) in timevar_print() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | timevar.c | 327 push_internal (tv); in push() 339 gcc_assert (tv); in push_internal() 342 tv->used = 1; in push_internal() 451 tv->used = 1; in start() 456 tv->standalone = 1; in start() 486 timevar_accumulate (&tv->elapsed, &tv->start_time, &now); in stop() 513 tv->used = 1; in cond_start() 555 timevar_accumulate (&tv->elapsed, &tv->start_time, &now); in cond_stop() 600 if (!tv->used) in validate_phases() 729 if (!tv->used) in print() [all …]
|
H A D | timevar.h | 111 void start (timevar_id_t tv); 112 void stop (timevar_id_t tv); 113 void push (timevar_id_t tv); 114 void pop (timevar_id_t tv); 116 void cond_stop (timevar_id_t tv); 210 timevar_push (timevar_id_t tv) in timevar_push() argument 213 g_timer->push (tv); in timevar_push() 217 timevar_pop (timevar_id_t tv) in timevar_pop() argument 220 g_timer->pop (tv); in timevar_pop() 230 m_tv (tv) in auto_timevar() [all …]
|
/dragonfly/test/testcases/crypto/aesxts/ |
H A D | aes_xts.c | 1805 struct aes_xts_tv *tv; in main() local 1815 tv = &aes_xts_test_vectors[i]; in main() 1818 if (syscrypt(tv->key, tv->key_len, tv->seqno, tv->plaintext, in main() 1819 result, tv->text_len, 1) < 0) { in main() 1824 if (!match(result, tv->ciphertext, tv->text_len)) { in main() 1831 if (syscrypt(tv->key, tv->key_len, tv->seqno, tv->ciphertext, in main() 1832 result, tv->text_len, 0) < 0) { in main() 1837 if (!match(result, tv->plaintext, tv->text_len)) { in main()
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | time.h | 47 struct timeval tv; in ns_to_timeval() local 51 tv.tv_sec = 0; in ns_to_timeval() 52 tv.tv_usec = 0; in ns_to_timeval() 53 return (tv); in ns_to_timeval() 56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 59 tv.tv_sec--; in ns_to_timeval() 62 tv.tv_usec = rem / 1000; in ns_to_timeval() 63 return (tv); in ns_to_timeval() 67 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument 69 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() [all …]
|
/dragonfly/games/worm/ |
H A D | worm.c | 53 static WINDOW *tv; variable 106 box(tv, '*', '*'); in main() 107 scrollok(tv, FALSE); in main() 113 wrefresh(tv); in main() 160 waddch(tv, chr); in display() 201 waddch(tv, value+'0'); in prize() 202 wrefresh(tv); in prize() 242 wmove(tv, y, x); in process() 263 wrefresh(tv); in process() 301 touchwin(tv); in setup() [all …]
|
/dragonfly/usr.bin/touch/ |
H A D | touch.c | 60 struct timeval tv[2]; in main() local 71 if (gettimeofday(&tv[0], NULL) == -1) in main() 87 stime_darg(optarg, tv); in main() 102 stime_file(optarg, tv); in main() 106 stime_arg1(optarg, tv); in main() 125 tv[0].tv_sec += Aflag; in main() 127 tv[1].tv_sec += Aflag; in main() 145 tv[1] = tv[0]; in main() 191 tv[0].tv_sec += Aflag; in main() 195 tv[1].tv_sec += Aflag; in main() [all …]
|
/dragonfly/contrib/binutils-2.27/gold/ |
H A D | plugin.cc | 222 tv[i].tv_tag = LDPT_MESSAGE; in load() 223 tv[i].tv_u.tv_message = message; in load() 236 tv[i].tv_u.tv_val = LDPO_REL; in load() 238 tv[i].tv_u.tv_val = LDPO_DYN; in load() 240 tv[i].tv_u.tv_val = LDPO_PIE; in load() 251 tv[i].tv_tag = LDPT_OPTION; in load() 276 tv[i].tv_tag = LDPT_GET_VIEW; in load() 349 tv[i].tv_tag = LDPT_NULL; in load() 350 tv[i].tv_u.tv_val = 0; in load() 355 (*onload)(tv); in load() [all …]
|
/dragonfly/contrib/xz/src/xz/ |
H A D | mytime.c | 37 struct timespec tv; in mytime_now() local 38 while (clock_gettime(clk_id, &tv)) in mytime_now() 41 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_nsec / 1000000); in mytime_now() 43 struct timeval tv; in mytime_now() 44 gettimeofday(&tv, NULL); in mytime_now() 45 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec / 1000); in mytime_now()
|
/dragonfly/contrib/binutils-2.34/gold/ |
H A D | plugin.cc | 234 tv[i].tv_tag = LDPT_MESSAGE; in load() 235 tv[i].tv_u.tv_message = message; in load() 248 tv[i].tv_u.tv_val = LDPO_REL; in load() 250 tv[i].tv_u.tv_val = LDPO_DYN; in load() 252 tv[i].tv_u.tv_val = LDPO_PIE; in load() 263 tv[i].tv_tag = LDPT_OPTION; in load() 288 tv[i].tv_tag = LDPT_GET_VIEW; in load() 369 tv[i].tv_tag = LDPT_NULL; in load() 370 tv[i].tv_u.tv_val = 0; in load() 375 (*onload)(tv); in load() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/crypto/ |
H A D | crypto_module_tests.c | 230 if (omac1_aes_128(tv->k, tv->msg, tv->msg_len, result) || in test_omac1_vector() 238 addr[0] = tv->msg; in test_omac1_vector() 251 addr[0] = tv->msg; in test_omac1_vector() 253 addr[1] = tv->msg + tv->msg_len - 2; in test_omac1_vector() 255 addr[2] = tv->msg + tv->msg_len - 1; in test_omac1_vector() 396 os_memcpy(buf, tv->plain, tv->len); in test_cbc() 397 if (aes_128_cbc_encrypt(tv->key, tv->iv, buf, tv->len) || in test_cbc() 398 os_memcmp(buf, tv->cipher, tv->len) != 0) { in test_cbc() 403 os_memcpy(buf, tv->cipher, tv->len); in test_cbc() 404 if (aes_128_cbc_decrypt(tv->key, tv->iv, buf, tv->len) || in test_cbc() [all …]
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | radeon_legacy_tv.c | 398 tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]); in radeon_restore_tv_timing_tables() 400 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 404 tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]); in radeon_restore_tv_timing_tables() 406 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 502 tv_dac->tv.hrestart = restart % h_total; in radeon_legacy_tv_init_restarts() 509 (unsigned)tv_dac->tv.frestart, in radeon_legacy_tv_init_restarts() 510 (unsigned)tv_dac->tv.vrestart, in radeon_legacy_tv_init_restarts() 511 (unsigned)tv_dac->tv.hrestart); in radeon_legacy_tv_init_restarts() 523 tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | in radeon_legacy_tv_init_restarts() 672 tv_dac->tv.timing_cntl = tmp; in radeon_legacy_tv_mode_set() [all …]
|
/dragonfly/sys/sys/ |
H A D | time.h | 47 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument 49 (ts)->tv_sec = (tv)->tv_sec; \ 52 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument 54 (tv)->tv_sec = (ts)->tv_sec; \ 198 void getmicrouptime(struct timeval *tv); 199 void getmicrotime(struct timeval *tv); 200 void getnanouptime(struct timespec *tv); 201 void getnanotime(struct timespec *tv); 203 int itimerfix(struct timeval *tv); 207 void microuptime(struct timeval *tv); [all …]
|
H A D | timespec.h | 41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument 43 (ts)->tv_sec = (tv)->tv_sec; \ 44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument 48 (tv)->tv_sec = (ts)->tv_sec; \ 49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
H A D | microtime_pcpu.h | 54 struct timeval tv; member 64 microuptime(&t->tv); in microtime_pcpu_get() 75 return ((e->tv.tv_usec - s->tv.tv_usec) + in microtime_pcpu_diff() 76 (e->tv.tv_sec - s->tv.tv_sec) * 1000000); in microtime_pcpu_diff()
|
/dragonfly/lib/libc/yp/ |
H A D | yplib.c | 476 tv.tv_usec = 0; in _yp_dobind() 532 tv.tv_usec = 0; in _yp_dobind() 571 tv.tv_sec = 1; in _yp_dobind() 572 tv.tv_usec = 0; in _yp_dobind() 709 tv.tv_usec = 0; in yp_match() 786 tv.tv_usec = 0; in yp_first() 844 tv.tv_usec = 0; in yp_next() 902 tv.tv_usec = 0; in yp_all() 962 tv.tv_usec = 0; in yp_order() 1019 tv.tv_usec = 0; in yp_master() [all …]
|
/dragonfly/lib/libc/upmap/ |
H A D | ukp_gettimeofday.c | 63 __gettimeofday(struct timeval *tv, struct timezone *tz) in __gettimeofday() argument 84 if (tv) { in __gettimeofday() 85 tv->tv_sec = ts.tv_sec; in __gettimeofday() 86 tv->tv_usec = ts.tv_nsec / 1000; in __gettimeofday() 89 res = __sys_gettimeofday(tv, tz); in __gettimeofday() 97 __gettimeofday(struct timeval *tv, struct timezone *tz) in __gettimeofday() argument 101 res = __sys_gettimeofday(tv, tz); in __gettimeofday()
|
/dragonfly/sys/kern/ |
H A D | kern_time.c | 116 delta = *tv; in settime() 137 tv2 = *tv; in settime() 152 laststep = *tv; in settime() 470 struct timeval tv; in clock_nanosleep1() local 529 if (tv.tv_usec > 0 && tv.tv_usec < nanosleep_min_us) in clock_nanosleep1() 537 td, tv.tv_usec); in clock_nanosleep1() 692 if (uap->tv) { in sys_settimeofday() 1068 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) in itimerfix() 1070 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < ustick) in itimerfix() 1178 delta = tv; in ratecheck() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | utime.c | 40 struct timeval tv[2], *tvp; in utime() local 43 tv[0].tv_sec = times->actime; in utime() 44 tv[1].tv_sec = times->modtime; in utime() 45 tv[0].tv_usec = tv[1].tv_usec = 0; in utime() 46 tvp = tv; in utime()
|
H A D | ntp_gettime.c | 41 struct ntptimeval tv; in ntp_gettime() local 42 size_t size = sizeof tv; in ntp_gettime() 44 if (sysctlbyname("kern.ntp_pll.gettime", &tv, &size, NULL, 0) == -1) in ntp_gettime() 46 if(ntv) *ntv = tv; in ntp_gettime() 47 return tv.time_state; in ntp_gettime()
|
/dragonfly/usr.bin/top/ |
H A D | utils.c | 644 time_get(struct timeval *tv) in time_get() argument 649 gettimeofday(tv, NULL); in time_get() 651 tv->tv_sec = (long)time(NULL); in time_get() 652 tv->tv_usec = 0; in time_get() 657 time_mark(struct timeval *tv) in time_mark() argument 664 if (tv == NULL) in time_mark() 666 tv = &thistime; in time_mark() 671 gettimeofday(tv, NULL); in time_mark() 673 tv->tv_sec = (long)time(NULL); in time_mark() 674 tv->tv_usec = 0; in time_mark() [all …]
|
/dragonfly/contrib/openbsd_libm/src/ |
H A D | s_exp2f.c | 94 double tv, twopk, u, z; in exp2f() local 128 tv = exp2ft[i0]; in exp2f() 129 u = tv * z; in exp2f() 130 tv = tv + u * (P1 + z * P2) + u * (z * z) * (P3 + z * P4); in exp2f() 133 return (tv * twopk); in exp2f()
|
/dragonfly/sys/dev/drm/i915/ |
H A D | intel_sdvo.c | 185 } tv; member 2083 *val = sdvo_state->tv.hpos; in intel_sdvo_connector_atomic_get_property() 2085 *val = sdvo_state->tv.vpos; in intel_sdvo_connector_atomic_get_property() 2089 *val = state->tv.contrast; in intel_sdvo_connector_atomic_get_property() 2091 *val = state->tv.hue; in intel_sdvo_connector_atomic_get_property() 2141 sdvo_state->tv.hpos = val; in intel_sdvo_connector_atomic_set_property() 2143 sdvo_state->tv.vpos = val; in intel_sdvo_connector_atomic_set_property() 2147 state->tv.contrast = val; in intel_sdvo_connector_atomic_set_property() 2149 state->tv.hue = val; in intel_sdvo_connector_atomic_set_property() 2234 (memcmp(&old_state->tv, &new_state->tv, sizeof(old_state->tv)) || in intel_sdvo_atomic_check() [all …]
|
/dragonfly/usr.sbin/dntpd/ |
H A D | convert.c | 105 tv_to_ts(struct timeval *tv, struct timespec *ts) in tv_to_ts() argument 107 ts->tv_sec = tv->tv_sec; in tv_to_ts() 108 ts->tv_nsec = tv->tv_usec * 1000; in tv_to_ts() 112 ts_to_tv(struct timespec *ts, struct timeval *tv) in ts_to_tv() argument 114 tv->tv_sec = ts->tv_sec; in ts_to_tv() 115 tv->tv_usec = ts->tv_nsec / 1000; in ts_to_tv()
|
/dragonfly/sys/netinet/ |
H A D | tcp_timer.h | 130 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \ argument 131 (tv) = (value) + tcp_rexmit_slop; \ 132 if ((u_long)(tv) < (u_long)(tvmin)) \ 133 (tv) = (tvmin); \ 134 else if ((u_long)(tv) > (u_long)(tvmax)) \ 135 (tv) = (tvmax); \
|