Home
last modified time | relevance | path

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

1234567891011

/openbmc/libpldm/src/transport/
H A Dtransport.c104 static void timespec_to_timeval(const struct timespec *ts, struct timeval *tv) in timespec_to_timeval() argument
106 tv->tv_sec = ts->tv_sec; in timespec_to_timeval()
107 tv->tv_usec = ts->tv_nsec / 1000; in timespec_to_timeval()
111 static long timeval_to_msec(const struct timeval *tv) in timeval_to_msec() argument
113 return tv->tv_sec * 1000 + tv->tv_usec / 1000; in timeval_to_msec()
119 static bool timeval_validate_for_msec(const struct timeval *tv) in timeval_validate_for_msec() argument
122 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) { in timeval_validate_for_msec()
127 if (tv->tv_sec > ((LONG_MAX - 1000) / 1000)) { in timeval_validate_for_msec()
134 static int clock_gettimeval(clockid_t clockid, struct timeval *tv) in clock_gettimeval() argument
144 timespec_to_timeval(&now, tv); in clock_gettimeval()
/openbmc/openbmc/poky/meta/recipes-extended/iputils/iputils/
H A DCVE-2025-47268.patch9 triptime = tv->tv_sec * 1000000 + tv->tv_usec;
46 as it now prints tv->tv_sec which is a second (needs translation update).
108 tvsub(tv, &tmp_tv);
109 - triptime = tv->tv_sec * 1000000 + tv->tv_usec;
113 + if (tv->tv_usec >= 1000000) {
114 + error(0, 0, _("Warning: invalid tv_usec %ld us"), tv->tv_usec);
115 + tv->tv_usec = 999999;
118 + if (tv->tv_usec < 0) {
119 + error(0, 0, _("Warning: invalid tv_usec %ld us"), tv->tv_usec);
120 + tv->tv_usec = 0;
[all …]
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dutils.cpp66 struct timeval tv; in setupUnixSocket() local
67 tv.tv_sec = 1; in setupUnixSocket()
68 tv.tv_usec = 0; in setupUnixSocket()
75 int retval = select(nfd, &rfd, nullptr, nullptr, &tv); in setupUnixSocket()
109 struct timeval tv; in writeToUnixSocket() local
110 tv.tv_sec = 1; in writeToUnixSocket()
111 tv.tv_usec = 0; in writeToUnixSocket()
117 int retval = select(nfd, nullptr, &wfd, nullptr, &tv); in writeToUnixSocket()
/openbmc/u-boot/tools/gdb/
H A Dserial.c86 struct timeval tv; in serialreadchar() local
90 tv.tv_sec = timeout; in serialreadchar()
91 tv.tv_usec = 0; in serialreadchar()
98 if ((n = select(fd + 1, &fds, 0, 0, &tv)) < 0) in serialreadchar()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/rocksdb/files/
H A D0005-Implement-timer-implementation-for-mips-platform.patch24 + struct timeval tv;
25 + gettimeofday(&tv, nullptr);
26 + return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
H A D0006-Implement-timer-for-arm-v6.patch18 struct timeval tv;
19 gettimeofday(&tv, nullptr);
20 return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dnet_handler.cpp103 struct timeval tv = {}; in copyFrom() local
104 tv.tv_sec = timeoutS; in copyFrom()
105 if (setsockopt(*connFd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in copyFrom()
/openbmc/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()
/openbmc/openbmc/poky/meta/recipes-devtools/dpkg/dpkg/
H A D0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch21 - if (lutimes(path, tv) && errno != ENOSYS)
22 +/* if (lutimes(path, tv) && errno != ENOSYS)
27 if (utimes(path, tv))
/openbmc/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()
/openbmc/qemu/tests/migration-stress/
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()
/openbmc/slpd-lite/
H A Dmain.cpp14 timeval tv{slp::TIMEOUT, 0}; in requestHandler() local
15 udpsocket::Channel channel(fd, tv); in requestHandler()
/openbmc/qemu/hw/timer/
H A Daspeed_timer.c437 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_timer_write_common() local
443 aspeed_timer_set_ctrl(s, tv); in aspeed_timer_write_common()
447 aspeed_timer_set_value(s, (offset >> TIMER_NR_REGS), reg, tv); in aspeed_timer_write_common()
450 aspeed_timer_set_value(s, (offset >> TIMER_NR_REGS) - 1, reg, tv); in aspeed_timer_write_common()
506 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2400_timer_write() local
510 aspeed_timer_set_ctrl2(s, tv); in aspeed_2400_timer_write()
550 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2500_timer_write() local
555 aspeed_timer_set_ctrl2(s, tv); in aspeed_2500_timer_write()
567 aspeed_timer_set_ctrl(s, s->ctrl & ~tv); in aspeed_2500_timer_write()
602 const uint32_t tv = (uint32_t)(value & 0xFFFFFFFF); in aspeed_2600_timer_write() local
[all …]
/openbmc/u-boot/tools/
H A Dkwboot.c160 struct timeval tv; in kwboot_tty_recv() local
168 tv.tv_sec = 0; in kwboot_tty_recv()
169 tv.tv_usec = timeo * 1000; in kwboot_tty_recv()
170 if (tv.tv_usec > 1000000) { in kwboot_tty_recv()
171 tv.tv_sec += tv.tv_usec / 1000000; in kwboot_tty_recv()
172 tv.tv_usec %= 1000000; in kwboot_tty_recv()
176 nfds = select(fd + 1, &rfds, NULL, NULL, &tv); in kwboot_tty_recv()
/openbmc/u-boot/arch/sandbox/cpu/
H A Dos.c270 struct timeval tv; in os_get_nsec() local
272 gettimeofday(&tv, NULL); in os_get_nsec()
273 tp.tv_sec = tv.tv_sec; in os_get_nsec()
274 tp.tv_nsec = tv.tv_usec * 1000; in os_get_nsec()
278 struct timeval tv; in os_get_nsec()
279 gettimeofday(&tv, NULL); in os_get_nsec()
280 return tv.tv_sec * 1000000000ULL + tv.tv_usec * 1000; in os_get_nsec()
/openbmc/obmc-console/
H A Dconsole-server.c711 static int get_current_time(struct timeval *tv) in get_current_time() argument
726 tv->tv_sec = t.tv_sec; in get_current_time()
727 tv->tv_usec = t.tv_nsec / 1000; in get_current_time()
830 struct poller *poller, const struct timeval *tv) in console_poller_set_timeout() argument
840 timeradd(&now, tv, &poller->timeout); in console_poller_set_timeout()
961 struct timeval *tv) in run_console_per_console() argument
977 rc = call_pollers(console, tv); in run_console_per_console()
987 struct timeval tv; in run_console_iteration() local
992 rc = get_current_time(&tv); in run_console_iteration()
998 timeout = get_poll_timeout(server->active, &tv); in run_console_iteration()
[all …]
/openbmc/qemu/scripts/
H A Dget_maintainer.pl863 my $tv = $typevalue[$index];
864 if (($tv =~ m/^(.):\s*(.*)/)) {
877 my $tv = $typevalue[$index];
878 if (!($tv =~ m/^(.):\s*(.*)/)) {
891 my $tv = $typevalue[$index];
892 if (!($tv =~ m/^(.):\s*(.*)/)) {
927 my $tv = $typevalue[$i];
928 if ($tv =~ m/^(.):\s*(.*)/) {
977 my $tv = $typevalue[$i];
978 if ($tv =~ m/^(.):\s*(.*)/) {
[all …]
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-t/
H A Dfi-Nuorgam_Njallavaara2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Suomussalmi_Ammansaari2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Rovaniemi_Sorviselka2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Sodankyla_Vuotso2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Iisalmi2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Ylitornio_Raanujarvi2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Utsjoki_Nuvvus2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
H A Dfi-Karigasniemi2 # generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet

1234567891011