/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_bios_test.cpp | 33 uint8_t hours = 0; in TEST() local 38 epochToBCDTime(epochTime, seconds, minutes, hours, day, month, year); in TEST() 42 ASSERT_EQ(0x5, hours); in TEST() 54 uint8_t hours = 5; in TEST() local 60 timeSec = timeToEpoch(sec, min, hours, day, month, year); in TEST()
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | PowerOnHours.interface.yaml | 2 Implement to provide the POH(Power-On-Hours) counter. 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/pldm/libpldmresponder/ |
H A D | bios.hpp | 109 * @param[out] hours - number of hours in BCD 115 uint8_t& hours, uint8_t& day, uint8_t& month, 122 * @param[in] hours - number of hours in dec 128 std::time_t timeToEpoch(uint8_t seconds, uint8_t minutes, uint8_t hours,
|
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()
|
/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/libpldm/tests/dsp/ |
H A D | bios.cpp | 28 uint8_t hours = 5; in TEST() local 40 hours, day, month, year, response); in TEST() 52 &hours, sizeof(hours))); in TEST() 54 sizeof(seconds) + sizeof(minutes) + sizeof(hours), in TEST() 57 sizeof(seconds) + sizeof(minutes) + sizeof(hours) + in TEST() 62 sizeof(seconds) + sizeof(minutes) + sizeof(hours) + in TEST() 75 uint8_t hours = 8; in TEST() local 95 &hours, sizeof(hours)); in TEST() 97 sizeof(minutes) + sizeof(hours) + hdrSize, in TEST() 100 sizeof(minutes) + sizeof(hours) + sizeof(day) + hdrSize, in TEST() [all …]
|
/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 232 * @param[out] hours - hours in BCD format 240 uint8_t *minutes, uint8_t *hours, uint8_t *day, 336 * @param[in] hours - hours in BCD format 347 uint8_t seconds, uint8_t minutes, uint8_t hours, 524 * @param[in] hours - hours in decimal format. Value range 0~23 535 uint8_t minutes, uint8_t hours, uint8_t day, 545 * @param[out] hours - hours in BCD format 552 uint8_t *seconds, uint8_t *minutes, uint8_t *hours,
|
H A D | utils.h | 102 * @param[in] hours. Value range 0~23 108 bool is_time_legal(uint8_t seconds, uint8_t minutes, uint8_t hours, uint8_t day,
|
/openbmc/telemetry/redfish-tests/ |
H A D | redfish_requests.py | 119 hours = int(time / (60 * 60)) 123 return f"P{str(days)}DT{str(hours)}H{str(minutes)}M{str(time)}S" 131 hours = r.group(3) 137 if hours is not None: 138 result += int(hours[:-1]) * 60 * 60
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | time_utils.cpp | 44 Hours, in fromDurationString() enumerator 69 stage = ProcessingStage::Hours; in fromDurationString() 96 if (stage > ProcessingStage::Hours) in fromDurationString() 100 out += std::chrono::hours(ticks); in fromDurationString() 176 std::chrono::hours hours = std::chrono::floor<std::chrono::hours>(ms); in toDurationString() local 177 ms -= hours; in toDurationString() 190 if (hours.count() > 0) in toDurationString() 192 hoursStr = std::format("{}H", hours.count()); in toDurationString() 263 using hours = std::chrono::duration<int, std::ratio<3600>>; in toISO8061ExtendedStr() typedef 265 IntType, std::ratio_multiply<hours::period, std::ratio<24>>>; in toISO8061ExtendedStr() [all …]
|
/openbmc/openbmc/poky/scripts/lib/build_perf/html/ |
H A D | measurement_chart.html | 15 // Assuming the array values are duration in the format [hours, minutes, seconds, milliseconds] 24 … // Assuming the array values are duration in the format [hours, minutes, seconds, milliseconds] 53 const hours = Math.floor(value/60) 56 …return `<strong>Duration:</strong> ${hours}:${minutes}:${seconds}, <strong>Commit number:</strong>… 105 const hours = Math.floor(value/60) 108 …return `<strong>Duration:</strong> ${hours}:${minutes}:${seconds}, <strong>Commit number:</strong>…
|
/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/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/qemu/tests/unit/ |
H A D | crypto-tls-x509-helpers.h | 65 /* zero for current time, or non-zero for hours from now */ 67 /* zero for 24 hours from now, or non-zero for hours from now */
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_poh_counter.robot | 5 ... POH (Power-On Hours) counter is the incremental count of power ON 6 ... hours in the system. 95 Sleep 1 hours 30 minutes
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-bsp/lm_sensors/lmsensors-config/ |
H A D | sensord | 2 # in intervals use suffix "m" for minutes, "s" for seconds, "h" for hours
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | rtc.h | 14 u32 hourmin; /* 0x00 Hours and Minutes Counter Register */ 16 u32 alrm_hm; /* 0x08 Hours and Minutes Alarm Register */
|
/openbmc/libcper/ |
H A D | cper-utils.c | 345 int hours = bcd_to_int(timestamp->Hours); in timestamp_to_string() local 346 if (hours > 24) { in timestamp_to_string() 360 century, year, month, day, hours, minutes, seconds); in timestamp_to_string() 378 &out->Century, &out->Year, &out->Month, &out->Day, &out->Hours, in string_to_timestamp() 386 out->Hours = int_to_bcd(out->Hours); in string_to_timestamp()
|
/openbmc/openbmc-test-automation/lib/ |
H A D | htx_resource.robot | 5 ${HTX_DURATION} 2 hours
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Filter.v1_1_0.json | 172 "description": "The rated hours of service life for this filter.", 173 …"longDescription": "This property shall contain the number of hours of service that the filter or … 199 "description": "The hours of service this filter has provided.", 200 …"longDescription": "This property shall contain the number of hours of service that the filter or …
|
/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/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/webui-vue/src/views/SecurityAndAccess/Policies/ |
H A D | Policies.vue | 159 { value: 7200, text: i18n.global.t('pagePolicies.options.2hours') }, 160 { value: 14400, text: i18n.global.t('pagePolicies.options.4hours') }, 161 { value: 28800, text: i18n.global.t('pagePolicies.options.8hours') },
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | davinci_rtc.h | 19 unsigned int hours; member
|