Home
last modified time | relevance | path

Searched refs:tv (Results 126 – 150 of 587) sorted by relevance

12345678910>>...24

/freebsd/contrib/unbound/compat/
H A Dgetentropy_linux.c339 struct timeval tv; in getentropy_fallback() local
362 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
364 cnt += (int)tv.tv_sec; in getentropy_fallback()
365 cnt += (int)tv.tv_usec; in getentropy_fallback()
504 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
506 cnt += (int)tv.tv_sec; in getentropy_fallback()
507 cnt += (int)tv.tv_usec; in getentropy_fallback()
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c153 struct timeval tv; in ftpd_logwtmp_wtmp() local
155 gettimeofday (&tv, 0); in ftpd_logwtmp_wtmp()
156 utx.ut_tv.tv_sec = tv.tv_sec; in ftpd_logwtmp_wtmp()
157 utx.ut_tv.tv_usec = tv.tv_usec; in ftpd_logwtmp_wtmp()
/freebsd/sys/dev/ath/
H A Dif_ath_alq.c157 struct timeval tv; in if_ath_alq_post() local
162 microtime(&tv); in if_ath_alq_post()
179 ap->tstamp_sec = htobe32((uint32_t) tv.tv_sec); in if_ath_alq_post()
180 ap->tstamp_usec = htobe32((uint32_t) tv.tv_usec); in if_ath_alq_post()
/freebsd/contrib/capsicum-test/
H A Dselect.cc53 struct timeval tv; variable
54 tv.tv_sec = 0;
55 tv.tv_usec = 100;
63 int ret = select(maxfd+1, &rset, &wset, NULL, &tv);
73 ret = select(maxfd+1, &rset, &wset, NULL, &tv);
/freebsd/contrib/netbsd-tests/net/config/
H A Dnetconfig.c191 struct timeval tv; in netcfg_rump_pingtest() local
201 tv.tv_sec = ms_timo / 1000; in netcfg_rump_pingtest()
202 tv.tv_usec = 1000 * (ms_timo % 1000); in netcfg_rump_pingtest()
204 &tv, sizeof(tv)) == -1) in netcfg_rump_pingtest()
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h350 struct timeval tv; in _jiffies() local
352 microuptime(&tv); in _jiffies()
353 return tvtohz(&tv); in _jiffies()
359 struct timeval tv; in msecs_to_jiffies() local
361 tv.tv_sec = msecs / 1000000UL; in msecs_to_jiffies()
362 tv.tv_usec = msecs % 1000000UL; in msecs_to_jiffies()
363 return tvtohz(&tv); in msecs_to_jiffies()
/freebsd/sys/contrib/device-tree/Bindings/display/
H A Dallwinner,sun4i-a10-tcon.yaml31 - const: allwinner,sun8i-a83t-tcon-tv
32 - const: allwinner,sun8i-r40-tcon-tv
35 - const: allwinner,sun9i-a80-tcon-tv
37 - const: allwinner,sun20i-d1-tcon-tv
52 - allwinner,sun8i-h3-tcon-tv
53 - allwinner,sun50i-a64-tcon-tv
58 - allwinner,sun50i-h6-tcon-tv
59 - const: allwinner,sun8i-r40-tcon-tv
254 - allwinner,sun8i-r40-tcon-tv
255 - allwinner,sun9i-a80-tcon-tv
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Depoll.c417 epoll_dispatch(struct event_base *base, struct timeval *tv) in epoll_dispatch() argument
429 if (tv == NULL) { in epoll_dispatch()
434 if (tv->tv_sec == 0 && tv->tv_usec == 0) { in epoll_dispatch()
439 is.it_value.tv_sec = tv->tv_sec; in epoll_dispatch()
440 is.it_value.tv_nsec = tv->tv_usec * 1000; in epoll_dispatch()
451 if (tv != NULL) { in epoll_dispatch()
452 timeout = evutil_tv_to_msec_(tv); in epoll_dispatch()
/freebsd/contrib/libevent/
H A Depoll.c417 epoll_dispatch(struct event_base *base, struct timeval *tv) in epoll_dispatch() argument
429 if (tv == NULL) { in epoll_dispatch()
434 if (tv->tv_sec == 0 && tv->tv_usec == 0) { in epoll_dispatch()
439 is.it_value.tv_sec = tv->tv_sec; in epoll_dispatch()
440 is.it_value.tv_nsec = tv->tv_usec * 1000; in epoll_dispatch()
451 if (tv != NULL) { in epoll_dispatch()
452 timeout = evutil_tv_to_msec_(tv); in epoll_dispatch()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c288 struct timeval *tv; in OS_checkSystemDateInput() local
320 if ((tv = malloc(sizeof(*tv))) == NULL) in OS_checkSystemDateInput()
323 tv->tv_sec = t; in OS_checkSystemDateInput()
324 tv->tv_usec = (int32_t)str[7] * 100000; in OS_checkSystemDateInput()
326 return (tv); in OS_checkSystemDateInput()
/freebsd/sys/netinet/tcp_stacks/
H A Drack_pcm.c234 struct timeval tv; in rack_update_pcm_ack() local
240 (void)tcp_get_usecs(&tv); in rack_update_pcm_ack()
245 log.u_bbr.timeStamp = tcp_tv_to_usectick(&tv); in rack_update_pcm_ack()
282 0, &log, false, NULL, NULL, 0, &tv); in rack_update_pcm_ack()
289 log.u_bbr.timeStamp = tcp_tv_to_usectick(&tv); in rack_update_pcm_ack()
305 0, &log, false, NULL, NULL, 0, &tv); in rack_update_pcm_ack()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-pselect.c160 struct timeval tv, *tvp = NULL; in pselect() local
163 tv.tv_sec = timeout->tv_sec; in pselect()
164 tv.tv_usec = timeout->tv_nsec / 1000; in pselect()
165 tvp = &tv; in pselect()
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dsend_recv.c149 struct timeval tv; in hci_recv() local
161 tv.tv_sec = timeout; in hci_recv()
162 tv.tv_usec = 0; in hci_recv()
164 n = select(s + 1, &rfd, NULL, NULL, &tv); in hci_recv()
/freebsd/usr.bin/procstat/
H A Dprocstat_rusage.c64 format_time(struct timeval *tv) in format_time() argument
69 minutes = tv->tv_sec / 60; in format_time()
70 seconds = tv->tv_sec % 60; in format_time()
82 hours, minutes, seconds, (unsigned int)tv->tv_usec); in format_time()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_win32util.c121 _nc_gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) in _nc_gettimeofday() argument
129 tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL); in _nc_gettimeofday()
130 tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL); in _nc_gettimeofday()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Duc_common.c127 struct timeval tv; in uc_socket_create() local
138 tv.tv_sec = TIMEOUT; in uc_socket_create()
139 tv.tv_usec = 0; in uc_socket_create()
140 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0 || in uc_socket_create()
141 setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) < 0) { in uc_socket_create()
355 struct timeval tv; in uc_socket_accept() local
362 tv.tv_sec = TIMEOUT; in uc_socket_accept()
363 tv.tv_usec = 0; in uc_socket_accept()
364 rv = select(listenfd + 1, &rset, (fd_set *)NULL, (fd_set *)NULL, &tv); in uc_socket_accept()
/freebsd/contrib/ntp/libparse/
H A Dparsesolaris.c357 parse->parse_ppsclockev.tv.tv_sec = 0; in parseopen()
358 parse->parse_ppsclockev.tv.tv_usec = 0; in parseopen()
653 c_time.tv.tv_sec = hres_time.tv_sec; in parserput()
654 c_time.tv.tv_usec = hres_time.tv_nsec / 1000; in parserput()
734 c_time.tv.tv_sec = hres_time.tv_sec; in parserput()
735 c_time.tv.tv_usec = hres_time.tv_nsec / 1000; in parserput()
764 parse->parse_ppsclockev.tv = c_time.tv; in parserput()
1013 cdevent.tv.tv_sec = hres_time.tv_sec; in zs_xsisr()
1014 cdevent.tv.tv_usec = hres_time.tv_nsec / 1000; in zs_xsisr()
1058 ((parsestream_t *)q->q_ptr)->parse_ppsclockev.tv = cdevent.tv; in zs_xsisr()
/freebsd/tools/tools/net80211/w00t/expand/
H A Dexpand.c369 struct timeval tv; in own() local
378 if (gettimeofday(&tv, NULL) == -1) in own()
381 el = elapsed(&p->last, &tv); in own()
394 tv.tv_sec = el/1000/1000; in own()
395 tv.tv_usec = el - tv.tv_sec*1000*1000; in own()
396 to = &tv; in own()
/freebsd/usr.bin/systat/
H A Difstat.c68 struct timeval tv; member
269 struct timeval tv, new_tv, old_tv; in fetchifstat() local
319 old_tv = ifp->tv; in fetchifstat()
320 timersub(&new_tv, &old_tv, &tv); in fetchifstat()
321 elapsed = tv.tv_sec + (tv.tv_usec * 1e-6); in fetchifstat()
351 ifp->tv.tv_sec = new_tv.tv_sec; in fetchifstat()
352 ifp->tv.tv_usec = new_tv.tv_usec; in fetchifstat()
/freebsd/contrib/libfido2/regress/
H A Ddev.c61 struct timespec tv; in dummy_read() local
84 tv.tv_sec = d / 1000; in dummy_read()
85 tv.tv_nsec = (d % 1000) * 1000000; in dummy_read()
86 if (nanosleep(&tv, NULL) == -1) in dummy_read()
108 struct timespec tv; in dummy_write() local
118 tv.tv_sec = interval_ms / 1000; in dummy_write()
119 tv.tv_nsec = (interval_ms % 1000) * 1000000; in dummy_write()
120 if (nanosleep(&tv, NULL) == -1) in dummy_write()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dtest-changelist.c169 struct timeval tv; in main() local
194 tv.tv_sec = 1; in main()
195 tv.tv_usec = 500*1000; in main()
197 evtimer_add(timeout, &tv); in main()
H A Dregress_http.c610 struct timeval tv; in http_delay_cb() local
612 tv.tv_sec = 0; in http_delay_cb()
687 struct timeval tv; in http_bad_request_test() local
717 timerclear(&tv); in http_bad_request_test()
751 timerclear(&tv); in http_bad_request_test()
1370 tv.tv_sec = 0; in http_request_error_cb_with_cancel()
1536 tv.tv_sec = 0; in http_cancel_test()
4251 tv.tv_sec = 0; in terminate_chunked_trickle_cb()
4288 tv.tv_sec = 0; in terminate_chunked_cb()
4351 &tv); in http_terminate_chunked_test_impl()
[all …]
/freebsd/contrib/libevent/test/
H A Dtest-changelist.c169 struct timeval tv; in main() local
194 tv.tv_sec = 1; in main()
195 tv.tv_usec = 500*1000; in main()
197 evtimer_add(timeout, &tv); in main()
/freebsd/contrib/jemalloc/src/
H A Dnstime.c141 struct timeval tv; in nstime_get() local
143 gettimeofday(&tv, NULL); in nstime_get()
144 nstime_init2(time, tv.tv_sec, tv.tv_usec * 1000); in nstime_get()
/freebsd/lib/libc/gen/
H A Dutxdb.c54 struct timeval tv; \
55 gettimeofday(&tv, NULL); \
56 (fu)->fu_tv = htobe64((uint64_t)tv.tv_sec * 1000000 + \
57 (uint64_t)tv.tv_usec); \

12345678910>>...24