| /openbmc/u-boot/drivers/rtc/ |
| H A D | sandbox_rtc.c | 15 static int sandbox_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_rtc_get() argument 17 time->tm_sec = dm_i2c_reg_read(dev, REG_SEC); in sandbox_rtc_get() 18 if (time->tm_sec < 0) in sandbox_rtc_get() 19 return time->tm_sec; in sandbox_rtc_get() 20 time->tm_min = dm_i2c_reg_read(dev, REG_MIN); in sandbox_rtc_get() 21 if (time->tm_min < 0) in sandbox_rtc_get() 22 return time->tm_min; in sandbox_rtc_get() 23 time->tm_hour = dm_i2c_reg_read(dev, REG_HOUR); in sandbox_rtc_get() 24 if (time->tm_hour < 0) in sandbox_rtc_get() 25 return time->tm_hour; in sandbox_rtc_get() [all …]
|
| H A D | mvrtc.c | 23 u32 time; in __mv_rtc_get() local 27 time = readl(®s->time); in __mv_rtc_get() 33 if (time & MVRTC_HRFMT_MSK) { in __mv_rtc_get() 39 t->tm_sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in __mv_rtc_get() 40 t->tm_min = bcd2bin((time >> MVRTC_MIN_SFT) & MVRTC_MIN_MSK); in __mv_rtc_get() 41 t->tm_hour = bcd2bin((time >> MVRTC_HOUR_SFT) & MVRTC_HOUR_MSK); in __mv_rtc_get() 42 t->tm_wday = bcd2bin((time >> MVRTC_DAY_SFT) & MVRTC_DAY_MSK); in __mv_rtc_get() 70 u32 time = 0; /* sets hour format bit to zero, 24hr format. */ in __mv_rtc_set() local 78 time |= (bin2bcd(t->tm_sec) & MVRTC_SEC_MSK) << MVRTC_SEC_SFT; in __mv_rtc_set() 79 time |= (bin2bcd(t->tm_min) & MVRTC_MIN_MSK) << MVRTC_MIN_SFT; in __mv_rtc_set() [all …]
|
| H A D | i2c_rtc_emul.c | 86 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get() argument 99 rtc_to_tm(now + plat->offset, time); in sandbox_i2c_rtc_get() 104 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set() argument 116 plat->offset = rtc_mktime(time) - now; in sandbox_i2c_rtc_set() 125 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 128 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read() 132 plat->reg[REG_SEC] = time.tm_sec; in sandbox_i2c_rtc_prepare_read() 133 plat->reg[REG_MIN] = time.tm_min; in sandbox_i2c_rtc_prepare_read() 134 plat->reg[REG_HOUR] = time.tm_hour; in sandbox_i2c_rtc_prepare_read() 135 plat->reg[REG_MDAY] = time.tm_mday; in sandbox_i2c_rtc_prepare_read() [all …]
|
| H A D | mc13xxx-rtc.c | 14 u32 day1, day2, time; in rtc_get() local 26 ret = pmic_reg_read(p, REG_RTC_TIME, &time); in rtc_get() 36 tim = day1 * 86400 + time; in rtc_get() 48 u32 time, day; in rtc_set() local 53 time = rtc_mktime(rtc); in rtc_set() 54 day = time / 86400; in rtc_set() 55 time %= 86400; in rtc_set() 58 pmic_reg_write(p, REG_RTC_TIME, time); in rtc_set()
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | bcd_time.cpp | 28 BCDTime getBCDTime(std::chrono::time_point<std::chrono::system_clock>& time) in getBCDTime() argument 33 time_t t = system_clock::to_time_t(time); in getBCDTime() 46 auto ms = duration_cast<milliseconds>(time.time_since_epoch()).count(); in getBCDTime() 56 std::chrono::time_point<std::chrono::system_clock> time{ms}; in getBCDTime() local 58 return getBCDTime(time); in getBCDTime() 84 Stream& operator>>(Stream& s, BCDTime& time) in operator >>() argument 86 s >> time.yearMSB >> time.yearLSB >> time.month >> time.day >> time.hour; in operator >>() 87 s >> time.minutes >> time.seconds >> time.hundredths; in operator >>() 91 Stream& operator<<(Stream& s, const BCDTime& time) in operator <<() argument 93 s << time.yearMSB << time.yearLSB << time.month << time.day << time.hour; in operator <<() [all …]
|
| /openbmc/u-boot/test/dm/ |
| H A D | rtc.c | 29 static void show_time(const char *msg, struct rtc_time *time) in show_time() argument 32 time->tm_mday, time->tm_mon, time->tm_year, in show_time() 33 time->tm_hour, time->tm_min, time->tm_sec); in show_time() 36 static int cmp_times(struct rtc_time *expect, struct rtc_time *time, bool show) in cmp_times() argument 40 same = expect->tm_sec == time->tm_sec; in cmp_times() 41 same &= expect->tm_min == time->tm_min; in cmp_times() 42 same &= expect->tm_hour == time->tm_hour; in cmp_times() 43 same &= expect->tm_mday == time->tm_mday; in cmp_times() 44 same &= expect->tm_mon == time->tm_mon; in cmp_times() 45 same &= expect->tm_year == time->tm_year; in cmp_times() [all …]
|
| /openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | samples.py | 18 def __init__(self, time): argument 19 self.time = time 25 def __init__(self, time, user, sys, io = 0.0, swap = 0.0): argument 26 self.time = time 37 return str(self.time) + "\t" + str(self.user) + "\t" + \ 42 def __init__(self, time, iface, received_bytes, transmitted_bytes, receive_diff, transmit_diff): argument 43 self.time = time 51 def __init__(self, time, avg10, avg60, avg300, deltaTotal): argument 52 self.time = time 59 def __init__(self, time, avg10, avg60, avg300, deltaTotal): argument [all …]
|
| /openbmc/sdbusplus/include/sdbusplus/async/ |
| H A D | timer.hpp | 21 auto sleep_for(context& ctx, std::chrono::duration<Rep, Period> time); 37 sleep_operation(context& ctx, event_t::time_resolution time, R&& r) : in sleep_operation() 38 context_ref(ctx), time(time), receiver(std::move(r)) in sleep_operation() 53 source = event_loop().add_oneshot_timer(handler, this, time); in start() 67 event_t::time_resolution time; member 82 sleep_sender(context& ctx, event_t::time_resolution time) noexcept : in sleep_sender() 83 context_ref(ctx), time(time) in sleep_sender() 96 return {ctx, time, std::move(r)}; in connect() 99 static auto sleep_for(context& ctx, event_t::time_resolution time) in sleep_for() 104 return execution::continues_on(sleep_sender(ctx, time), in sleep_for() [all …]
|
| /openbmc/pldm/libpldmresponder/test/ |
| H A D | libpldmresponder_bios_test.cpp | 21 struct tm time{}; in TEST() struct 22 time.tm_year = 119; in TEST() 23 time.tm_mon = 3; in TEST() 24 time.tm_mday = 13; in TEST() 25 time.tm_hour = 5; in TEST() 26 time.tm_min = 18; in TEST() 27 time.tm_sec = 13; in TEST() 28 time.tm_isdst = -1; in TEST() 30 time_t epochTime = mktime(&time); in TEST()
|
| /openbmc/phosphor-time-manager/ |
| H A D | README.md | 3 `phosphor-time-manager` is the time manager service that implements D-Bus 5 or set the BMC's time via this interface. 9 phosphor-time-manager is configured by setting `-D` flags that correspond to 10 options in `phosphor-time-manager/meson.options`. The option names become C++ 13 - Compile phosphor-time-manager with default options: 20 - Compile phosphor-time-manager with some configurable options: 40 - /xyz/openbmc_project/time/bmc 45 set the time. For example on an authenticated session: 47 - To get BMC's time: 52 /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed [all …]
|
| /openbmc/openbmc-test-automation/ffdc/lib/ |
| H A D | ssh_utility.py | 5 import time 129 cmd_start = time.time() 134 start = time.time() 135 while time.time() < start + default_timeout: 140 time.sleep(1) 170 time.strftime( 171 "%H:%M:%S", time.gmtime(time.time() - cmd_start) 237 time.sleep(2)
|
| /openbmc/openbmc/poky/meta/lib/oeqa/core/target/ |
| H A D | ssh.py | 8 import time 64 starttime = time.time() 67 "" % (status, time.time() - starttime)) 218 starttime = time.time() 219 progress = time.time() 231 time.sleep(0.2) 239 endtime = time.time() + timeout 247 if time.time() >= endtime: 248 … logger.debug('SSHCall has timeout! Time: %s, endtime: %s' % (time.time(), endtime)) 251 if time.time() >= (progress + 60): [all …]
|
| /openbmc/phosphor-webui/app/configuration/controllers/ |
| H A D | date-time-controller.js | 19 $scope.time = {mode: '', owner: ''}; class in $scope 53 $scope.time.owner = 59 $scope.time.mode = data.data[timePath + 'sync_method'] 94 if ($scope.time.mode == 'Manual' || $scope.time.owner == 'Split') { 120 if ($scope.time.mode == 'Manual') { 123 if ($scope.time.owner != 'Host') { 129 if ($scope.time.owner == 'Host') { 135 if ($scope.time.owner == 'Split') { 177 $scope.time.mode); 182 'xyz.openbmc_project.Time.Owner.Owners.' + $scope.time.owner); [all …]
|
| /openbmc/openbmc/poky/meta/recipes-extended/time/ |
| H A D | time_1.9.bb | 2 DESCRIPTION = "time measures many of the CPU resources, such as time and \ 4 HOMEPAGE = "http://www.gnu.org/software/time/" 11 ALTERNATIVE:${PN} = "time" 16 SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \ 18 file://time-1.9-Fix-compiling-with-GCC15.patch \ 26 # Submitted fix: https://lists.gnu.org/archive/html/bug-time/2021-01/msg00000.html
|
| /openbmc/u-boot/doc/ |
| H A D | README.SNTP | 4 The "sntp" command gets network time from NTP time server and 7 "ntpserverip". The network time is sent as UTC. So if you want to 8 set local time to RTC, set the offset in second from UTC to the 9 environment variable "time offset". 11 If the DHCP server provides time server's IP or time offset, you 15 1. The roundtrip time is ignored.
|
| /openbmc/openbmc-test-automation/lib/ |
| H A D | os_utils_keywords.py | 14 import time 32 timeout = time.time() + int(retry_seconds) 49 elif time.time() > timeout > 0: 52 time.sleep(interval) 53 BuiltIn().log(time.time())
|
| /openbmc/sdeventplus/test/source/ |
| H A D | time.cpp | 67 [&saved_time](Time<id>&, Time<id>::TimePoint time) { in TEST_F() argument 68 saved_time = time; in TEST_F() 92 Time<id> time(*event, expected_time, expected_accuracy, in TEST_F() local 95 EXPECT_NE(&time, userdata); in TEST_F() 96 EXPECT_EQ(expected_event, time.get_event().get()); in TEST_F() 97 EXPECT_EQ(expected_source, time.get()); in TEST_F() 103 time.set_callback(std::bind([]() {})); in TEST_F() 133 std::unique_ptr<Time<id>> time; member in sdeventplus::source::__anon62b35d4d0111::TimeMethodTest 156 time = std::make_unique<Time<id>>( in SetUp() 165 time.reset(); in TearDown() [all …]
|
| /openbmc/openbmc-test-automation/redfish/managers/ |
| H A D | test_managers_bmc_time.robot | 2 Documentation Test BMC manager time functionality. 22 [Documentation] Verify that date/time obtained via redfish matches 23 ... date/time obtained via BMC command line. 33 ... The difference between Redfish time and CLI time exceeds the allowed time difference. 37 [Documentation] Verify set time using redfish API. 52 ... The difference between Redfish time and CLI time exceeds the allowed time difference. 53 # Setting back to old bmc time. 76 # Synchronize BMC date/time to local system date/time. 88 ... The difference between Redfish time and CLI time exceeds the allowed time difference. 92 [Documentation] Verify immediate change in BMC date time.
|
| /openbmc/openbmc/poky/meta/recipes-extended/xinetd/xinetd/ |
| H A D | 0001-Use-monotonic-time.patch | 4 Subject: [PATCH] Use monotonic time 7 in system time. When time is set back, the connection limit is reached 8 very quickly and rsync gets deactivated, if time is changed again, rsync 11 The current timer of xinet.d is based on the time() and is affected by 12 the system time. Use clock_gettime() with CLOCK_MONOTONIC as the new 14 jumps in the system time. 28 src/time.c | 3 ++- 42 - nowtime = time(NULL); 51 - nowtime = time(NULL); 60 - nowtime = time(NULL); [all …]
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | nbd-reconnect-on-open | 21 import time 42 start_t = time.time() 44 delta_t = time.time() - start_t 60 time.sleep(1)
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/nmap/files/ |
| H A D | 0001-Include-time.h-header-to-pass-clang-compilation.patch | 4 Subject: [PATCH] Include time.h header to pass clang compilation 24 -# include <sys/time.h> 25 -# include <time.h> 28 -# include <sys/time.h> 30 -# include <time.h> 33 +#include <time.h> 45 +#include <time.h> 57 +#include <time.h> 69 +#include <time.h>
|
| /openbmc/u-boot/include/ |
| H A D | rtc.h | 31 int (*get)(struct udevice *dev, struct rtc_time *time); 42 int (*set)(struct udevice *dev, const struct rtc_time *time); 86 int dm_rtc_get(struct udevice *dev, struct rtc_time *time); 95 int dm_rtc_set(struct udevice *dev, struct rtc_time *time); 233 int rtc_calc_weekday(struct rtc_time *time); 246 void rtc_to_tm(u64 time_t, struct rtc_time *time); 259 unsigned long rtc_mktime(const struct rtc_time *time);
|
| /openbmc/u-boot/test/py/tests/ |
| H A D | test_sleep.py | 5 import time 28 tstart = time.time() 30 tend = time.time()
|
| /openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | runcmd.py | 13 import time 80 start = time.time() 84 end = time.time() 90 start = time.time() 94 end = time.time() 107 start = time.time() 110 end = time.time()
|
| /openbmc/openbmc/poky/bitbake/lib/bs4/ |
| H A D | diagnose.py | 17 import time 193 a = time.time() 195 b = time.time() 204 a = time.time() 206 b = time.time() 211 a = time.time() 213 b = time.time()
|