/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_bios_test.cpp | 34 uint8_t hours = 0; in TEST() local 39 epochToBCDTime(epochTime, seconds, minutes, hours, day, month, year); in TEST() 43 ASSERT_EQ(0x5, hours); in TEST() 55 uint8_t hours = 5; in TEST() local 61 timeSec = timeToEpoch(sec, min, hours, day, month, year); in TEST()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1685.c | 271 hours = rtc->read(rtc, RTC_HRS); in ds1685_rtc_read_time() 361 rtc->write(rtc, RTC_HRS, hours); in ds1685_rtc_set_time() 423 if (likely(hours < 0xc0)) in ds1685_rtc_read_alarm() 482 if (unlikely(hours >= 0xc0)) in ds1685_rtc_set_alarm() 483 hours = 0xff; in ds1685_rtc_set_alarm() 1073 u8 ctrla, ctrlb, hours; in ds1685_rtc_probe() local 1190 hours = rtc->read(rtc, RTC_HRS); in ds1685_rtc_probe() 1192 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK, in ds1685_rtc_probe() 1194 hours = ((hours == 12) ? 0 : ((am_pm) ? hours + 12 : hours)); in ds1685_rtc_probe() 1211 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK, in ds1685_rtc_probe() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | time_utils.hpp | 91 out += std::chrono::hours(ticks); in fromDurationString() 167 std::chrono::hours hours = std::chrono::floor<std::chrono::hours>(ms); in toDurationString() local 168 ms -= hours; in toDurationString() 181 if (hours.count() > 0) in toDurationString() 183 hoursStr = std::format("{}H", hours.count()); in toDurationString() 251 using hours = std::chrono::duration<int, std::ratio<3600>>; in toISO8061ExtendedStr() typedef 253 IntType, std::ratio_multiply<hours::period, std::ratio<24>>>; in toISO8061ExtendedStr() 283 hours hr = duration_cast<hours>(t); in toISO8061ExtendedStr()
|
/openbmc/libpldm/tests/dsp/ |
H A D | bios.cpp | 28 uint8_t hours = 5; in TEST() local 52 &hours, sizeof(hours))); in TEST() 75 uint8_t hours = 8; in TEST() local 95 &hours, sizeof(hours)); in TEST() 117 EXPECT_EQ(hours, retHours); in TEST() 210 uint8_t hours = 10; in TEST() local 231 EXPECT_EQ(hours, bcd2dec8(req->hours)); in TEST() 243 uint8_t hours = 10; in TEST() local 278 uint8_t hours = 0x10; in TEST() local 290 req->hours = hours; in TEST() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq27xxx.yaml | 64 - energy-full-design-microwatt-hours 65 - charge-full-design-microamp-hours 67 Both or neither of the *-full-design-*-hours properties must be set. 81 energy-full-design-microwatt-hours = <5290000>; 82 charge-full-design-microamp-hours = <1430000>;
|
H A D | active-semi,act8945a-charger.yaml | 48 Specifies the charger's total safety timer setting value in hours; 50 Defaults to 3 hours.
|
H A D | battery.yaml | 60 energy-full-design-microwatt-hours: 63 charge-full-design-microamp-hours: 154 energy-full-design-microwatt-hours = <5290000>; 155 charge-full-design-microamp-hours = <1430000>;
|
/openbmc/libpldm/src/dsp/ |
H A D | bios.c | 26 uint8_t seconds, uint8_t minutes, uint8_t hours, in encode_get_date_time_resp() argument 52 response->hours = hours; in encode_get_date_time_resp() 63 uint8_t *minutes, uint8_t *hours, uint8_t *day, in decode_get_date_time_resp() argument 67 hours == NULL || day == NULL || month == NULL || year == NULL || in decode_get_date_time_resp() 86 *hours = response->hours; in decode_get_date_time_resp() 96 uint8_t minutes, uint8_t hours, uint8_t day, in encode_set_date_time_req() argument 107 if (!is_time_legal(seconds, minutes, hours, day, month, year)) { in encode_set_date_time_req() 126 request->hours = dec2bcd8(hours); in encode_set_date_time_req() 136 uint8_t *seconds, uint8_t *minutes, uint8_t *hours, in decode_set_date_time_req() argument 140 hours == NULL || day == NULL || month == NULL || year == NULL) { in decode_set_date_time_req() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | bios.cpp | 26 uint8_t& hours, uint8_t& day, uint8_t& month, in epochToBCDTime() argument 34 hours = pldm::utils::decimalToBcd(time->tm_hour); in epochToBCDTime() 43 std::time_t timeToEpoch(uint8_t seconds, uint8_t minutes, uint8_t hours, in timeToEpoch() argument 51 stm.tm_hour = hours; in timeToEpoch() 115 uint8_t hours = 0; in getDateTime() local 143 pldm::responder::utils::epochToBCDTime(timeSec, seconds, minutes, hours, in getDateTime() 147 seconds, minutes, hours, day, month, in getDateTime() 161 uint8_t hours = 0; in setDateTime() local 198 &minutes, &hours, &day, &month, &year); in setDateTime() 203 timeSec = pldm::responder::utils::timeToEpoch(seconds, minutes, hours, day, in setDateTime()
|
H A D | bios.hpp | 115 uint8_t& hours, uint8_t& day, uint8_t& month, 128 std::time_t timeToEpoch(uint8_t seconds, uint8_t minutes, uint8_t hours,
|
/openbmc/u-boot/drivers/rtc/ |
H A D | date.c | 85 int days, hours; in rtc_mktime() local 96 hours = days * 24 + tm->tm_hour; in rtc_mktime() 97 return (hours * 60 + tm->tm_min) * 60 + tm->tm_sec; in rtc_mktime()
|
H A D | davinci.c | 28 hour = readl(&rtc->hours); in rtc_get() 68 writel(bin2bcd(tmp->tm_hour), &rtc->hours); in rtc_set()
|
/openbmc/libpldm/include/libpldm/ |
H A D | bios.h | 112 uint8_t hours; //!< Hours in BCD format member 126 uint8_t hours; //!< Hours in BCD format member 240 uint8_t *minutes, uint8_t *hours, uint8_t *day, 347 uint8_t seconds, uint8_t minutes, uint8_t hours, 535 uint8_t minutes, uint8_t hours, uint8_t day, 552 uint8_t *seconds, uint8_t *minutes, uint8_t *hours,
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | PowerOnHours.interface.yaml | 7 This counter shows how many hours the system has been running. The 8 value is a cumulative one and includes all working hours since
|
/openbmc/telemetry/redfish-tests/ |
H A D | redfish_requests.py | 119 hours = int(time / (60 * 60)) 131 hours = r.group(3) 137 if hours is not None: 138 result += int(hours[:-1]) * 60 * 60
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ene-kb930.yaml | 39 charge-full-design-microamp-hours = <3260000>; 40 energy-full-design-microwatt-hours = <24000000>;
|
/openbmc/openbmc-test-automation/systest/ |
H A D | test_boot_acceptance.robot | 11 # HTX_DURATION Duration of HTX run (e.g. "24 hours", "8 hours"). 56 ${HTX_DURATION} 8 hours
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/ |
H A D | projecttags.py | 30 hours = int(tdsec / 3600) 31 return "%02d:%02d:%02d" % (hours, int((tdsec - (hours * 3600))/ 60), int(tdsec) % 60)
|
/openbmc/libpldm/src/ |
H A D | utils.c | 205 bool is_time_legal(uint8_t seconds, uint8_t minutes, uint8_t hours, uint8_t day, in is_time_legal() argument 219 minutes > 59 || hours > 23) { in is_time_legal()
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
H A D | test_toastertable_ui.py | 60 later = now + timezone.timedelta(hours=1) 61 even_later = later + timezone.timedelta(hours=1)
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | davinci_rtc.h | 19 unsigned int hours; member
|
/openbmc/linux/drivers/power/supply/ |
H A D | max14577_charger.c | 207 unsigned long hours) in max14577_set_fast_charge_timer() argument 211 switch (hours) { in max14577_set_fast_charge_timer() 213 reg_data = hours - 3; in max14577_set_fast_charge_timer() 221 hours); in max14577_set_fast_charge_timer()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | rtc-cdev | 17 RTCs that support alarms. Can be set upto 24 hours in the 22 powerful interface, which can issue alarms beyond 24 hours and
|
/openbmc/linux/arch/m68k/apollo/ |
H A D | config.c | 210 t->tm_hour=rtc->hours; in dn_dummy_hwclk() 220 rtc->hours=t->tm_hour; in dn_dummy_hwclk()
|
/openbmc/openbmc-test-automation/lib/ |
H A D | htx_resource.robot | 5 ${HTX_DURATION} 2 hours
|