Home
last modified time | relevance | path

Searched refs:tv (Results 226 – 250 of 586) sorted by relevance

12345678910>>...24

/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c358 struct timeval end, tv; in ng_dialog() local
367 tv.tv_sec = timeout / 1000; in ng_dialog()
369 timeradd(&end, &tv, &end); in ng_dialog()
372 gettimeofday(&tv, NULL); in ng_dialog()
373 if (timercmp(&tv, &end, >=)) { in ng_dialog()
380 timersub(&end, &tv, &tv); in ng_dialog()
381 if (tv.tv_sec == 0 && tv.tv_usec < clockinfo.tick) in ng_dialog()
384 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) in ng_dialog()
404 tv.tv_sec = 0; in ng_dialog()
405 tv.tv_usec = 0; in ng_dialog()
[all …]
/freebsd/contrib/wpa/src/l2_packet/
H A Dl2_packet_privsep.c141 struct timeval tv; in l2_packet_init() local
193 tv.tv_sec = 5; in l2_packet_init()
194 tv.tv_usec = 0; in l2_packet_init()
195 res = select(l2->fd + 1, &rfds, NULL, NULL, &tv); in l2_packet_init()
/freebsd/libexec/bootpd/tools/bootptest/
H A Dbootptest.c382 struct timeval tv; in main() local
385 tv.tv_sec = WAITSECS; in main()
386 tv.tv_usec = 0L; in main()
388 n = select(s + 1, (fd_set *) & readfds, NULL, NULL, &tv); in main()
/freebsd/contrib/unbound/util/
H A Dmini_event.h179 #define evtimer_add(ev, tv) event_add(ev, tv) argument
H A Dwinsock_event.h233 #define evtimer_add(ev, tv) event_add(ev, tv) argument
/freebsd/contrib/libpcap/
H A Dpcap-snf.c112 struct timeval tv; in snf_timestamp_to_timeval() local
119 tv.tv_sec = ts_nanosec / _NSEC_PER_SEC; in snf_timestamp_to_timeval()
124 tv.tv_usec = tv_nsec; in snf_timestamp_to_timeval()
126 tv.tv_usec = tv_nsec / 1000; in snf_timestamp_to_timeval()
128 return tv; in snf_timestamp_to_timeval()
/freebsd/sbin/setkey/
H A Dtest-pfkey.c106 struct timeval tv; in sendkeymsg()
107 tv.tv_sec = 1; in sendkeymsg()
108 tv.tv_usec = 0; in sendkeymsg()
109 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) { in sendkeymsg()
H A Dsetkey.c337 struct timeval tv; in sendkeymsg() local
338 tv.tv_sec = 1; in sendkeymsg()
339 tv.tv_usec = 0; in sendkeymsg()
340 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) { in sendkeymsg()
/freebsd/sys/contrib/device-tree/Bindings/display/connector/
H A Danalog-tv-connector.yaml4 $id: http://devicetree.org/schemas/display/connector/analog-tv-connector.yaml#
43 label = "tv";
/freebsd/crypto/openssh/
H A Ddefines.h517 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ argument
518 (ts)->tv_sec = (tv)->tv_sec; \
519 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
524 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ argument
525 (tv)->tv_sec = (ts)->tv_sec; \
526 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/freebsd/sbin/ipf/ipsend/
H A Diptests.c88 # define PAUSE() tv.tv_sec = 0; tv.tv_usec = 10000; \
99 struct timeval tv; in ip_test1()
289 struct timeval tv; in ip_test1() local
291 gettimeofday(&tv, NULL); in ip_test1()
292 srand(tv.tv_sec ^ getpid() ^ tv.tv_usec); in ip_test1()
450 struct timeval tv;
544 struct timeval tv; in ip_test3() local
739 struct timeval tv; in ip_test4()
900 struct timeval tv; in ip_test5()
1244 struct timeval tv; in ip_test6()
[all …]
/freebsd/contrib/ntp/util/
H A Dntptime.c97 struct timeval tv; in main() local
306 tv.tv_sec = ntv.time.tv_sec; in main()
307 tv.tv_usec = ntv.time.tv_frac_sec; in main()
308 TVTOTS(&tv, &ts); in main()
H A Dtg.c257 struct timeval tv; /* system clock at startup */ in main() local
352 gettimeofday(&tv, NULL); in main()
353 tm = gmtime(&tv.tv_sec); in main()
365 delay(SECOND - tv.tv_usec * 8 / 1000); in main()
/freebsd/contrib/pf/libevent/
H A Devbuffer.c56 struct timeval tv, *ptv = NULL; in bufferevent_add() local
59 timerclear(&tv); in bufferevent_add()
60 tv.tv_sec = timeout; in bufferevent_add()
61 ptv = &tv; in bufferevent_add()
/freebsd/usr.sbin/bluetooth/bthidd/
H A Dserver.c179 struct timeval tv; in server_do() local
185 tv.tv_sec = 1; in server_do()
186 tv.tv_usec = 0; in server_do()
192 n = select(srv->maxfd + 1, &rfdset, &wfdset, NULL, &tv); in server_do()
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c529 struct timeval tv, start; in rtm_ifinfo_sleep() local
538 for (tv.tv_sec = sec, tv.tv_usec = 0; in rtm_ifinfo_sleep()
539 tv.tv_sec > 0; in rtm_ifinfo_sleep()
540 (void)gettimeofday(&tv, NULL), in rtm_ifinfo_sleep()
541 tv.tv_sec = sec - (tv.tv_sec - start.tv_sec)) { in rtm_ifinfo_sleep()
544 n = select(s + 1, &rfds, NULL, NULL, &tv); in rtm_ifinfo_sleep()
570 return (tv.tv_sec); in rtm_ifinfo_sleep()
/freebsd/sys/netinet/tcp_stacks/
H A Drack.c448 (tv) = (tvmin); \
450 (tv) = (tvmax); \
614 struct timeval tv; in rack_get_lt_bw() local
621 microuptime(&tv); in rack_get_lt_bw()
696 struct timeval tv; in rack_swap_beta_values() local
768 struct timeval tv; in rack_log_gpset() local
2319 struct timeval tv; in rack_rate_cap_bw() local
2336 microuptime(&tv); in rack_rate_cap_bw()
5829 struct timeval tv; in policer_detection() local
18450 &tv) == 0) { in rack_do_segment()
[all …]
/freebsd/contrib/unbound/dnstap/
H A Ddtstream.c193 struct timeval tv = {0}; in dt_msg_queue_start_timer() local
222 tv.tv_sec = 1; in dt_msg_queue_start_timer()
223 tv.tv_usec = 0; in dt_msg_queue_start_timer()
578 struct timeval tv; in dtio_reconnect_enable() local
597 memset(&tv, 0, sizeof(tv)); in dtio_reconnect_enable()
598 tv.tv_sec = msec/1000; in dtio_reconnect_enable()
599 tv.tv_usec = (msec%1000)*1000; in dtio_reconnect_enable()
1772 struct timeval tv; in dtio_control_stop_flush() local
1800 memset(&tv, 0, sizeof(tv)); in dtio_control_stop_flush()
1801 tv.tv_sec = 2; in dtio_control_stop_flush()
[all …]
/freebsd/crypto/heimdal/lib/kadm5/
H A Dad.c729 a->mod_values = tv; in kadm5_ad_create_principal()
730 tv[0] = "9223372036854775807"; /* "never" */ in kadm5_ad_create_principal()
731 tv[1] = NULL; in kadm5_ad_create_principal()
763 a->mod_values = tv; in kadm5_ad_create_principal()
764 tv[0] = "9223372036854775807"; /* "never" */ in kadm5_ad_create_principal()
765 tv[1] = NULL; in kadm5_ad_create_principal()
1078 char *tv[2] = { NULL, NULL }; in kadm5_ad_modify_principal() local
1190 asprintf(&tv[0], "%llu", wt); in kadm5_ad_modify_principal()
1194 a->mod_values = tv; in kadm5_ad_modify_principal()
1218 if (tv[0]) in kadm5_ad_modify_principal()
[all …]
/freebsd/sys/dev/fb/
H A Dsplash_bmp.c112 struct timeval tv; in bmp_splash() local
132 getmicrotime(&tv); in bmp_splash()
134 time_stamp = tv.tv_sec; in bmp_splash()
135 if (tv.tv_sec > time_stamp + FADE_TIMEOUT) { in bmp_splash()
152 time_stamp = tv.tv_sec; in bmp_splash()
/freebsd/contrib/libevent/test/
H A Dregress_iocp.c93 struct timeval tv; in count_wait_for() local
99 tv.tv_sec = 0; in count_wait_for()
100 tv.tv_usec = ms * 1000; in count_wait_for()
102 EVTHREAD_COND_WAIT_TIMED(count_cond, count_lock, &tv); in count_wait_for()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_iocp.c93 struct timeval tv; in count_wait_for() local
99 tv.tv_sec = 0; in count_wait_for()
100 tv.tv_usec = ms * 1000; in count_wait_for()
102 EVTHREAD_COND_WAIT_TIMED(count_cond, count_lock, &tv); in count_wait_for()
/freebsd/sys/kern/
H A Dsubr_msgbuf.c239 struct timeval tv; in msgbuf_addstr() local
241 microuptime(&tv); in msgbuf_addstr()
243 (intmax_t)tv.tv_sec, (int)tv.tv_usec); in msgbuf_addstr()
/freebsd/tools/regression/rpcsec_gss/
H A Drpctest.c92 struct timeval tv; in test_client() local
148 tv.tv_sec = 5; in test_client()
149 tv.tv_usec = 0; in test_client()
153 (xdrproc_t) xdr_int, (char *) &num, tv); in test_client()
/freebsd/contrib/ntp/include/
H A Dtimepps-SunOS.h394 struct timeval tv; in time_pps_fetch() member
447 infobuf.assert_timestamp.tv_sec = ev.tv.tv_sec; in time_pps_fetch()
448 infobuf.assert_timestamp.tv_nsec = ev.tv.tv_usec * 1000; in time_pps_fetch()

12345678910>>...24