Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 17 of 17) sorted by relevance

/illumos-kvm-cmd/slirp/
H A Dtcp_timer.h111 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ argument
112 (tv) = (value); \
113 if ((tv) < (tvmin)) \
114 (tv) = (tvmin); \
115 else if ((tv) > (tvmax)) \
116 (tv) = (tvmax); \
/illumos-kvm-cmd/
H A Doslib-posix.c118 struct timeval tv[2], tv_now; in qemu_utimensat() local
149 tv[i].tv_sec = tv_now.tv_sec; in qemu_utimensat()
150 tv[i].tv_usec = tv_now.tv_usec; in qemu_utimensat()
152 tv[i].tv_sec = (i == 0) ? st.st_atime : st.st_mtime; in qemu_utimensat()
153 tv[i].tv_usec = 0; in qemu_utimensat()
155 tv[i].tv_sec = times[i].tv_sec; in qemu_utimensat()
156 tv[i].tv_usec = times[i].tv_nsec / 1000; in qemu_utimensat()
160 return utimes(path, &tv[0]); in qemu_utimensat()
H A Dcmd.c466 tdiv(double value, struct timeval tv) in tdiv() argument
468 return value / ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0)); in tdiv()
477 struct timeval *tv, in timestr() argument
482 double usec = (double)tv->tv_usec / 1000000.0; in timestr()
485 if (!HOURS(tv->tv_sec)) { in timestr()
487 (unsigned int) MINUTES(tv->tv_sec), in timestr()
488 (unsigned int) SECONDS(tv->tv_sec), in timestr()
495 if ((format & VERBOSE_FIXED_TIME) || tv->tv_sec) { in timestr()
497 (unsigned int) HOURS(tv->tv_sec), in timestr()
498 (unsigned int) MINUTES(tv->tv_sec), in timestr()
[all …]
H A Dqemu-timer.h65 struct timeval tv; in get_clock_realtime() local
67 gettimeofday(&tv, NULL); in get_clock_realtime()
68 return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000); in get_clock_realtime()
H A Dcmd.h67 double tdiv(double value, struct timeval tv);
75 void timestr(struct timeval *tv, char *str, size_t sz, int flags);
H A Dm68k-semi.c328 qemu_timeval tv; in do_m68k_semihosting() local
330 result = qemu_gettimeofday(&tv); in do_m68k_semihosting()
337 p->tv_sec = cpu_to_be32(tv.tv_sec); in do_m68k_semihosting()
338 p->tv_usec = cpu_to_be64(tv.tv_usec); in do_m68k_semihosting()
H A Dposix-aio-compat.c315 qemu_timeval tv; in aio_thread() local
318 qemu_gettimeofday(&tv); in aio_thread()
319 ts.tv_sec = tv.tv_sec + 10; in aio_thread()
H A Dqemu-img.c1073 qemu_timeval tv; in img_snapshot() local
1143 qemu_gettimeofday(&tv); in img_snapshot()
1144 sn.date_sec = tv.tv_sec; in img_snapshot()
1145 sn.date_nsec = tv.tv_usec * 1000; in img_snapshot()
H A Dsavevm.c1903 struct timeval tv; in do_savevm() local
1940 gettimeofday(&tv, NULL); in do_savevm()
1941 sn->date_sec = tv.tv_sec; in do_savevm()
1942 sn->date_nsec = tv.tv_usec * 1000; in do_savevm()
1960 localtime_r((const time_t *)&tv.tv_sec, &tm); in do_savevm()
H A Dvl.c1336 struct timeval tv; in main_loop_wait() local
1371 tv.tv_sec = timeout / 1000; in main_loop_wait()
1372 tv.tv_usec = (timeout % 1000) * 1000; in main_loop_wait()
1377 ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv); in main_loop_wait()
H A Dexec.c2838 timespec_t tv; in qemu_mlock() local
2841 tv.tv_sec = 0; in qemu_mlock()
2842 tv.tv_nsec = NANOSEC / MILLISEC; in qemu_mlock()
2875 (void) nanosleep(&tv, NULL); in qemu_mlock()
H A Dmonitor.c403 qemu_timeval tv; in timestamp_put() local
405 err = qemu_gettimeofday(&tv); in timestamp_put()
411 (int64_t) tv.tv_sec, (int64_t) tv.tv_usec); in timestamp_put()
/illumos-kvm-cmd/linux-user/
H A Dstrace.c598 struct target_timeval *tv; in print_timeval() local
600 tv = lock_user(VERIFY_READ, tv_addr, sizeof(*tv), 1); in print_timeval()
601 if (!tv) in print_timeval()
604 tv->tv_sec, tv->tv_usec, get_comma(last)); in print_timeval()
605 unlock_user(tv, tv_addr, 0); in print_timeval()
H A Dsyscall.c869 __get_user(tv->tv_sec, &target_tv->tv_sec); in copy_from_user_timeval()
870 __get_user(tv->tv_usec, &target_tv->tv_usec); in copy_from_user_timeval()
885 __put_user(tv->tv_sec, &target_tv->tv_sec); in copy_to_user_timeval()
942 struct timeval tv, *tv_ptr; in do_select() local
970 tv_ptr = &tv; in do_select()
4759 struct timeval *tvp, tv[2]; in do_syscall() local
4765 tvp = tv; in do_syscall()
4778 struct timeval *tvp, tv[2]; in do_syscall() local
4784 tvp = tv; in do_syscall()
5401 struct timeval tv; in do_syscall() local
[all …]
H A Delfload.c2113 struct timeval tv; in core_dump_filename() local
2118 if (gettimeofday(&tv, NULL) < 0) { in core_dump_filename()
2127 localtime_r(&tv.tv_sec, &tm)); in core_dump_filename()
/illumos-kvm-cmd/tests/
H A Dlinux-test.c227 struct timeval tv, tv2; in test_time() local
232 chk_error(gettimeofday(&tv, NULL)); in test_time()
240 ti = tv2.tv_sec - tv.tv_sec; in test_time()
/illumos-kvm-cmd/audio/
H A Daudio.c1544 struct timeval tv; in audio_run() local
1546 if (gettimeofday (&tv, NULL)) { in audio_run()
1551 currtime = tv.tv_sec + tv.tv_usec * 1e-6; in audio_run()

Completed in 125 milliseconds