| /openbmc/openbmc-test-automation/ipmi/ |
| H A D | test_ipmi_sel_time.robot | 3 Documentation Module to test IPMI SEL Time functionality. 10 ... Test the Set/Get SEL Time functionality and compare the result against 13 ... Set the Time Sync Mode from NTP to Manual to Set SEL Time. 14 ... Time Sync Mode change performed via REDFISH URI. 15 ... Performs the change in Time Sync Mode with Test Setup and Teardown Execution 18 ... NETWORK_RESTART_TIME added for Set SEL Time and Add SEL Entry as the corresponding 21 ... Current SEL time identified via BMC Native command (date) and perform SEL Time operations. 23 ... Script Verifies SEL Time fo [all...] |
| /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 | 8 * Date & Time support for Marvell Integrated RTC 23 u32 time; in __mv_rtc_get() local 26 /* read the time register */ in __mv_rtc_get() 27 time = readl(®s->time); in __mv_rtc_get() 33 if (time & MVRTC_HRFMT_MSK) { in __mv_rtc_get() 38 /* time */ 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() [all …]
|
| H A D | i2c_rtc_emul.c | 3 * Simulate an I2C real time clock 10 * This is a test driver. It starts off with the current time of the machine, 11 * but also supports setting the time, using an offset from the current 13 * time-keeping. It does not change the system time. 33 * @base_time: Base system time when RTC device was bound 34 * @offset: RTC offset from current system time 35 * @use_system_time: true to use system time, false to use @base_time 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 [all …]
|
| H A D | Kconfig | 5 menu "Real Time Clock" 11 Enable drver model for real-time-clock drivers. The RTC uclass 20 Enable drver model for real-time-clock drivers. The RTC uclass 29 Enable drver model for real-time-clock drivers. The RTC uclass 38 The PCF2127 is a CMOS Real Time Clock (RTC) and calendar with an integrated 49 compatible Real Time Clock devices. 55 The Renesas (formerly Intersil) ISL1208 is a I2C Real Time Clock (RTC) and 67 The MicroCrystal RV3029 is a I2C Real Time Clock (RTC) with 8-byte 77 Support for Epson RX8010SJ Real Time Clock devices. 82 The ARM PrimeCell Real Time Clock (PL031) is an optional SoC [all …]
|
| /openbmc/phosphor-time-manager/ |
| H A D | README.md | 3 `phosphor-time-manager` is the time manager service that implements D-Bus 4 interface `xyz/openbmc_project/Time/EpochTime.interface.yaml`. The user can get 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: 38 The service `xyz.openbmc_project.Time.Manager` provides an object on D-Bus: 40 - /xyz/openbmc_project/time/bmc 42 where each object implements interface `xyz.openbmc_project.Time.EpochTime`. [all …]
|
| H A D | types.hpp | 3 #include <xyz/openbmc_project/Time/Synchronization/server.hpp> 5 static constexpr auto objmgrpath = "/xyz/openbmc_project/time"; 6 static constexpr auto objpathBmc = "/xyz/openbmc_project/time/bmc"; 7 static constexpr auto busname = "xyz.openbmc_project.Time.Manager"; 11 namespace time namespace 13 /** @brief Alias to time sync mode class */ 15 sdbusplus::xyz::openbmc_project::Time::server::Synchronization; 17 /** @brief Supported time sync modes 18 * NTP Time sourced by Network Time Server 19 * Manual User of the system need to set the time [all …]
|
| H A D | bmc_epoch.hpp | 7 #include <xyz/openbmc_project/Time/EpochTime/server.hpp> 13 namespace time namespace 17 sdbusplus::xyz::openbmc_project::Time::server::EpochTime>; 22 * xyz.openbmc_project.Time.EpochTime DBus API for BMC's epoch time. 40 /** @brief Notified on time mode changed */ 62 /** @brief The manager to handle OpenBMC time */ 65 /** @brief Set current time to system 67 * This function set the time to system by invoking systemd 72 * @return true or false to indicate if it sets time successfully 76 /** @brief Get current time [all …]
|
| /openbmc/sdeventplus/src/sdeventplus/source/ |
| H A D | time.cpp | 4 #include <sdeventplus/source/time.hpp> 17 Time<Id>::Time(const Event& event, TimePoint time, Accuracy accuracy, in Time() function in sdeventplus::source::Time 19 Base(event, create_source(event, time, accuracy), std::false_type()) in Time() 26 Time<Id>::Time(const Time<Id>& other, sdeventplus::internal::NoOwn) : in Time() function in sdeventplus::source::Time 31 void Time<Id>::set_callback(Callback&& callback) in set_callback() 37 typename Time<Id>::TimePoint Time<Id>::get_time() const in get_time() 43 return Time<Id>::TimePoint(SdEventDuration(usec)); in get_time() 47 void Time<Id>::set_time(TimePoint time) const in set_time() 52 get(), SdEventDuration(time.time_since_epoch()).count())); in set_time() 56 typename Time<Id>::Accuracy Time<Id>::get_accuracy() const in get_accuracy() [all …]
|
| H A D | time.hpp | 23 /** @class Time<ClockId> 24 * @brief A wrapper around the sd_event_source time type 28 class Time : public Base class 33 /** @brief Type used to define the accuracy of the time source */ 36 using Callback = fu2::unique_function<void(Time& source, TimePoint time)>; 38 /** @brief Creates a new time event source on the provided event loop 43 * @param[in] time - Absolute time when the callback should be executed 44 * @param[in] accuracy - Optional amount of error tolerable in time source 48 Time(const Event& event, TimePoint time, Accuracy accuracy, 51 /** @brief Constructs a non-owning time source handler [all …]
|
| /openbmc/openbmc-test-automation/gui/gui_test/settings_menu/ |
| H A D | test_date_and_time_sub_menu.robot | 3 Documentation Test OpenBMC GUI "Date and time" sub-menu of "Settings". 9 Test Setup Navigate To Date and Time Page 15 ${xpath_date_time_heading} //h1[text()="Date and time"] 29 Verify Navigation To Date And Time Page 30 [Documentation] Verify navigation to date and time page. 36 Verify Text Under Date And Time Page 37 [Documentation] Verify the presence of the required text on the date and time page. 41 Page Should Contain To change how date and time are displayed 45 ... given NTP server is not reachable, then time.google.com will be used. 48 Verify Existence Of All Sections In Date And Time Page [all …]
|
| /openbmc/sdeventplus/test/source/ |
| H A D | time.cpp | 2 #include <time.h> 6 #include <sdeventplus/source/time.hpp> 63 const Time<id>::TimePoint expected_time(std::chrono::seconds{2}); in TEST_F() 64 const Time<id>::Accuracy expected_accuracy(std::chrono::milliseconds{50}); in TEST_F() 65 Time<id>::TimePoint saved_time; in TEST_F() 66 Time<id>::Callback callback = in TEST_F() 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() [all …]
|
| /openbmc/phosphor-webui/app/configuration/controllers/ |
| H A D | date-time-controller.js | 2 * Controller for date-time 19 $scope.time = {mode: '', owner: ''}; class in $scope 20 // Possible time owners 21 …// https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Time/Owner.… 24 var timePath = '/xyz/openbmc_project/time/'; 28 // The time is returned as Epoch microseconds convert to 38 // Central Standard Time (UTC-06:00) 39 // Moscow Standard Time (UTC+03:00) 53 $scope.time.owner = 59 $scope.time.mode = data.data[timePath + 'sync_method'] [all …]
|
| H A D | date-time-controller.html | 2 <div id="configuration-date-time"> 3 <h1>Date and time settings</h1> 5 <h2>Set date and time manually or configure a Network Time Protocol (NTP) Server</h2> 11 …<label class="control-radio" for="ntp-time">Obtain Automatically from a Network Time Protocol (NTP… 12 <input type="radio" id="ntp-time" ng-model="time.mode" value="NTP"> 20 …<input id="ntp-server{{$index+1}}" type="text" ng-readonly="time.mode != 'NTP'" ng-model="server" … 29 <label class="control-radio" for="manual-time">Manually set date and time 30 <input type="radio" id="manual-time" ng-model="time.mode" value="Manual"/> 36 … <p class="content-label">BMC <span ng-if="time.owner != 'Split'">and Host</span> Time</p> 38 …<input type="date" ng-model="bmc.date" ng-readonly="time.mode == 'NTP'" min="2018-01-01" max="2099… [all …]
|
| /openbmc/openbmc-test-automation/redfish/managers/ |
| H A D | test_managers_bmc_time.robot | 2 Documentation Test BMC manager time functionality. 21 Verify Redfish BMC Time 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. 36 Verify Set Time Using Redfish 37 [Documentation] Verify set time using redfish API. 40 Set Time To Manual Mode 44 ${new_bmc_time}= Add Time to Date ${old_bmc_time} 3 Days 52 ... The difference between Redfish time and CLI time exceeds the allowed time difference. [all …]
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | bcd_time.cpp | 6 #include <time.h> 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 [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/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-test-automation/ffdc/plugins/ |
| H A D | date_time_utils.py | 4 This module contains functions having to do with date time filter. 12 Convert a date time string to the desired format. 14 This function converts a date time string to the desired format. 15 The function takes the date_str argument, which can be a single date time 16 string or a list of date time strings. 19 specify the input date time pattern and the desired output format, 22 The function returns a list of date time strings in the desired format. 25 date_str (str or list): A date time string or a list of date time 27 date_format (str): The date time pattern of the input string(s). 28 desired_format (str): The desired output format for the date time [all …]
|
| /openbmc/u-boot/include/ |
| H A D | rtc.h | 23 * get() - get the current time 25 * Returns the current time read from the RTC device. The driver 29 * @time: Place to put the time that is read 31 int (*get)(struct udevice *dev, struct rtc_time *time); 34 * set() - set the current time 36 * Sets the time in the RTC device. The driver can expect every 40 * @time: Time to write 42 int (*set)(struct udevice *dev, const struct rtc_time *time); 47 * This function resets the RTC to a known-good state. The time may 80 * dm_rtc_get() - Read the time from an RTC [all …]
|
| /openbmc/sdbusplus/include/sdbusplus/async/ |
| H A D | timer.hpp | 16 * @param[in] time The length of time to delay. 18 * @return A sender which completes after time. 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() [all …]
|
| /openbmc/sdeventplus/example/ |
| H A D | heartbeat.cpp | 4 #include <sdeventplus/source/time.hpp> 18 using Time = sdeventplus::source::Time<clockId>; typedef 38 auto hbFunc = [interval](Time& source, Time::TimePoint time) { in main() argument 41 // Time sources are oneshot and are based on an absolute time in main() 42 // we need to reconfigure the time source to go off again after the in main() 44 source.set_time(time + std::chrono::seconds{interval}); in main() 47 Time time(event, Clock(event).now(), std::chrono::seconds{1}, in main() local
|
| /openbmc/openbmc-test-automation/gui/test/server_config/ |
| H A D | test_obmc_gui_date_and_time_settings.robot | 3 Documentation Test OpenBMC GUI "Date and time settings" sub-menu of 16 ${xpath_set_time_from_ntp} //*[@for="ntp-time"] 18 ${xpath_set_time_manually} //*[@for="manual-time"] 20 ${xpath_set_time} //input[@type="time"] 21 ${xpath_set_time_owner} //select[@id="date-time-owner"] 26 Verify Existence Of All Sections In Date And Time Settings Page 27 [Documentation] Verify existence of all sections in date and time settings 31 Page Should Contain Set date and time manually or configure a Network Time 35 Verify Existence Of All Buttons In Date And Time Settings Page 36 [Documentation] Verify existence of all buttons in date and time settings [all …]
|
| /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/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/User/ |
| H A D | TOTPAuthenticator.interface.yaml | 2 This interface defines methods and properties required for Time-based 3 One-time Password (TOTP) multi-factor authentication at user level to 11 This method setup Time-based One-time Password (TOTP) authenticator 26 This method verifies OTP with Time-based One-time Password 34 One-time password string 46 This method clears Time-based One-time Password authenticator secret 59 required for the given user to complete Time-based One-time Password
|