/openbmc/u-boot/drivers/rtc/ |
H A D | sandbox_rtc.c | 18 if (time->tm_sec < 0) in sandbox_rtc_get() 19 return time->tm_sec; in sandbox_rtc_get() 21 if (time->tm_min < 0) in sandbox_rtc_get() 22 return time->tm_min; in sandbox_rtc_get() 24 if (time->tm_hour < 0) in sandbox_rtc_get() 25 return time->tm_hour; in sandbox_rtc_get() 27 if (time->tm_mday < 0) in sandbox_rtc_get() 28 return time->tm_mday; in sandbox_rtc_get() 30 if (time->tm_mon < 0) in sandbox_rtc_get() 31 return time->tm_mon; 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() 42 t->tm_wday = bcd2bin((time >> MVRTC_DAY_SFT) & MVRTC_DAY_MSK); in __mv_rtc_get() 89 writel(time, ®s->time); in __mv_rtc_set() 109 u32 time; in __mv_rtc_reset() local 113 time = readl(®s->time); in __mv_rtc_reset() 114 sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in __mv_rtc_reset() [all …]
|
H A D | i2c_rtc_emul.c | 125 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 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() 136 plat->reg[REG_MON] = time.tm_mon; in sandbox_i2c_rtc_prepare_read() 138 plat->reg[REG_WDAY] = time.tm_wday; in sandbox_i2c_rtc_prepare_read() 146 struct rtc_time time; in sandbox_i2c_rtc_complete_write() local 149 time.tm_sec = plat->reg[REG_SEC]; in sandbox_i2c_rtc_complete_write() 150 time.tm_min = plat->reg[REG_MIN]; in sandbox_i2c_rtc_complete_write() [all …]
|
/openbmc/linux/lib/ |
H A D | find_bit_benchmark.c | 39 ktime_t time; in test_find_first_bit() local 46 time = ktime_get() - time; in test_find_first_bit() 56 ktime_t time; in test_find_first_and_bit() local 65 time = ktime_get() - time; in test_find_first_and_bit() 74 ktime_t time; in test_find_next_bit() local 79 time = ktime_get() - time; in test_find_next_bit() 88 ktime_t time; in test_find_next_zero_bit() local 93 time = ktime_get() - time; in test_find_next_zero_bit() 112 time = ktime_get() - time; in test_find_last_bit() 128 time = ktime_get() - time; in test_find_nth_bit() [all …]
|
/openbmc/linux/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 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 27 store_key(time, cpu, thread) 28 key = get_key(time, event, cpu, thread) 31 def get(time, event, cpu, thread): argument 32 key = get_key(time, event, cpu, thread) [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-mc146818-lib.c | 157 .time = time in mc146818_get_time() 161 memset(time, 0, sizeof(*time)); in mc146818_get_time() 167 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time() 168 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time() 169 time->tm_hour = bcd2bin(time->tm_hour); in mc146818_get_time() 170 time->tm_mday = bcd2bin(time->tm_mday); in mc146818_get_time() 171 time->tm_mon = bcd2bin(time->tm_mon); in mc146818_get_time() 172 time->tm_year = bcd2bin(time->tm_year); in mc146818_get_time() 194 time->tm_mon--; in mc146818_get_time() 227 min = time->tm_min; in mc146818_set_time() [all …]
|
H A D | rtc-pcf50633.c | 113 &pcf_tm.time[0]); in pcf50633_rtc_read_time() 120 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_read_time() 122 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_read_time() 123 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_read_time() 124 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_read_time() 125 pcf_tm.time[PCF50633_TI_SEC]); in pcf50633_rtc_read_time() 147 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_set_time() 149 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_set_time() 150 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_set_time() 151 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_set_time() [all …]
|
H A D | rtc-wm8350.c | 93 u16 time[4]; in wm8350_rtc_settime() local 97 time[0] = tm->tm_sec; in wm8350_rtc_settime() 99 time[1] = tm->tm_hour; in wm8350_rtc_settime() 101 time[2] = tm->tm_mday; in wm8350_rtc_settime() 107 time[0], time[1], time[2], time[3]); in wm8350_rtc_settime() 143 u16 time[4]; in wm8350_rtc_readalarm() local 247 u16 time[3]; in wm8350_rtc_setalarm() local 250 memset(time, 0, sizeof(time)); in wm8350_rtc_setalarm() 253 time[0] |= tm->tm_sec; in wm8350_rtc_setalarm() 263 time[1] |= tm->tm_hour; in wm8350_rtc_setalarm() [all …]
|
H A D | interface.c | 77 if (time < range_min || time > range_max) in rtc_valid_range() 194 alarm->time.tm_sec = -1; in rtc_read_alarm_internal() 195 alarm->time.tm_min = -1; in rtc_read_alarm_internal() 196 alarm->time.tm_hour = -1; in rtc_read_alarm_internal() 197 alarm->time.tm_mday = -1; in rtc_read_alarm_internal() 198 alarm->time.tm_mon = -1; in rtc_read_alarm_internal() 199 alarm->time.tm_year = -1; in rtc_read_alarm_internal() 303 if (alarm->time.tm_mday < 1 || alarm->time.tm_mday > 31) { in __rtc_read_alarm() 352 alarm->time.tm_mon++; in __rtc_read_alarm() 366 alarm->time.tm_year++; in __rtc_read_alarm() [all …]
|
H A D | rtc-ds1302.c | 58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time() 59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time() 60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time() 61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time() 62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time() 63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time() 64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time() 88 time->tm_sec = bcd2bin(buf[RTC_ADDR_SEC]); in ds1302_rtc_get_time() 89 time->tm_min = bcd2bin(buf[RTC_ADDR_MIN]); in ds1302_rtc_get_time() 90 time->tm_hour = bcd2bin(buf[RTC_ADDR_HOUR]); in ds1302_rtc_get_time() [all …]
|
H A D | rtc-spear.c | 202 unsigned int time, date; in spear_rtc_read_time() local 233 unsigned int time, date; in spear_rtc_set_time() local 259 unsigned int time, date; in spear_rtc_read_alarm() local 265 alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_alarm() 266 alm->time.tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_alarm() 267 alm->time.tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_alarm() 272 bcd2tm(&alm->time); in spear_rtc_read_alarm() 289 unsigned int time, date; in spear_rtc_set_alarm() local 292 tm2bcd(&alm->time); in spear_rtc_set_alarm() 296 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm() [all …]
|
H A D | rtc-ds1305.c | 198 "read", time->tm_sec, time->tm_min, in ds1305_get_time() 199 time->tm_hour, time->tm_mday, in ds1305_get_time() 200 time->tm_mon, time->tm_year, time->tm_wday); in ds1305_get_time() 213 "write", time->tm_sec, time->tm_min, in ds1305_set_time() 214 time->tm_hour, time->tm_mday, in ds1305_set_time() 215 time->tm_mon, time->tm_year, time->tm_wday); in ds1305_set_time() 220 *bp++ = bin2bcd(time->tm_sec); in ds1305_set_time() 221 *bp++ = bin2bcd(time->tm_min); in ds1305_set_time() 223 *bp++ = (time->tm_wday < 7) ? (time->tm_wday + 1) : 1; in ds1305_set_time() 224 *bp++ = bin2bcd(time->tm_mday); in ds1305_set_time() [all …]
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_prioq.c | 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() 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() 121 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel() 266 if (cell->event.time.time.tv_sec || in prioq_match() 267 cell->event.time.time.tv_nsec) in prioq_match() 349 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match() [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | bcd_time.cpp | 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 105 s << time.yearMSB << time.yearLSB << time.month << time.day << time.hour; in operator <<() [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | rtc.c | 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() 48 show_time("actual", time); in cmp_times() 57 struct rtc_time now, time, cmp; in dm_test_rtc_set_get() local 71 memset(&time, '\0', sizeof(time)); in dm_test_rtc_set_get() 72 time.tm_mday = 25; in dm_test_rtc_set_get() 73 time.tm_mon = 8; in dm_test_rtc_set_get() 74 time.tm_year = 2004; in dm_test_rtc_set_get() 75 time.tm_sec = 0; in dm_test_rtc_set_get() 76 time.tm_min = 18; in dm_test_rtc_set_get() [all …]
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
H A D | samples.py | 18 def __init__(self, time): argument 19 self.time = time 26 self.time = time 42 self.time = time 50 self.time = time 58 self.time = time 69 self.time = time 88 self.time = mem_sample.time 99 self.time = time 110 self.time = time [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() 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() 102 static auto sleep_for(context& ctx, event_t::time_resolution time) in sleep_for() 111 event_t::time_resolution time; member 117 auto sleep_for(context& ctx, std::chrono::duration<Rep, Period> time) in sleep_for() argument [all …]
|
/openbmc/linux/Documentation/sound/designs/ |
H A D | timestamping.rst | 7 - Trigger_tstamp is the system time snapshot taken when the .trigger 19 The difference (tstamp - trigger_tstamp) defines the elapsed time. 34 along with a snapshot of system time. Applications can select from 51 time time time time time 62 are pushed on a link. The link time can be directly measured if 70 The app time corresponds to the time tracked by an application after 79 time with dedicated hardware, possibly synchronized with system time, 90 streams and to the DMA time (hw_ptr) in all other cases. 108 precise start time (patches WIP) 181 ahead of the actual playback time (as a side time this sort of [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | subdev.c | 58 s64 time; in nvkm_subdev_fini() local 61 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 75 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 83 s64 time; in nvkm_subdev_preinit() local 96 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 104 s64 time; in nvkm_subdev_oneinit_() local 119 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_oneinit_() 127 s64 time; in nvkm_subdev_init_() local 152 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_init_() 219 s64 time; in nvkm_subdev_del() local [all …]
|
/openbmc/linux/fs/fat/ |
H A D | fat_test.c | 26 __le16 time; member 36 .time = cpu_to_le16(0), 52 .time = cpu_to_le16(0), 68 .time = cpu_to_le16(0), 76 .time = cpu_to_le16(0), 84 .time = cpu_to_le16(0), 116 .time = cpu_to_le16(0), 142 testcase->time, in fat_time_fat2unix_test() 158 __le16 date, time; in fat_time_unix2fat_test() local 167 &time, &date, &cs); in fat_time_unix2fat_test() [all …]
|
/openbmc/linux/arch/um/kernel/ |
H A D | time.c | 97 time_travel_set_time(msg->time); in time_travel_handle_message() 115 .time = time, in time_travel_ext_req() 146 time_travel_set_time(msg.time); in time_travel_ext_req() 149 return msg.time; in time_travel_ext_req() 269 unsigned long long time) in __time_travel_add_event() argument 279 e->time = time; in __time_travel_add_event() 290 if ((tmp->time > e->time) || in __time_travel_add_event() 291 (tmp->time == e->time && tmp->onstack && e->onstack)) { in __time_travel_add_event() 303 time_travel_next_event = tmp->time; in __time_travel_add_event() 308 unsigned long long time) in time_travel_add_event() argument [all …]
|
/openbmc/sdbusplus/test/ |
H A D | timer.cpp | 90 auto time = duration_cast<microseconds>(seconds(2)); in TEST_F() local 91 EXPECT_GE(timer.start(time), 0); in TEST_F() 116 EXPECT_GE(timer.start(time), 0); in TEST_F() 147 EXPECT_GE(timer.start(time), 0); in TEST_F() 153 time = duration_cast<microseconds>(seconds(3)); in TEST_F() 154 EXPECT_GE(timer.start(time), 0); in TEST_F() 179 EXPECT_GE(timer.start(time), 0); in TEST_F() 185 time = duration_cast<microseconds>(seconds(2)); in TEST_F() 186 EXPECT_GE(timer.start(time), 0); in TEST_F() 215 EXPECT_GE(timer->start(time), 0); in TEST_F() [all …]
|
/openbmc/linux/drivers/base/power/ |
H A D | trace.c | 91 static struct rtc_time time = { in set_magic_time() local 103 time.tm_year = (n % 100); in set_magic_time() 105 time.tm_mon = (n % 12); in set_magic_time() 107 time.tm_mday = (n % 28) + 1; in set_magic_time() 109 time.tm_hour = (n % 24); in set_magic_time() 111 time.tm_min = (n % 20) * 3; in set_magic_time() 113 mc146818_set_time(&time); in set_magic_time() 120 struct rtc_time time; in read_magic_time() local 123 if (mc146818_get_time(&time, 1000) < 0) { in read_magic_time() 128 pr_info("RTC time: %ptRt, date: %ptRd\n", &time, &time); in read_magic_time() [all …]
|
/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. 13 - Compile phosphor-time-manager with default options: 38 - /xyz/openbmc_project/time/bmc 43 set the time. For example on an authenticated session: 45 - To get BMC's time: 56 - To set BMC's time: 72 Getting BMC time is always allowed, but setting the time may not be allowed 76 - NTP: The time is set via NTP server. 77 - MANUAL: The time is set manually. [all …]
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | efi-pstore.c | 62 u64 time; in efi_pstore_read_func() local 68 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 71 record->time.tv_sec = time; in efi_pstore_read_func() 72 record->time.tv_nsec = 0; in efi_pstore_read_func() 83 record->time.tv_sec = time; in efi_pstore_read_func() 84 record->time.tv_nsec = 0; in efi_pstore_read_func() 88 &record->type, &part, &time) == 3) { in efi_pstore_read_func() 94 record->id = generic_id(time, part, 0); in efi_pstore_read_func() 97 record->time.tv_sec = time; in efi_pstore_read_func() 98 record->time.tv_nsec = 0; in efi_pstore_read_func() [all …]
|