Home
last modified time | relevance | path

Searched refs:tv (Results 251 – 275 of 586) sorted by relevance

1...<<11121314151617181920>>...24

/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_pkt_randomizer.c136 struct timeval tv; in __osm_pkt_randomizer_process_path() local
147 gettimeofday(&tv, &tz); in __osm_pkt_randomizer_process_path()
148 seed = tv.tv_usec; in __osm_pkt_randomizer_process_path()
/freebsd/contrib/bearssl/T0/
H A DT0Comp.cs382 TValue tv = new TValue(0, new TPointerExpr( in T0Comp()
384 cpu.Push(tv); in T0Comp()
415 wordBuilder.Literal(tv); in T0Comp()
417 cpu.Push(tv); in T0Comp()
2027 tv = new TValue(0); in TryParseLiteral()
2029 tv = StringToBlob(tt.Substring(1)); in TryParseLiteral()
2033 tv = DecodeCharConst(tt.Substring(1)); in TryParseLiteral()
2082 tv = x; in TryParseLiteral()
2088 TValue tv; in ParseInteger()
2089 if (!TryParseLiteral(tt, out tv)) { in ParseInteger()
[all …]
/freebsd/usr.sbin/usbdump/
H A Dusbdump.c465 struct timeval tv; in print_apacket() local
497 tv.tv_sec = hdr->ts_sec; in print_apacket()
498 tv.tv_usec = hdr->ts_usec; in print_apacket()
499 tm = localtime(&tv.tv_sec); in print_apacket()
505 (int)len, buf, tv.tv_usec, in print_apacket()
815 struct timeval tv; in main() local
994 tv.tv_sec = 1; in main()
995 tv.tv_usec = 0; in main()
996 if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&tv) < 0) in main()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_dgram.c586 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
587 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
607 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
615 tv->tv_sec = timeout / 1000; in dgram_ctrl()
616 tv->tv_usec = (timeout % 1000) * 1000; in dgram_ctrl()
617 ret = sizeof(*tv); in dgram_ctrl()
637 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
638 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
666 tv->tv_sec = timeout / 1000; in dgram_ctrl()
667 tv->tv_usec = (timeout % 1000) * 1000; in dgram_ctrl()
[all …]
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c359 struct timeval tv; in ctf_process_inbound_raw() local
384 tcp_get_usecs(&tv); in ctf_process_inbound_raw()
449 tcp_get_usecs(&tv); in ctf_process_inbound_raw()
459 drop_hdrlen, tlen, iptos, nxt_pkt, &tv); in ctf_process_inbound_raw()
946 struct timeval tv; in ctf_log_sack_filter() local
949 log.u_bbr.timeStamp = tcp_get_usecs(&tv); in ctf_log_sack_filter()
971 0, &log, false, &tv); in ctf_log_sack_filter()
/freebsd/tools/tools/netmap/
H A Dctrs.h68 struct timeval tv = { in timespec2val() local
72 return tv; in timespec2val()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c388 struct timeval tv; in linux_time() local
392 microtime(&tv); in linux_time()
393 tm = tv.tv_sec; in linux_time()
448 microuptime(&tv); in linux_times()
506 struct timeval tv[2], *tvp; in linux_utime() local
513 tv[0].tv_sec = lut.l_actime; in linux_utime()
514 tv[0].tv_usec = 0; in linux_utime()
516 tv[1].tv_usec = 0; in linux_utime()
517 tvp = tv; in linux_utime()
541 tvp = tv; in linux_utimes()
[all …]
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_interfaces.c143 ticks_get_timeval(struct timeval *tv) in ticks_get_timeval() argument
147 if (tv->tv_sec != 0 || tv->tv_usec != 0) { in ticks_get_timeval()
148 v = 100ULL * tv->tv_sec + tv->tv_usec / 10000ULL; in ticks_get_timeval()
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c363 struct timeval tv; in cv_timedwait() local
371 VERIFY(gettimeofday(&tv, NULL) == 0); in cv_timedwait()
373 ts.tv_sec = tv.tv_sec + delta / hz; in cv_timedwait()
374 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % hz) * (NANOSEC / hz); in cv_timedwait()
398 struct timeval tv; in cv_timedwait_hires() local
411 VERIFY0(gettimeofday(&tv, NULL)); in cv_timedwait_hires()
413 ts.tv_sec = tv.tv_sec + delta / NANOSEC; in cv_timedwait_hires()
414 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % NANOSEC); in cv_timedwait_hires()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c131 struct timeval tv; in sodium_hrtime() local
133 if (gettimeofday(&tv, NULL) != 0) { in sodium_hrtime()
136 return ((uint64_t) tv.tv_sec) * 1000000U + (uint64_t) tv.tv_usec; in sodium_hrtime()
/freebsd/contrib/ncurses/ncurses/tty/
H A Dlib_twait.c196 struct timeval tv; in _nc_timed_wait() local
386 tv.tv_sec = 0; in _nc_timed_wait()
387 tv.tv_usec = (milliseconds == 0) ? 0 : (10 * 1000); in _nc_timed_wait()
389 if ((result = select(count, &set, NULL, NULL, &tv)) != 0) in _nc_timed_wait()
/freebsd/contrib/ntp/sntp/libevent/
H A Devthread.c297 debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv) in debug_cond_wait() argument
305 r = original_cond_fns_.wait_condition(cond_, lock->lock, tv); in debug_cond_wait()
489 evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv) in evthreadimpl_cond_wait_() argument
492 return evthread_cond_fns_.wait_condition(cond, lock, tv); in evthreadimpl_cond_wait_()
H A Dwin32select.c280 win32_dispatch(struct event_base *base, struct timeval *tv) in win32_dispatch() argument
308 long msec = tv ? evutil_tv_to_msec_(tv) : LONG_MAX; in win32_dispatch()
322 (struct fd_set*)win32op->exset_out, tv); in win32_dispatch()
/freebsd/contrib/ntp/libntp/
H A Dsystime.c150 struct timeval tv; in get_ostime() local
152 rc = GETTIMEOFDAY(&tv, NULL); in get_ostime()
153 tsp->tv_sec = tv.tv_sec; in get_ostime()
154 tsp->tv_nsec = tv.tv_usec * 1000; in get_ostime()
/freebsd/tests/sys/netinet/libalias/
H A Dperf.c43 #define timevalcmp(tv, uv, cmp) \ argument
44 (((tv).tv_sec == (uv).tv_sec) \
45 ? ((tv).tv_usec cmp (uv).tv_usec) \
46 : ((tv).tv_sec cmp (uv).tv_sec))
/freebsd/tools/tools/net80211/wesside/dics/
H A Ddics.c316 struct timeval tv; in main() local
405 tv.tv_sec = 0; in main()
406 tv.tv_usec = 10*1000; in main()
407 rd = select(us+1, &rfds, NULL, NULL, &tv); in main()
/freebsd/contrib/libevent/
H A Dwin32select.c280 win32_dispatch(struct event_base *base, struct timeval *tv) in win32_dispatch() argument
308 long msec = tv ? evutil_tv_to_msec_(tv) : LONG_MAX; in win32_dispatch()
322 (struct fd_set*)win32op->exset_out, tv); in win32_dispatch()
H A Devthread.c297 debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv) in debug_cond_wait() argument
305 r = original_cond_fns_.wait_condition(cond_, lock->lock, tv); in debug_cond_wait()
489 evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv) in evthreadimpl_cond_wait_() argument
492 return evthread_cond_fns_.wait_condition(cond, lock, tv); in evthreadimpl_cond_wait_()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dbench_http.c188 struct timeval tv={99999999,0}; in main() local
189 event_base_loopexit(base, &tv); in main()
/freebsd/contrib/libevent/test/
H A Dbench_http.c188 struct timeval tv={99999999,0}; in main() local
189 event_base_loopexit(base, &tv); in main()
/freebsd/contrib/wpa/src/utils/
H A Deloop_win.c535 struct os_reltime tv, now; in eloop_run() local
543 tv.sec = tv.usec = 0; in eloop_run()
549 os_reltime_sub(&timeout->time, &now, &tv); in eloop_run()
563 timeout_val = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
H A Dwpa_debug.c72 struct os_time tv; in wpa_debug_print_timestamp() local
77 os_get_time(&tv); in wpa_debug_print_timestamp()
80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, in wpa_debug_print_timestamp()
81 (unsigned int) tv.usec); in wpa_debug_print_timestamp()
84 printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec); in wpa_debug_print_timestamp()
/freebsd/crypto/heimdal/kdc/
H A Dprocess.c42 krb5_kdc_update_time(struct timeval *tv) in krb5_kdc_update_time() argument
44 if (tv == NULL) in krb5_kdc_update_time()
47 _kdc_now = *tv; in krb5_kdc_update_time()
/freebsd/sys/dev/watchdog/
H A Dwatchdog.c96 struct timeval tv; in pow2ns_to_ticks() local
100 TIMESPEC_TO_TIMEVAL(&tv, &ts); in pow2ns_to_ticks()
101 return (tvtohz(&tv)); in pow2ns_to_ticks()
/freebsd/sys/contrib/device-tree/src/arm/allwinner/
H A Dsun5i-a10s-r7-tv-dongle.dts50 model = "R7 A10s hdmi tv-stick";
51 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
67 label = "r7-tv-dongle:green:usr";

1...<<11121314151617181920>>...24