Home
last modified time | relevance | path

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

/qemu/tests/qtest/
H A Dipmi-bt-test.c129 struct timeval tv; in read_emu_data() local
133 tv.tv_sec = 10; in read_emu_data()
134 tv.tv_usec = 0; in read_emu_data()
135 rv = select(emu_fd + 1, &readfds, NULL, NULL, &tv); in read_emu_data()
311 struct timeval tv; in test_connect() local
319 tv.tv_sec = 10; in test_connect()
320 tv.tv_usec = 0; in test_connect()
321 rv = select(emu_lfd + 1, &readfds, NULL, NULL, &tv); in test_connect()
H A Dnpcm7xx_emc-test.c427 struct timeval tv; in wait_socket_readable() local
432 tv.tv_sec = TIMEOUT_SECONDS; in wait_socket_readable()
433 tv.tv_usec = 0; in wait_socket_readable()
434 rv = select(fd + 1, &read_fds, NULL, NULL, &tv); in wait_socket_readable()
/qemu/hw/timer/
H A Daspeed_timer.c434 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_timer_write() local
441 aspeed_timer_set_ctrl(s, tv); in aspeed_timer_write()
445 aspeed_timer_set_value(s, (offset >> TIMER_NR_REGS), reg, tv); in aspeed_timer_write()
487 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2400_timer_write() local
491 aspeed_timer_set_ctrl2(s, tv); in aspeed_2400_timer_write()
526 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2500_timer_write() local
531 aspeed_timer_set_ctrl2(s, tv); in aspeed_2500_timer_write()
543 aspeed_timer_set_ctrl(s, s->ctrl & ~tv); in aspeed_2500_timer_write()
576 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2600_timer_write() local
580 s->irq_sts &= tv; in aspeed_2600_timer_write()
[all …]
/qemu/hw/usb/
H A Dpcap.c106 struct timeval tv; in do_usb_pcap_header() local
108 gettimeofday(&tv, NULL); in do_usb_pcap_header()
109 packet->ts_sec = tv.tv_sec; in do_usb_pcap_header()
110 packet->ts_usec = tv.tv_usec; in do_usb_pcap_header()
H A Dhost-libusb.c240 struct timeval tv = { 0, 0 }; in usb_host_handle_fd() local
241 libusb_handle_events_timeout(ctx, &tv); in usb_host_handle_fd()
274 struct timeval tv = { 0, 0 }; in usb_host_timer() local
276 libusb_handle_events_timeout(ctx, &tv); in usb_host_timer()
1082 struct timeval tv; in usb_host_abort_xfers() local
1083 memset(&tv, 0, sizeof(tv)); in usb_host_abort_xfers()
1084 tv.tv_usec = 2500; in usb_host_abort_xfers()
1085 libusb_handle_events_timeout(ctx, &tv); in usb_host_abort_xfers()
H A Dxen-usb.c46 struct timeval tv; \
48 gettimeofday(&tv, NULL); \
50 tv.tv_sec, tv.tv_usec, __func__, ##args); \
/qemu/tests/migration/
H A Dstress.c152 struct timeval tv; in now() local
154 gettimeofday(&tv, NULL); in now()
156 return (tv.tv_sec * 1000ull) + (tv.tv_usec / 1000ull); in now()
/qemu/scripts/
H A Dget_maintainer.pl863 my $tv = $typevalue[$index];
864 if (($tv =~ m/^(.):\s*(.*)/)) {
877 my $tv = $typevalue[$index];
891 my $tv = $typevalue[$index];
927 my $tv = $typevalue[$i];
928 if ($tv =~ m/^(.):\s*(.*)/) {
977 my $tv = $typevalue[$i];
978 if ($tv =~ m/^(.):\s*(.*)/) {
1019 my $tv = $typevalue[$i - 1];
1020 if ($tv =~ m/^(.):\s*(.*)/) {
[all …]
/qemu/include/qemu/
H A Dtimer.h807 struct timeval tv; in get_clock_realtime() local
809 gettimeofday(&tv, NULL); in get_clock_realtime()
810 return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000); in get_clock_realtime()
/qemu/util/
H A Derror-report.c183 GTimeVal tv; in real_time_iso8601()
184 g_get_current_time(&tv); in real_time_iso8601()
185 return g_time_val_to_iso8601(&tv); in real_time_iso8601()
/qemu/target/xtensa/
H A Dxtensa-semi.c328 struct timeval tv = {0}; in HELPER() local
333 tv.tv_sec = (int32_t)tswap32(target_tvv[0]); in HELPER()
334 tv.tv_usec = (int32_t)tswap32(target_tvv[1]); in HELPER()
354 target_tv ? &tv : NULL); in HELPER()
/qemu/hw/hyperv/
H A Dsyndbg.c291 struct timeval tv; in hv_syndbg_recv_event() local
294 tv.tv_sec = 0; in hv_syndbg_recv_event()
295 tv.tv_usec = 0; in hv_syndbg_recv_event()
298 if (select(syndbg->socket + 1, &rfds, NULL, NULL, &tv) > 0) { in hv_syndbg_recv_event()
/qemu/
H A Dqemu-io-cmds.c273 static double tdiv(double value, struct timespec tv) in tdiv() argument
275 double seconds = tv.tv_sec + (tv.tv_nsec / 1e9); in tdiv()
289 static void timestr(struct timespec *tv, char *ts, size_t size, int format) in timestr() argument
291 double frac_sec = tv->tv_nsec / 1e9; in timestr()
294 if (!HOURS(tv->tv_sec)) { in timestr()
296 (unsigned int) MINUTES(tv->tv_sec), in timestr()
297 SECONDS(tv->tv_sec) + frac_sec); in timestr()
303 if ((format & VERBOSE_FIXED_TIME) || tv->tv_sec) { in timestr()
305 (unsigned int) HOURS(tv->tv_sec), in timestr()
306 (unsigned int) MINUTES(tv->tv_sec), in timestr()
[all …]
/qemu/tests/
H A Dvhost-user-bridge.c137 struct timeval tv; in dispatcher_wait() local
138 tv.tv_sec = timeout / 1000000; in dispatcher_wait()
139 tv.tv_usec = timeout % 1000000; in dispatcher_wait()
144 int rc = select(dispr->max_sock + 1, &fdset, 0, 0, &tv); in dispatcher_wait()
/qemu/tests/tcg/multiarch/linux/
H A Dlinux-test.c226 struct timeval tv, tv2; in test_time() local
231 chk_error(gettimeofday(&tv, NULL)); in test_time()
239 ti = tv2.tv_sec - tv.tv_sec; in test_time()
/qemu/linux-user/
H A Dsyscall.c1299 struct timeval tv; in do_select() local
1319 ts.tv_sec = tv.tv_sec; in do_select()
1338 tv.tv_sec = ts.tv_sec; in do_select()
2319 &tv, sizeof(tv))); in do_setsockopt()
2536 struct timeval tv; in do_getsockopt() local
2549 tvlen = sizeof(tv); in do_getsockopt()
5335 struct timeval tv; in do_ioctl_SIOCGSTAMP() local
9582 tvp = tv; in _syscall2()
9602 tvp = tv; in _syscall2()
10325 struct timeval tv; in _syscall2() local
[all …]
H A Dstrace.c1714 struct target_timeval *tv; in print_timeval() local
1716 tv = lock_user(VERIFY_READ, tv_addr, sizeof(*tv), 1); in print_timeval()
1717 if (!tv) { in print_timeval()
1723 tswapal(tv->tv_sec), tswapal(tv->tv_usec), get_comma(last)); in print_timeval()
1724 unlock_user(tv, tv_addr, 0); in print_timeval()
/qemu/target/hexagon/
H A Dop_helper.c365 int tv = sextract64(RttV, i * 16, 16); in HELPER() local
367 xv = xv + tv; in HELPER()
368 sv = sv - tv; in HELPER()
383 int tv = sextract64(RttV, i * 16, 16); in HELPER() local
384 xv = xv + tv; in HELPER()
385 sv = sv - tv; in HELPER()
/qemu/ui/
H A Dvnc.c3007 static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) in vnc_update_stats() argument
3025 qemu_timersub(tv, &VNC_REFRESH_STATS, &res); in vnc_update_stats()
3030 vd->guest.last_freq_check = *tv; in vnc_update_stats()
3043 qemu_timersub(tv, &max, &res); in vnc_update_stats()
3087 static void vnc_rect_updated(VncDisplay *vd, int x, int y, struct timeval * tv) in vnc_rect_updated() argument
3095 rect->times[rect->idx] = *tv; in vnc_rect_updated()
3115 struct timeval tv = { 0, 0 }; in vnc_refresh_server_surface() local
3118 gettimeofday(&tv, NULL); in vnc_refresh_server_surface()
3119 has_dirty = vnc_update_stats(vd, &tv); in vnc_refresh_server_surface()
3182 y, &tv); in vnc_refresh_server_surface()
/qemu/tcg/
H A Doptimize.c1874 uint64_t tv = arg_info(op->args[3])->val; in fold_movcond() local
1885 tv = (int32_t)tv; in fold_movcond()
1898 if (tv == 1 && fv == 0) { in fold_movcond()
1901 } else if (fv == 1 && tv == 0) { in fold_movcond()
1905 if (tv == -1 && fv == 0) { in fold_movcond()
1908 } else if (fv == -1 && tv == 0) { in fold_movcond()
/qemu/qga/
H A Dcommands-posix.c283 struct timeval tv; in qmp_guest_set_time() local
296 tv.tv_sec = time_ns / 1000000000; in qmp_guest_set_time()
297 tv.tv_usec = (time_ns % 1000000000) / 1000; in qmp_guest_set_time()
298 g_date_set_time_t(&date, tv.tv_sec); in qmp_guest_set_time()
304 ret = settimeofday(&tv, NULL); in qmp_guest_set_time()
/qemu/audio/
H A Daudio.c1396 struct timeval tv; in audio_run() local
1398 if (gettimeofday (&tv, NULL)) { in audio_run()
1403 currtime = tv.tv_sec + tv.tv_usec * 1e-6; in audio_run()
/qemu/target/hexagon/imported/
H A Dalu.idef1264 fHIDE(int tv;)
1268 tv = (int) fGETHALF(i,RttV);
1269 xv = xv + tv; //assumes 17bit datapath
1270 sv = sv - tv; //assumes 17bit datapath
/qemu/accel/tcg/
H A Dcputlb.c1272 CPUTLBEntry *tv = &desc->vtable[vidx]; in tlb_set_page_full() local
1275 copy_tlb_helper_locked(tv, te); in tlb_set_page_full()