/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/linux/tools/perf/scripts/python/ |
D | stat-cpi.py |
|
/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 …]
|
/openbmc/linux/Documentation/sound/designs/ |
D | timestamping.rst |
|
/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 …]
|
/openbmc/sdeventplus/src/sdeventplus/source/ |
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 …]
|
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 …]
|
/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/linux/include/linux/platform_data/ |
D | gpmc-omap.h |
|
/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/linux/drivers/rtc/ |
D | rtc-mc146818-lib.c |
|
D | rtc-pcf50633.c |
|
D | rtc-wm8350.c |
|
/openbmc/linux/include/linux/iio/ |
D | iio-gts-helper.h |
|
/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/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/phosphor-logging/extensions/openpower-pels/ |
H A D | bcd_time.cpp | 18 #include <time.h> 40 BCDTime getBCDTime(std::chrono::time_point<std::chrono::system_clock>& time) in getBCDTime() argument 45 time_t t = system_clock::to_time_t(time); in getBCDTime() 58 auto ms = duration_cast<milliseconds>(time.time_since_epoch()).count(); in getBCDTime() 68 std::chrono::time_point<std::chrono::system_clock> time{ms}; in getBCDTime() local 70 return getBCDTime(time); in getBCDTime() 96 Stream& operator>>(Stream& s, BCDTime& time) in operator >>() argument 98 s >> time.yearMSB >> time.yearLSB >> time.month >> time.day >> time.hour; in operator >>() 99 s >> time.minutes >> time.seconds >> time.hundredths; in operator >>() 103 Stream& operator<<(Stream& s, const BCDTime& time) in operator <<() argument [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() 54 self.event_loop().add_oneshot_timer(handler, &self, self.time); in tag_invoke() 69 event_t::time_resolution time; member 84 sleep_sender(context& ctx, event_t::time_resolution time) noexcept : in sleep_sender() 85 context_ref(ctx), time(time) in sleep_sender() 99 return {self.ctx, self.time, std::move(r)}; in tag_invoke() [all …]
|