Home
last modified time | relevance | path

Searched full:time (Results 1 – 25 of 7163) sorted by relevance

12345678910>>...287

/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_sel_time.robot3 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 ope…
23 ... Script Verifies SEL Time for various scenarios such as,
24 ... Get current time from BMC and add future year and compare against BMC native comma…
25 ... Gets BMC Current Time and Adds 15 minutes and compare against BMC native command (…
[all …]
/openbmc/linux/Documentation/sound/designs/
H A Dtimestamping.rst7 - Trigger_tstamp is the system time snapshot taken when the .trigger
19 The difference (tstamp - trigger_tstamp) defines the elapsed time.
26 The use of these different pointers and time information depends on
30 - ``delay`` reports the time it will take to hear a new sample after all
34 along with a snapshot of system time. Applications can select from
42 of time as measured by different components of audio hardware. In
47 --------------------------------------------------------------> time
51 time time time time time
58 The analog time is taken at the last stage of the playback, as close
61 The link time is taken at the output of the SoC/chipset as the samples
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
11 return "%d-%s-%d-%d" % (time, event, cpu, thread)
13 def store_key(time, cpu, thread): argument
14 if (time not in times):
15 times.append(time)
23 def store(time, event, cpu, thread, val, ena, run): argument
24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" %
25 # (event, cpu, thread, time, val, ena, run))
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
[all …]
/openbmc/openbmc-test-automation/gui/gui_test/settings_menu/
H A Dtest_date_and_time_sub_menu.robot3 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/u-boot/drivers/rtc/
H A Dsandbox_rtc.c15 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 Di2c_rtc_emul.c3 * 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 Dmvrtc.c8 * 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(&regs->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 …]
/openbmc/phosphor-time-manager/
H A DREADME.md3 `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:
36 The service `xyz.openbmc_project.Time.Manager` provides an object on D-Bus:
38 - /xyz/openbmc_project/time/bmc
40 where each object implements interface `xyz.openbmc_project.Time.EpochTime`.
[all …]
/openbmc/sdeventplus/src/sdeventplus/source/
H A Dtime.hpp23 /** @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 Dtime.cpp4 #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/linux/fs/ntfs/
H A Dtime.h3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project.
11 #include <linux/time.h> /* For current_kernel_time(). */
19 * utc2ntfs - convert Linux UTC time to NTFS time
20 * @ts: Linux UTC time to convert to NTFS time
22 * Convert the Linux UTC time @ts to its corresponding NTFS time and return
25 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec
30 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
38 * converted to 100ns intervals, and then add the NTFS time offset. in utc2ntfs()
45 * get_current_ntfs_time - get the current time in little endian NTFS format
47 * Get the current time from the Linux kernel, convert it to its corresponding
[all …]
/openbmc/linux/include/linux/platform_data/
H A Dgpmc-omap.h15 /* bool type time settings */
35 u32 cs_on; /* Assertion time */
36 u32 cs_rd_off; /* Read deassertion time */
37 u32 cs_wr_off; /* Write deassertion time */
40 u32 adv_on; /* Assertion time */
41 u32 adv_rd_off; /* Read deassertion time */
42 u32 adv_wr_off; /* Write deassertion time */
43 u32 adv_aad_mux_on; /* ADV assertion time for AAD */
44 u32 adv_aad_mux_rd_off; /* ADV read deassertion time for AAD */
45 u32 adv_aad_mux_wr_off; /* ADV write deassertion time for AAD */
[all …]
/openbmc/sdeventplus/test/source/
H A Dtime.cpp2 #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/linux/lib/
H A Dfind_bit_benchmark.c39 ktime_t time; in test_find_first_bit() local
41 time = ktime_get(); in test_find_first_bit()
46 time = ktime_get() - time; in test_find_first_bit()
47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit()
56 ktime_t time; in test_find_first_and_bit() local
60 time = ktime_get(); in test_find_first_and_bit()
65 time = ktime_get() - time; in test_find_first_and_bit()
66 pr_err("find_first_and_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_and_bit()
74 ktime_t time; in test_find_next_bit() local
76 time = ktime_get(); in test_find_next_bit()
[all …]
/openbmc/phosphor-webui/app/configuration/controllers/
H A Ddate-time-controller.js2 * 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 Ddate-time-controller.html2 <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/
H A Drtc-mc146818-lib.c34 * readout is unspecified. The maximum update time is ~2ms. Poll in mc146818_avoid_UIP()
81 pr_warn("Reading current time from RTC took around %li ms\n", in mc146818_avoid_UIP()
101 struct rtc_time *time; member
121 p->time->tm_sec = seconds; in mc146818_get_time_callback()
122 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback()
123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback()
124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback()
125 p->time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time_callback()
126 p->time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time_callback()
143 * mc146818_get_time - Get the current time from the RTC
[all …]
H A Drtc-wm8350.c3 * Real Time Clock driver for Wolfson Microelectronics WM8350
13 #include <linux/time.h>
29 * Read current time and date in RTC
38 * Read the time twice and compare. in wm8350_rtc_readtime()
39 * If time1 == time2, then time is valid else retry. in wm8350_rtc_readtime()
83 dev_err(dev, "timed out reading RTC time\n"); in wm8350_rtc_readtime()
88 * Set current time and date in RTC
93 u16 time[4]; in wm8350_rtc_settime() local
97 time[0] = tm->tm_sec; in wm8350_rtc_settime()
98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime()
[all …]
H A Drtc-pcf50633.c51 u_int8_t time[PCF50633_TI_EXTENT]; member
64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time()
65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time()
66 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time()
67 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time()
68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time()
69 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time()
70 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time()
75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time()
76 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time()
[all …]
/openbmc/linux/scripts/
H A Dshow_delta5 # time data, and format with time deltas.
19 have time data prefixed because the CONFIG_PRINTK_TIME option is set, or
20 the kernel command line option "time" is specified. When run with no
21 options, the time information is converted to show the time delta between
23 are relative to a single (base) point in time.
27 -b <base> Specify a base for time references.
31 line) is used as the time reference.
50 time = string.atof(time_str)
52 #print "time=", time
53 return (time, rest)
[all …]
/openbmc/linux/include/linux/iio/
H A Diio-gts-helper.h2 /* gain-time-scale conversion helpers for IIO light sensors
32 * struct iio_itime_sel_mul - integration time description
37 * integration time and amplification as well as corresponding selector
42 * 200 mS => 4 and 400 mS => 8 assuming the impact of integration time would be
44 * the data collection time caused value 2X etc.
46 * @time_us: Integration time in microseconds. Time values must be positive,
48 * @sel: Selector (usually register value) used to indicate this time
50 * @mul: Multiplication to the values caused by this time.
86 iio_gts_find_itime_by_time(struct iio_gts *gts, int time) in iio_gts_find_itime_by_time() argument
94 if (gts->itime_table[i].time_us == time) in iio_gts_find_itime_by_time()
[all …]
/openbmc/linux/sound/core/seq/
H A Dseq_prioq.c7 #include <linux/time.h>
91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
93 /* compare real time */ in compare_timestamp()
94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
115 /* compare real time */ in compare_timestamp_rel()
116 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel()
118 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel()
119 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel()
[all …]
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Dsamples.py18 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" + \
41 def __init__(self, time, avg10, avg60, avg300, deltaTotal): argument
42 self.time = time
49 def __init__(self, time, avg10, avg60, avg300, deltaTotal): argument
50 self.time = time
57 def __init__(self, time, avg10, avg60, avg300, deltaTotal): argument
[all …]
/openbmc/u-boot/test/dm/
H A Drtc.c29 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 Dbcd_time.cpp18 #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 …]

12345678910>>...287