/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_bios_test.cpp | 28 time.tm_isdst = -1; in TEST() 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/libpldm/src/dsp/ |
H A D | bios.c | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 21 return pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_req() 26 uint8_t seconds, uint8_t minutes, uint8_t hours, in encode_get_date_time_resp() argument 40 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_resp() 46 (struct pldm_get_date_time_resp *)msg->payload; in encode_get_date_time_resp() 47 response->completion_code = completion_code; in encode_get_date_time_resp() 48 if (response->completion_code == PLDM_SUCCESS) { in encode_get_date_time_resp() 49 response->completion_code = completion_code; in encode_get_date_time_resp() 50 response->seconds = seconds; in encode_get_date_time_resp() 51 response->minutes = minutes; in encode_get_date_time_resp() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | time_utils.hpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 38 Hours, in fromDurationString() enumerator 63 stage = ProcessingStage::Hours; in fromDurationString() 74 size_t charactersRead = static_cast<size_t>(ptr - v.data()); in fromDurationString() 90 if (stage > ProcessingStage::Hours) in fromDurationString() 94 out += std::chrono::hours(ticks); in fromDurationString() 168 ms -= days; in toDurationString() 170 std::chrono::hours hours = std::chrono::floor<std::chrono::hours>(ms); in toDurationString() local 171 ms -= hours; in toDurationString() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq27xxx.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Pali Rohár <pali@kernel.org> 12 - Andrew F. Davis <afd@ti.com> 13 - Sebastian Reichel <sre@kernel.org> 20 - $ref: power-supply.yaml# 25 - ti,bq27200 26 - ti,bq27210 27 - ti,bq27500 # deprecated, use revision specific property below [all …]
|
H A D | battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 34 device-chemistry: [all …]
|
H A D | active-semi,act8945a-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/active-semi,act8945a-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Active-semi ACT8945A Charger Function 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 17 const: active-semi,act8945a-charger 22 active-semi,chglev-gpios: 26 active-semi,lbo-gpios: [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | bios.hpp | 33 * @param[in] fd - socket descriptor to communicate to host 34 * @param[in] eid - MCTP EID of host firmware 35 * @param[in] instanceIdDb - pointer to an InstanceIdDb object 36 * @param[in] handler - PLDM request handler 37 * @param[in] platformConfigHandler - pointer to platform config object 38 * @param[in] requestPLDMServiceName - Callback for registering the PLDM 48 * @param[in] request - Request message payload 49 * @return Response - PLDM Response message 55 * @param[in] request - Request message 56 * @param[in] payload_length - Request message payload length [all …]
|
H A D | bios.cpp | 5 #include <phosphor-logging/lg2.hpp> 26 uint8_t& hours, uint8_t& day, uint8_t& month, in epochToBCDTime() argument 32 seconds = pldm::utils::decimalToBcd(time->tm_sec); in epochToBCDTime() 33 minutes = pldm::utils::decimalToBcd(time->tm_min); in epochToBCDTime() 34 hours = pldm::utils::decimalToBcd(time->tm_hour); in epochToBCDTime() 35 day = pldm::utils::decimalToBcd(time->tm_mday); in epochToBCDTime() 37 time->tm_mon + 1); // The number of months in the range in epochToBCDTime() 40 time->tm_year + 1900); // The number of years since 1900 in epochToBCDTime() 43 std::time_t timeToEpoch(uint8_t seconds, uint8_t minutes, uint8_t hours, in timeToEpoch() argument 48 stm.tm_year = year - 1900; in timeToEpoch() [all …]
|
/openbmc/libpldm/tests/dsp/ |
H A D | bios.cpp | 28 uint8_t hours = 5; in TEST() local 36 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) in TEST() 40 hours, day, month, year, response); in TEST() 43 EXPECT_EQ(completionCode, response->payload[0]); in TEST() 45 EXPECT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]), in TEST() 47 EXPECT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() 50 EXPECT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() 52 &hours, sizeof(hours))); in TEST() 53 EXPECT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() 54 sizeof(seconds) + sizeof(minutes) + sizeof(hours), in TEST() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1685.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * An rtc driver for the Dallas/Maxim DS1685/DS1687 and related real-time 6 * Copyright (C) 2011-2014 Joshua Kinard <kumba@gentoo.org>. 7 * Copyright (C) 2009 Matthias Fuchs <matthias.fuchs@esd-electronics.com>. 10 * DS1685/DS1687 3V/5V Real-Time Clocks, 19-5215, Rev 4/10. 11 * DS17x85/DS17x87 3V/5V Real-Time Clocks, 19-5222, Rev 4/10. 12 * DS1689/DS1693 3V/5V Serialized Real-Time Clocks, Rev 112105. 33 /* ----------------------------------------------------------------------- */ 40 * ds1685_read - read a value from an rtc register. 47 return readb((u8 __iomem *)rtc->regs + in ds1685_read() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | bios.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 112 uint8_t hours; //!< Hours in BCD format member 126 uint8_t hours; //!< Hours in BCD format member 210 * @param[in] instance_id - Message's instance id 211 * @param[out] msg - Message will be written to this 225 * protocol layer error and all the out-parameters are invalid. 227 * @param[in] msg - Response message 228 * @param[in] payload_length - Length of response message payload 229 * @param[out] completion_code - Pointer to response msg's PLDM completion code 230 * @param[out] seconds - Seconds in BCD format [all …]
|
/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. 4 - name: POHCounter 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)) 123 return f"P{str(days)}DT{str(hours)}H{str(minutes)}M{str(time)}S" 127 r"-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+(.\d+)?S)?)?", duration 131 hours = r.group(3) 136 result += int(days[:-1]) * 60 * 60 * 24 137 if hours is not None: 138 result += int(hours[:-1]) * 60 * 60 140 result += int(minutes[:-1]) * 60 142 result += float(seconds[:-1])
|
/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] 35 return [point[0]-150, '10%']; 43 const hours = Math.floor(value/60) 46 …return `<strong>Duration:</strong> ${hours}:${minutes}:${seconds}, <br/> <strong>Commit number:</s… 58 return Math.round(value.min - 0.5); 86 if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
/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"). 38 # This configures the cron to reboot the system and re-run the HTX profile. 56 ${HTX_DURATION} 8 hours
|
/openbmc/u-boot/drivers/rtc/ |
H A D | date.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 #define days_in_month(a) (month_days[(a) - 1]) 28 * This only works for the Gregorian calendar - i.e. after 1752 (in the UK) 36 if (tm->tm_year < 1753) in rtc_calc_weekday() 37 return -1; in rtc_calc_weekday() 38 last_year = tm->tm_year - 1; in rtc_calc_weekday() 41 leaps_to_date = last_year / 4 - last_year / 100 + last_year / 400; in rtc_calc_weekday() 49 if (tm->tm_year % 4 == 0 && in rtc_calc_weekday() 50 ((tm->tm_year % 100 != 0) || (tm->tm_year % 400 == 0)) && in rtc_calc_weekday() 51 tm->tm_mon > 2) { in rtc_calc_weekday() [all …]
|
H A D | davinci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 status = readl(&rtc->status); in rtc_get() 21 return -1; in rtc_get() 26 sec = readl(&rtc->second); in rtc_get() 27 min = readl(&rtc->minutes); in rtc_get() 28 hour = readl(&rtc->hours); in rtc_get() 29 mday = readl(&rtc->day); in rtc_get() 30 wday = readl(&rtc->dotw); in rtc_get() 31 mon_cent = readl(&rtc->month); in rtc_get() 32 year = readl(&rtc->year); in rtc_get() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ene-kb930.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/ene-kb930.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Dmitry Osipenko <digetx@gmail.com> 16 $ref: /schemas/power/supply/power-supply.yaml 21 - enum: 22 - acer,a500-iconia-ec # Acer A500 Iconia tablet device 23 - const: ene,kb930 27 system-power-controller: true [all …]
|
/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 */ 97 NULL, WORKDIR #varname "-ctx.pem", \ 118 NULL, WORKDIR #varname "-ctx.pem", \ 132 .cn = "qemu-CA", \
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | rtc-cdev | 4 Contact: linux-rtc@vger.kernel.org 6 The ioctl interface to drivers for real-time clocks (RTCs). 17 RTCs that support alarms. Can be set upto 24 hours in the 22 powerful interface, which can issue alarms beyond 24 hours and 48 newer features -- including those enabled by ACPI -- are exposed
|
/openbmc/linux/include/trace/events/ |
H A D | v4l2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <media/videobuf2-v4l2.h> 127 __entry->minor = minor; 128 __entry->index = buf->index; 129 __entry->type = buf->type; 130 __entry->bytesused = buf->bytesused; 131 __entry->flags = buf->flags; 132 __entry->field = buf->field; 133 __entry->timestamp = v4l2_buffer_get_timestamp(buf); 134 __entry->timecode_type = buf->timecode.type; [all …]
|
/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. 10 ... Testcases added - 21 ... Wait Time given - 1 hour, 1 hour 30minutes when Host power OFF, 1 hour 80 ${difference}= Evaluate ${poh_counter_2} - ${poh_counter_1} 95 Sleep 1 hours 30 minutes 123 ${difference}= Evaluate ${poh_counter_2} - ${poh_counter_1} 158 # Host may take approx 5 - 6 minutes to complete power ON process.
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Filter.v1_0_2.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 28 "description": "The available OEM-specific actions for this resource.", 29 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 39 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 54 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 57 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 60 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 63 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
/openbmc/libcper/ |
H A D | cper-utils.c | 10 #include <libcper/cper-utils.h> 25 error_status->Type, 18, in cper_generic_error_status_to_ir() 34 json_object_new_boolean(error_status->AddressSignal)); in cper_generic_error_status_to_ir() 37 json_object_new_boolean(error_status->ControlSignal)); in cper_generic_error_status_to_ir() 40 json_object_new_boolean(error_status->DataSignal)); in cper_generic_error_status_to_ir() 43 json_object_new_boolean(error_status->DetectedByResponder)); in cper_generic_error_status_to_ir() 46 json_object_new_boolean(error_status->DetectedByRequester)); in cper_generic_error_status_to_ir() 49 json_object_new_boolean(error_status->FirstError)); in cper_generic_error_status_to_ir() 52 json_object_new_boolean(error_status->OverflowNotLogged)); in cper_generic_error_status_to_ir() 57 //Converts the given CPER-JSON generic error status into a CPER structure. [all …]
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | rtc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. 6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 14 u32 hourmin; /* 0x00 Hours and Minutes Counter Register */ 16 u32 alrm_hm; /* 0x08 Hours and Minutes Alarm Register */
|