/freebsd/sys/contrib/device-tree/Bindings/media/ |
H A D | rc.yaml | 30 - rc-ati-tv-wonder-hd-600 80 - rc-hisi-tv-demo 92 - rc-kworld-plus-tv-analog 124 - rc-rc5-tv 151 - rc-videomate-tv-pvr
|
/freebsd/contrib/libevent/ |
H A D | evthread-internal.h | 178 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument 179 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 ) 205 int evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv); 300 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument 301 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), (tv)) : 0 )
|
/freebsd/contrib/ncurses/include/ |
H A D | win32_curses.h | 72 #define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz) argument
|
H A D | nc_mingw.h | 54 #define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz) argument
|
/freebsd/contrib/bsnmp/lib/ |
H A D | snmpclient.c | 1374 if (tv != NULL) { in snmp_receive_packet() 1376 if (tv->tv_sec != 0 || tv->tv_usec != 0) { in snmp_receive_packet() 1379 tv, sizeof(*tv)) == -1) { in snmp_receive_packet() 1401 if (tv->tv_sec == 0 && tv->tv_usec == 0) { in snmp_receive_packet() 1424 if (tv != NULL) { in snmp_receive_packet() 1431 tv->tv_sec = 0; in snmp_receive_packet() 1432 tv->tv_usec = 0; in snmp_receive_packet() 1434 tv, sizeof(*tv)); in snmp_receive_packet() 1509 struct timeval tv; in snmp_receive() local 1512 memset(&tv, 0, sizeof(tv)); in snmp_receive() [all …]
|
/freebsd/lib/libtacplus/ |
H A D | taclib.c | 260 struct timeval tv; in conn_server() local 269 tv.tv_sec = srvp->timeout; in conn_server() 270 tv.tv_usec = 0; in conn_server() 495 struct timeval tv; in read_timed() local 505 gettimeofday(&tv, NULL); in read_timed() 506 timersub(deadline, &tv, &tv); in read_timed() 507 if (tv.tv_sec >= 0) { in read_timed() 647 struct timeval tv; in send_msg() local 657 gettimeofday(&tv, NULL); in send_msg() 658 timersub(&deadline, &tv, &tv); in send_msg() [all …]
|
/freebsd/usr.sbin/ypbind/ |
H A D | yp_ping.c | 208 struct timeval tv = { 5, 0 }; in __yp_ping() local 250 clnt = clntudp_create(any, YPPROG, YPVERS, tv, &sock); in __yp_ping() 260 tv.tv_sec = 0; in __yp_ping() 262 clnt_control(clnt, CLSET_TIMEOUT, (char *)&tv); in __yp_ping()
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | proto.c | 409 struct timeval tv; in proto_timeout() local 420 tv.tv_sec = timeout; in proto_timeout() 421 tv.tv_usec = 0; in proto_timeout() 422 if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) < 0) in proto_timeout() 424 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in proto_timeout()
|
/freebsd/stand/kboot/kboot/ |
H A D | main.c | 419 struct host_timeval tvi, tv; in delay() local 424 host_gettimeofday(&tv, NULL); in delay() 425 t = tv.tv_sec*1000000 + tv.tv_usec; in delay() 432 struct host_timeval tv; in getsecs() local 433 host_gettimeofday(&tv, NULL); in getsecs() 434 return (tv.tv_sec); in getsecs()
|
H A D | hostcons.c | 92 struct host_timeval tv = {0,0}; in hostcons_poll() local 96 ret = host_select(32, &fds, NULL, NULL, &tv); in hostcons_poll()
|
/freebsd/contrib/ntp/libparse/ |
H A D | clk_rawdcf.c | 609 delta.tv_sec = ref->tv.tv_sec - offset - base->tv.tv_sec; in calc_usecdiff() 610 delta.tv_usec = ref->tv.tv_usec - base->tv.tv_usec; in calc_usecdiff() 644 if (t != NULL && t->tminute.tv.tv_sec != 0) { in snt_rawdcf() 659 parseio->parse_dtime.parse_time.tv.tv_sec++; in snt_rawdcf() 701 if (t->timeout.tv.tv_sec != 0) in inp_rawdcf()
|
H A D | parse.c | 123 delta.tv_sec = tstamp->tv.tv_sec - parseio->parse_lastchar.tv.tv_sec; in parse_timedout() 124 delta.tv_usec = tstamp->tv.tv_usec - parseio->parse_lastchar.tv.tv_usec; in parse_timedout() 589 parseio->parse_dtime.parse_time.tv.tv_sec)); in updatetimeinfo() 732 parseio->parse_dtime.parse_time.tv.tv_sec = t; in timepacket() 733 parseio->parse_dtime.parse_time.tv.tv_usec = clock_time.usecond; in timepacket()
|
/freebsd/contrib/ntp/adjtimed/ |
H A D | adjtimed.c | 59 #define tvtod(tv) ((double)tv.tv_sec + ((double)tv.tv_usec / (double)MILLION)) argument 229 AdjustClockRate(&msg.msgb.tv, &remains); in main() 232 msg.msgb.tv = remains; in main()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_netbsd.cpp | 244 timeval tv; in NanoTime() local 246 internal_memset(&tv, 0, sizeof(tv)); in NanoTime() 247 _REAL(__gettimeofday50, &tv, 0); in NanoTime() 248 return (u64)tv.tv_sec * 1000 * 1000 * 1000 + tv.tv_usec * 1000; in NanoTime()
|
/freebsd/contrib/unbound/util/ |
H A D | mini_event.c | 253 struct timeval* ATTR_UNUSED(tv)) in event_base_loopexit() argument 292 int event_add(struct event* ev, struct timeval* tv) in event_add() argument 311 if(tv && (ev->ev_events&EV_TIMEOUT)) { in event_add() 314 ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec; in event_add() 315 ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec; in event_add() 370 int signal_add(struct event* ev, struct timeval* ATTR_UNUSED(tv)) in signal_add() argument
|
H A D | winsock_event.c | 451 struct timeval * ATTR_UNUSED(tv)) in event_base_loopexit() argument 491 int event_add(struct event *ev, struct timeval *tv) in event_add() argument 495 (tv?(long long)tv->tv_sec*1000+(long long)tv->tv_usec/1000:-1), in event_add() 556 if(tv && (ev->ev_events&EV_TIMEOUT)) { in event_add() 559 ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec; in event_add() 560 ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec; in event_add() 624 int signal_add(struct event *ev, struct timeval * ATTR_UNUSED(tv)) in signal_add() argument
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_os.c | 944 struct timeval tv; in ocs_setup_timer() local 961 tv.tv_sec = timeout_ms / 1000; in ocs_setup_timer() 962 tv.tv_usec = (timeout_ms % 1000) * 1000; in ocs_setup_timer() 964 hz = tvtohz(&tv); in ocs_setup_timer() 980 struct timeval tv; in ocs_mod_timer() local 988 tv.tv_sec = timeout_ms / 1000; in ocs_mod_timer() 989 tv.tv_usec = (timeout_ms % 1000) * 1000; in ocs_mod_timer() 991 hz = tvtohz(&tv); in ocs_mod_timer()
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_helpers.c | 106 struct timeval tv; in get_wpa_cli_event2() local 120 tv.tv_sec = default_timeout; in get_wpa_cli_event2() 121 tv.tv_usec = 0; in get_wpa_cli_event2() 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv); in get_wpa_cli_event2()
|
/freebsd/lib/libc/rpc/ |
H A D | clnt_dg.c | 327 struct timeval next_sendtime, starttime, time_waited, tv; in clnt_dg_call() local 452 timersub(&next_sendtime, &time_waited, &tv); in clnt_dg_call() 454 timersub(&timeout, &time_waited, &tv); in clnt_dg_call() 455 if (tv.tv_sec < 0 || tv.tv_usec < 0) in clnt_dg_call() 456 tv.tv_sec = tv.tv_usec = 0; in clnt_dg_call() 457 TIMEVAL_TO_TIMESPEC(&tv, &ts); in clnt_dg_call() 492 gettimeofday(&tv, NULL); in clnt_dg_call() 493 timersub(&tv, &starttime, &time_waited); in clnt_dg_call()
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_agents.c | 209 struct timeval tv; in zfs_agent_post_event() local 224 (void) gettimeofday(&tv, NULL); in zfs_agent_post_event() 225 tod[0] = tv.tv_sec; in zfs_agent_post_event() 226 tod[1] = tv.tv_usec; in zfs_agent_post_event() 257 search.gs_vdev_expandtime + 10 > tv.tv_sec) { in zfs_agent_post_event()
|
/freebsd/sys/nfs/ |
H A D | krpc_subr.c | 199 struct timeval tv; in krpc_call() local 223 tv.tv_sec = 1; in krpc_call() 224 tv.tv_usec = 0; in krpc_call() 229 sopt.sopt_val = &tv; in krpc_call() 230 sopt.sopt_valsize = sizeof tv; in krpc_call()
|
/freebsd/contrib/ntp/sntp/ |
H A D | utilities.c | 137 const struct timeval *tv in tv_to_str() argument 152 gmt_time = tv->tv_sec; in tv_to_str() 175 (int)tv->tv_usec, in tv_to_str()
|
/freebsd/contrib/tcsh/ |
H A D | ed.screen.c | 444 struct termcapval *tv; in SetTC() local 475 for (tv = tval; tv->name != NULL; tv++) in SetTC() 476 if (strcmp(tv->name, what) == 0) in SetTC() 479 if (tv->name != NULL) { in SetTC() 480 if (tv == &tval[T_pt] || tv == &tval[T_km] || in SetTC() 481 tv == &tval[T_am] || tv == &tval[T_xn]) { in SetTC() 483 tv->val = 1; in SetTC() 485 tv->val = 0; in SetTC() 494 if (tv == &tval[T_am] || tv == &tval[T_xn]) in SetTC() 499 tv->val = atoi(how); in SetTC() [all …]
|
/freebsd/lib/libradius/ |
H A D | radlib.c | 680 struct timeval *tv) in rad_continue_send_request() argument 785 tv->tv_sec = h->servers[h->srv].timeout; in rad_continue_send_request() 787 tv->tv_usec = 0; in rad_continue_send_request() 1070 return rad_continue_send_request(h, 0, fd, tv); in rad_init_send_request() 1238 struct timeval tv; in rad_send_request() local 1242 n = rad_init_send_request(h, &fd, &tv); in rad_send_request() 1248 timeradd(&tv, &timelimit, &timelimit); in rad_send_request() 1265 gettimeofday(&tv, NULL); in rad_send_request() 1266 timersub(&timelimit, &tv, &tv); in rad_send_request() 1267 if (tv.tv_sec > 0 || (tv.tv_sec == 0 && tv.tv_usec > 0)) in rad_send_request() [all …]
|
/freebsd/tools/tools/net80211/w00t/assoc/ |
H A D | assoc.c | 789 struct timeval tv; in main() local 793 if (gettimeofday(&tv, NULL) == -1) in main() 795 elapsed = tv.tv_sec - start.tv_sec; in main() 797 elapsed = tv.tv_usec - start.tv_usec; in main() 801 elapsed += tv.tv_usec; in main() 812 tv.tv_sec = elapsed/1000/1000; in main() 813 elapsed -= tv.tv_sec*1000*1000; in main() 814 tv.tv_usec = elapsed; in main() 817 NULL, &tv); in main()
|