Home
last modified time | relevance | path

Searched refs:tv (Results 76 – 100 of 586) sorted by relevance

12345678910>>...24

/freebsd/sys/dev/drm2/
H A Ddrm_os_freebsd.c38 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument
40 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
41 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
47 struct timeval tv; in ns_to_timeval() local
51 tv.tv_sec = 0; in ns_to_timeval()
52 tv.tv_usec = 0; in ns_to_timeval()
53 return (tv); in ns_to_timeval()
56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
59 tv.tv_sec--; in ns_to_timeval()
62 tv.tv_usec = rem / 1000; in ns_to_timeval()
[all …]
/freebsd/contrib/ntp/include/
H A Dtimepps-SCO.h392 struct timeval tv; in time_pps_fetch() local
425 if (ioctl(instance->filedes, TIOCDCDTIMESTAMP, &tv) < 0) { in time_pps_fetch()
435 if (tv.tv_sec != handle->tv_save.tv_sec || tv.tv_usec != handle->tv_save.tv_usec) { in time_pps_fetch()
436 handle->tv_save = tv; in time_pps_fetch()
446 infobuf.assert_timestamp.tv_sec = tv.tv_sec; in time_pps_fetch()
447 infobuf.assert_timestamp.tv_nsec = tv.tv_usec * 1000; in time_pps_fetch()
/freebsd/sbin/adjkerntz/
H A Dadjkerntz.c73 struct timeval tv, *stv; in main() local
159 if (gettimeofday(&tv, &tz)) { in main()
165 initial_sec = tv.tv_sec; in main()
267 stv = &tv; in main()
310 (void)gettimeofday(&tv, NULL); in main()
311 tv.tv_sec += diff; in main()
312 stv = &tv; in main()
/freebsd/sys/contrib/libsodium/test/default/
H A Dpwhash_scrypt_ll.c24 tv(const char *passwd, const char *salt, uint64_t N, uint32_t r, uint32_t p) in tv() function
54 tv(passwd1, salt1, N1, r1, p1); in main()
55 tv(passwd2, salt2, N2, r2, p2); in main()
56 tv(passwd3, salt3, N3, r3, p3); in main()
/freebsd/lib/libusb/
H A Dlibusb10_io.c135 if (tv == NULL) in libusb10_handle_events_sub()
138 timeout = (tv->tv_sec * 1000) + ((tv->tv_usec + 999) / 1000); in libusb10_handle_events_sub()
311 libusb_wait_for_event(libusb_context *ctx, struct timeval *tv) in libusb_wait_for_event() argument
319 if (tv == NULL) { in libusb_wait_for_event()
335 ts.tv_sec += tv->tv_sec; in libusb_wait_for_event()
336 ts.tv_nsec += tv->tv_usec * 1000; in libusb_wait_for_event()
355 struct timeval *tv, int *completed) in libusb_handle_events_timeout_completed() argument
370 err = libusb_handle_events_locked(ctx, tv); in libusb_handle_events_timeout_completed()
408 err = libusb10_handle_events_sub(ctx, tv); in libusb_handle_events_locked()
410 err = libusb_wait_for_event(ctx, tv); in libusb_handle_events_locked()
[all …]
/freebsd/sys/kern/
H A Dkern_time.c127 delta = *tv; in settime()
148 tv2 = *tv; in settime()
161 laststep = *tv; in settime()
665 struct timeval *tv; member
677 if (uap->tv) { in sys_settimeofday()
703 if (tv) { in kern_settimeofday()
704 if (tv->tv_usec < 0 || tv->tv_usec >= 1000000 || in kern_settimeofday()
983 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) in itimerfix()
985 if (tv->tv_sec == 0 && tv->tv_usec != 0 && in itimerfix()
1081 delta = tv; in ratecheck()
[all …]
H A Dkern_acct.c457 encode_timeval(struct timeval tv) in encode_timeval() argument
469 if (tv.tv_sec == 0) { in encode_timeval()
470 if (tv.tv_usec == 0) in encode_timeval()
473 val = tv.tv_usec; in encode_timeval()
479 log2_s = fls(tv.tv_sec) - 1; in encode_timeval()
482 val = 1000000 * tv.tv_sec + tv.tv_usec; in encode_timeval()
485 val = (unsigned int)(((uint64_t)1000000 * tv.tv_sec + in encode_timeval()
486 tv.tv_usec) >> exp); in encode_timeval()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dbench_cascade.c146 struct timeval *tv; in main() local
176 tv = run_once(num_pipes); in main()
177 if (tv == NULL) in main()
180 tv->tv_sec * 1000000L + tv->tv_usec); in main()
/freebsd/tools/tools/net80211/wesside/udps/
H A Dudps.c130 struct timeval tv; in main() local
157 memset(&tv, 0, sizeof(tv)); in main()
158 tv.tv_usec = 1000*10; in main()
161 rd = select(s + 1, &rfds, NULL ,NULL ,&tv); in main()
/freebsd/contrib/libevent/test/
H A Dbench_cascade.c146 struct timeval *tv; in main() local
176 tv = run_once(num_pipes); in main()
177 if (tv == NULL) in main()
180 tv->tv_sec * 1000000L + tv->tv_usec); in main()
/freebsd/crypto/heimdal/lib/krb5/
H A Dnet_write.c55 struct timeval tv, *tvp; in krb5_net_write_block() local
66 tv.tv_sec = timeout; in krb5_net_write_block()
67 tv.tv_usec = 0; in krb5_net_write_block()
68 tvp = &tv; in krb5_net_write_block()
/freebsd/contrib/libxo/tests/gettext/
H A Dgt_01.c89 struct timeval tv; in main() local
90 tv.tv_sec = 1435085229; in main()
91 tv.tv_usec = 123456; in main()
94 (void) gmtime_r(&tv.tv_sec, &tm); in main()
/freebsd/sys/contrib/device-tree/Bindings/display/
H A Dallwinner,sun4i-a10-tv-encoder.yaml4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tv-encoder.yaml#
15 const: allwinner,sun4i-a10-tv-encoder
43 tve0: tv-encoder@1c0a000 {
44 compatible = "allwinner,sun4i-a10-tv-encoder";
/freebsd/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c68 struct timeval tv; in onehost() local
73 tv.tv_sec = 0; in onehost()
74 tv.tv_usec = 500000; in onehost()
81 &tv)) == NULL) in onehost()
85 __rpc_control(CLCR_SET_RPCB_TIMEOUT, &tv); in onehost()
91 tv.tv_sec = 1; in onehost()
92 tv.tv_usec = 0; in onehost()
95 (xdrproc_t)xdr_void, NULL, tv) in onehost()
98 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv) in onehost()
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c113 struct timeval tv; in do_select() local
115 TIMESPEC_TO_TIMEVAL(&tv, delay); in do_select()
116 if (select(0, NULL, NULL, NULL, &tv) == -1) in do_select()
128 struct timeval tv; in do_poll() local
130 TIMESPEC_TO_TIMEVAL(&tv, delay); in do_poll()
142 struct timeval tv; in do_sleep() local
144 TIMESPEC_TO_TIMEVAL(&tv, delay); in do_sleep()
/freebsd/sys/arm/nvidia/
H A Dtegra_rtc.c128 struct timeval tv; in tegra_rtc_gettime() local
137 tv.tv_sec = sec; in tegra_rtc_gettime()
138 tv.tv_usec = msec * 1000; in tegra_rtc_gettime()
139 TIMEVAL_TO_TIMESPEC(&tv, ts); in tegra_rtc_gettime()
147 struct timeval tv; in tegra_rtc_settime() local
152 TIMESPEC_TO_TIMEVAL(&tv, ts); in tegra_rtc_settime()
154 WR4(sc, RTC_SECONDS, tv.tv_sec); in tegra_rtc_settime()
/freebsd/contrib/ncurses/ncurses/win32con/
H A Dgettimeofday.c44 gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) in NCURSES_EXPORT()
52 tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL); in NCURSES_EXPORT()
53 tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL); in NCURSES_EXPORT()
/freebsd/usr.bin/mkimg/
H A Duuid.c66 struct timeval tv; in osdep_uuidgen() local
71 if (gettimeofday(&tv, NULL) == -1) in osdep_uuidgen()
74 time += (uint64_t)tv.tv_sec * 10000000LL; in osdep_uuidgen()
75 time += tv.tv_usec * 10; in osdep_uuidgen()
/freebsd/contrib/ntp/clockstuff/
H A Dchutest.c245 struct timeval tv; in process_raw() local
249 (void) gettimeofday(&tv, (struct timezone *)0); in process_raw()
251 raw_filter((unsigned int)c, &tv); in process_raw()
253 difftv.tv_sec = tv.tv_sec - lasttv.tv_sec; in process_raw()
254 difftv.tv_usec = tv.tv_usec - lasttv.tv_usec; in process_raw()
260 c, tv.tv_sec, tv.tv_usec, difftv.tv_sec, in process_raw()
262 lasttv = tv; in process_raw()
280 struct timeval *tv in raw_filter() argument
296 diff.tv_sec = tv->tv_sec in raw_filter()
298 diff.tv_usec = tv->tv_usec in raw_filter()
[all …]
/freebsd/contrib/unbound/compat/
H A Dgetentropy_osx.c211 struct timeval tv; in getentropy_fallback() local
242 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
244 cnt += (int)tv.tv_sec; in getentropy_fallback()
245 cnt += (int)tv.tv_usec; in getentropy_fallback()
400 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
402 cnt += (int)tv.tv_sec; in getentropy_fallback()
403 cnt += (int)tv.tv_usec; in getentropy_fallback()
H A Dgetentropy_solaris.c259 struct timeval tv; in getentropy_fallback() local
283 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
285 cnt += (int)tv.tv_sec; in getentropy_fallback()
286 cnt += (int)tv.tv_usec; in getentropy_fallback()
422 HX((e = gettimeofday(&tv, NULL)) == -1, tv); in getentropy_fallback()
424 cnt += (int)tv.tv_sec; in getentropy_fallback()
425 cnt += (int)tv.tv_usec; in getentropy_fallback()
/freebsd/sys/dev/qlxgbe/
H A Dql_os.h123 struct timeval tv; in qla_get_usec_timestamp() local
125 microuptime(&tv); in qla_get_usec_timestamp()
127 return ((uint64_t)(((uint64_t)tv.tv_sec) * 1000000 + tv.tv_usec)); in qla_get_usec_timestamp()
/freebsd/sys/netinet/
H A Dtcp_seq.h89 struct timeval tv; in tcp_ts_getticks() local
95 getmicrouptime(&tv); in tcp_ts_getticks()
96 return (tv.tv_sec * 1000 + tv.tv_usec / 1000); in tcp_ts_getticks()
/freebsd/contrib/ntp/util/
H A Djitter.c111 struct timeval tv; /* seconds and microseconds */ in get_systime() local
116 gettimeofday(&tv, NULL); in get_systime()
117 now->l_i = tv.tv_sec + JAN_1970; in get_systime()
118 dtemp = tv.tv_usec / 1e6; in get_systime()
/freebsd/lib/libc/stdio/
H A Dxprintf_time.c61 struct timeval *tv; in __printf_render_time() local
68 tv = *((struct timeval **)arg[0]); in __printf_render_time()
69 t = tv->tv_sec; in __printf_render_time()
70 nsec = tv->tv_usec * 1000; in __printf_render_time()

12345678910>>...24