Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/openbsd/usr.sbin/smtpd/
H A Dreport_smtp.c26 struct timeval tv; in report_smtp_link_connect() local
45 struct timeval tv; in report_smtp_link_greeting() local
60 struct timeval tv; in report_smtp_link_identify() local
76 struct timeval tv; in report_smtp_link_tls() local
91 struct timeval tv; in report_smtp_link_disconnect() local
105 struct timeval tv; in report_smtp_link_auth() local
121 struct timeval tv; in report_smtp_tx_reset() local
136 struct timeval tv; in report_smtp_tx_begin() local
151 struct timeval tv; in report_smtp_tx_mail() local
168 struct timeval tv; in report_smtp_tx_rcpt() local
[all …]
H A Dlka.c62 struct timeval tv; in lka_imsg() local
302 tv.tv_sec = 0; in lka_imsg()
303 tv.tv_usec = 10; in lka_imsg()
370 m_get_timeval(&m, &tv); in lka_imsg()
384 m_get_timeval(&m, &tv); in lka_imsg()
395 m_get_timeval(&m, &tv); in lka_imsg()
405 m_get_timeval(&m, &tv); in lka_imsg()
703 struct timeval tv; in proc_timeout() local
713 tv.tv_sec = 0; in proc_timeout()
714 tv.tv_usec = 10; in proc_timeout()
[all …]
/openbsd/regress/lib/libcrypto/chacha/
H A Dchachatest.c231 CRYPTO_chacha_20(out, in, tv->len, tv->key, tv->iv, 0); in crypto_chacha_20_test()
243 ChaCha(&ctx, out, in, tv->len); in chacha_ctx_full_test()
256 len = tv->len - 1; in chacha_ctx_partial_test()
277 for (i = 0; i < tv->len; i++) in chacha_ctx_single_test()
462 struct chacha_tv *tv; in main() local
468 tv = &chacha_test_vectors[i]; in main()
471 in = calloc(1, tv->len); in main()
474 out = calloc(1, tv->len); in main()
480 if (memcmp(out, tv->out, tv->len) != 0) { in main()
485 for (k = 0; k < tv->len; k++) in main()
[all …]
/openbsd/regress/sys/kern/itimer/
H A Ditimer.c25 struct timeval stv, tv; in main() local
66 gettimeofday(&tv, NULL); in main()
67 timersub(&tv, &stv, &tv); in main()
73 tv = ru.ru_utime; in main()
79 if (timercmp(&stv, &tv, <)) in main()
80 timersub(&tv, &stv, &tv); in main()
82 timersub(&stv, &tv, &tv); in main()
84 if (tv.tv_sec != 0 || tv.tv_usec > 100000) in main()
86 (long long)tv.tv_sec, tv.tv_usec); in main()
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dtimevar.c269 tv->used = 1;
272 if (tv->standalone)
299 context->timevar = tv;
360 tv->used = 1;
364 if (tv->standalone)
366 tv->standalone = 1;
385 if (!tv->standalone)
389 timevar_accumulate (&tv->elapsed, &tv->start_time, &now);
406 if (tv->standalone)
465 if (!tv->used)
[all …]
/openbsd/usr.sbin/ypserv/common/
H A Dyplib_host.c78 tv.tv_sec = 10; in yp_bind_host()
79 tv.tv_usec = 0; in yp_bind_host()
110 tv.tv_sec = 10; in yp_bind_local()
111 tv.tv_usec = 0; in yp_bind_local()
134 tv.tv_usec = 0; in yp_match_host()
170 tv.tv_usec = 0; in yp_first_host()
207 tv.tv_usec = 0; in yp_next_host()
301 tv.tv_usec = 0; in yp_all_host()
324 tv.tv_usec = 0; in yp_order_host()
349 tv.tv_usec = 0; in yp_master_host()
[all …]
/openbsd/gnu/gcc/gcc/
H A Dtimevar.c271 tv->used = 1; in timevar_push_1()
299 context->timevar = tv; in timevar_push_1()
350 tv->used = 1; in timevar_start()
355 tv->standalone = 1; in timevar_start()
357 get_time (&tv->start_time); in timevar_start()
376 timevar_accumulate (&tv->elapsed, &tv->start_time, &now); in timevar_stop()
424 if (!tv->used) in timevar_print()
430 && tv->elapsed.sys < tiny in timevar_print()
441 tv->elapsed.user, in timevar_print()
448 tv->elapsed.sys, in timevar_print()
[all …]
H A Dtree-ssa-live.h580 type_var_num (type_var_p tv) in type_var_num() argument
582 return tpa_num_trees (tv); in type_var_num()
589 type_var (type_var_p tv, int i) in type_var() argument
591 return tpa_tree (tv, i); in type_var()
619 tpa_dump (f, tv); in type_var_dump()
627 type_var_delete (type_var_p tv) in type_var_delete() argument
629 tpa_delete (tv); in type_var_delete()
647 return tpa_find_tree (tv, i); in type_var_find()
654 type_var_compact (type_var_p tv) in type_var_compact() argument
656 return tpa_compact (tv); in type_var_compact()
[all …]
/openbsd/regress/lib/libcrypto/gcm128/
H A Dgcm128test.c872 AES_set_encrypt_key(tv->K, tv->K_len * 8, &key); in do_gcm128_test()
877 CRYPTO_gcm128_setiv(&ctx, tv->IV, tv->IV_len); in do_gcm128_test()
878 if (tv->A_len > 0) in do_gcm128_test()
879 CRYPTO_gcm128_aad(&ctx, tv->A, tv->A_len); in do_gcm128_test()
880 if (tv->P_len > 0) in do_gcm128_test()
887 if (tv->C_len > 0 && memcmp(out, tv->C, out_len)) { in do_gcm128_test()
894 CRYPTO_gcm128_setiv(&ctx, tv->IV, tv->IV_len); in do_gcm128_test()
895 if (tv->A_len > 0) in do_gcm128_test()
896 CRYPTO_gcm128_aad(&ctx, tv->A, tv->A_len); in do_gcm128_test()
897 if (tv->C_len > 0) in do_gcm128_test()
[all …]
/openbsd/regress/sys/crypto/aesxts/
H A Daes_xts.c1778 struct aes_xts_tv *tv; in main() local
1784 tv = &aes_xts_test_vectors[i]; in main()
1787 if (do_aes_xts(tv->key, tv->key_len, tv->seqno, tv->plaintext, in main()
1788 result, tv->text_len, 1) < 0) { in main()
1793 if (!match(result, tv->ciphertext, tv->text_len)) { in main()
1800 if (do_aes_xts(tv->key, tv->key_len, tv->seqno, tv->ciphertext, in main()
1801 result, tv->text_len, 0) < 0) { in main()
1806 if (!match(result, tv->plaintext, tv->text_len)) { in main()
/openbsd/sys/dev/pci/drm/
H A Ddrm_atomic_state_helper.c553 state->tv.hue = val; in drm_atomic_helper_connector_tv_reset()
588 if (old_conn_state->tv.mode != new_conn_state->tv.mode) in drm_atomic_helper_connector_tv_check()
591 if (old_conn_state->tv.margins.left != new_conn_state->tv.margins.left || in drm_atomic_helper_connector_tv_check()
592 old_conn_state->tv.margins.right != new_conn_state->tv.margins.right || in drm_atomic_helper_connector_tv_check()
593 old_conn_state->tv.margins.top != new_conn_state->tv.margins.top || in drm_atomic_helper_connector_tv_check()
595 old_conn_state->tv.mode != new_conn_state->tv.mode || in drm_atomic_helper_connector_tv_check()
596 old_conn_state->tv.brightness != new_conn_state->tv.brightness || in drm_atomic_helper_connector_tv_check()
597 old_conn_state->tv.contrast != new_conn_state->tv.contrast || in drm_atomic_helper_connector_tv_check()
599 old_conn_state->tv.overscan != new_conn_state->tv.overscan || in drm_atomic_helper_connector_tv_check()
600 old_conn_state->tv.saturation != new_conn_state->tv.saturation || in drm_atomic_helper_connector_tv_check()
[all …]
/openbsd/usr.sbin/ntpd/
H A Dutil.c38 struct timeval tv; in getoffset() local
39 if (adjtime(NULL, &tv) == -1) in getoffset()
41 return (tv.tv_sec + 1.0e-6 * tv.tv_usec); in getoffset()
47 struct timeval tv; in gettime() local
49 if (gettimeofday(&tv, NULL) == -1) in gettime()
61 return ((uint64_t)tv->tv_sec + JAN_1970 + 1.0e-6 * tv->tv_usec); in gettime_from_timeval()
79 tv->tv_sec = d; in d_to_tv()
80 tv->tv_usec = (d - tv->tv_sec) * 1000000; in d_to_tv()
81 while (tv->tv_usec < 0) { in d_to_tv()
82 tv->tv_usec += 1000000; in d_to_tv()
[all …]
/openbsd/regress/lib/libevent/
H A Dtest-time.c48 struct timeval tv; in time_cb() local
56 tv.tv_sec = 0; in time_cb()
57 tv.tv_usec = rand_int(50000); in time_cb()
58 if (tv.tv_usec % 2) in time_cb()
59 evtimer_add(ev[j], &tv); in time_cb()
69 struct timeval tv; in main() local
80 tv.tv_sec = 0; in main()
81 tv.tv_usec = rand_int(50000); in main()
82 evtimer_add(ev[i], &tv); in main()
/openbsd/sys/sys/
H A Dtime.h64 (ts)->tv_sec = (tv)->tv_sec; \
65 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
68 (tv)->tv_sec = (ts)->tv_sec; \
69 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
260 tv->tv_sec = bt->sec; in BINTIME_TO_TIMEVAL()
267 bt->sec = (time_t)tv->tv_sec; in TIMEVAL_TO_BINTIME()
374 tv->tv_sec = us / 1000000; in USEC_TO_TIMEVAL()
375 tv->tv_usec = us % 1000000; in USEC_TO_TIMEVAL()
381 tv->tv_sec = ns / 1000000000L; in NSEC_TO_TIMEVAL()
392 nsecs = tv->tv_sec * 1000000000ULL; in TIMEVAL_TO_NSEC()
[all …]
/openbsd/games/worm/
H A Dworm.c51 WINDOW *tv; variable
125 box(tv, '*', '*'); in main()
126 scrollok(tv, FALSE); in main()
132 wrefresh(tv); in main()
136 wrefresh(tv); in main()
224 waddch(tv, chr); in display()
262 wrefresh(tv); in prize()
347 wmove(tv, y, x); in process()
370 wrefresh(tv); in process()
411 touchwin(tv); in setup()
[all …]
/openbsd/usr.sbin/dvmrpd/
H A Dgroup.c244 struct timeval tv; in start_dead_timer() local
249 timerclear(&tv); in start_dead_timer()
259 struct timeval tv; in start_dead_timer_all() local
263 timerclear(&tv); in start_dead_timer_all()
299 struct timeval tv; in start_v1_host_timer() local
304 timerclear(&tv); in start_v1_host_timer()
323 struct timeval tv; in retrans_timer() local
331 timerclear(&tv); in retrans_timer()
340 struct timeval tv; in start_retrans_timer() local
344 timerclear(&tv); in start_retrans_timer()
[all …]
H A Drde_mfc.c85 struct timeval tv; in mfc_reset_expire_timer() local
87 timerclear(&tv); in mfc_reset_expire_timer()
95 struct timeval tv; in mfc_start_expire_timer() local
99 timerclear(&tv); in mfc_start_expire_timer()
117 struct timeval tv; in mfc_start_prune_timer() local
121 timerclear(&tv); in mfc_start_prune_timer()
129 struct timeval tv; in mfc_reset_prune_timer() local
131 timerclear(&tv); in mfc_reset_prune_timer()
443 timerclear(&tv); in mfc_add_prune()
497 struct timeval tv; in mfc_reset_prune_expire_timer() local
[all …]
H A Dinterface.c270 struct timeval tv; in if_probe_timer() local
276 timerclear(&tv); in if_probe_timer()
285 struct timeval tv; in if_start_probe_timer() local
287 timerclear(&tv); in if_start_probe_timer()
301 struct timeval tv; in if_query_timer() local
308 timerclear(&tv); in if_query_timer()
322 struct timeval tv; in if_start_query_timer() local
324 timerclear(&tv); in if_start_query_timer()
345 struct timeval tv; in if_start_querier_present_timer() local
348 timerclear(&tv); in if_start_querier_present_timer()
[all …]
/openbsd/regress/sys/kern/rcvtimeo/
H A Drcvtimeo.c31 struct timeval tv; in main() local
51 tv.tv_sec = 1; in main()
52 tv.tv_usec = 0; in main()
53 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in main()
63 tv.tv_sec = 0; in main()
64 tv.tv_usec = 1; in main()
65 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in main()
/openbsd/usr.sbin/ripd/
H A Drde_rib.c52 struct timeval tv; in route_start_timeout() local
54 timerclear(&tv); in route_start_timeout()
55 tv.tv_sec = ROUTE_TIMEOUT; in route_start_timeout()
63 struct timeval tv; in route_start_garbage() local
65 timerclear(&tv); in route_start_garbage()
66 tv.tv_sec = ROUTE_GARBAGE; in route_start_garbage()
79 struct timeval tv; in route_action_timeout() local
81 timerclear(&tv); in route_action_timeout()
83 tv.tv_sec = ROUTE_GARBAGE; in route_action_timeout()
103 struct timeval tv; in route_reset_timers() local
[all …]
/openbsd/regress/lib/libc/gcvt/
H A Dgcvt_test.c97 dotest(struct test_vector *tv) in dotest() argument
101 got = gcvt(tv->d, tv->ndig, buf); in dotest()
102 if (strcmp(tv->expect, got) != 0) { in dotest()
104 tv->d, tv->ndig, tv->expect, got); in dotest()
/openbsd/lib/libevent/
H A Devent.c382 event_base, tv)); in event_base_loopexit()
417 struct timeval tv; in event_base_loop() local
451 tv_p = &tv; in event_base_loop()
459 timerclear(&tv); in event_base_loop()
545 if (tv == NULL) { in event_base_once()
547 tv = &etv; in event_base_once()
806 timerclear(tv); in timeout_next()
941 struct timeval tv; in event_asr_dispatch() local
963 struct timeval tv; in event_asr_run() local
971 tv.tv_sec = 0; in event_asr_run()
[all …]
/openbsd/lib/libc/gen/
H A Dutime.c38 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()
/openbsd/sys/arch/sparc64/dev/
H A Dprtc.c104 prtc_gettime(todr_chip_handle_t handle, struct timeval *tv) in prtc_gettime() argument
112 tv->tv_sec = tod; in prtc_gettime()
113 tv->tv_usec = 0; in prtc_gettime()
118 prtc_settime(todr_chip_handle_t handle, struct timeval *tv) in prtc_settime() argument
124 prtc_opl_gettime(todr_chip_handle_t handle, struct timeval *tv) in prtc_opl_gettime() argument
141 tv->tv_sec = args.time; in prtc_opl_gettime()
142 tv->tv_usec = 0; in prtc_opl_gettime()
148 prtc_opl_settime(todr_chip_handle_t handle, struct timeval *tv) in prtc_opl_settime() argument
165 args.diff = tv->tv_sec - otv.tv_sec; in prtc_opl_settime()
/openbsd/usr.sbin/unbound/util/
H A Dtimeval_func.h45 #define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec) argument
48 #define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0) argument

12345678910>>...20