Home
last modified time | relevance | path

Searched refs:bcdTime (Results 1 – 4 of 4) sorted by relevance

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dbcd_time.cpp73 uint64_t getMillisecondsSinceEpoch(const BCDTime& bcdTime) in getMillisecondsSinceEpoch() argument
76 int year = (fromBCD(bcdTime.yearMSB) * 100) + fromBCD(bcdTime.yearLSB); in getMillisecondsSinceEpoch()
79 utcTime.tm_mon = fromBCD(bcdTime.month) - 1; in getMillisecondsSinceEpoch()
80 utcTime.tm_mday = fromBCD(bcdTime.day); in getMillisecondsSinceEpoch()
81 utcTime.tm_hour = fromBCD(bcdTime.hour); in getMillisecondsSinceEpoch()
82 utcTime.tm_min = fromBCD(bcdTime.minutes); in getMillisecondsSinceEpoch()
83 utcTime.tm_sec = fromBCD(bcdTime.seconds); in getMillisecondsSinceEpoch()
88 int milliseconds = fromBCD(bcdTime.hundredths) * 10; in getMillisecondsSinceEpoch()
H A Dbcd_time.hpp65 uint64_t getMillisecondsSinceEpoch(const BCDTime& bcdTime);
/openbmc/phosphor-logging/extensions/openpower-pels/tools/
H A Dpeltool.cpp79 uint64_t bcdTime = 0; in fileNameToTimestamp() local
87 bcdTime |= (static_cast<uint64_t>(tmp) << 56); in fileNameToTimestamp()
97 bcdTime |= (static_cast<uint64_t>(tmp) << 48); in fileNameToTimestamp()
107 bcdTime |= (static_cast<uint64_t>(tmp) << 40); in fileNameToTimestamp()
117 bcdTime |= (static_cast<uint64_t>(tmp) << 32); in fileNameToTimestamp()
127 bcdTime |= (tmp << 24); in fileNameToTimestamp()
137 bcdTime |= (tmp << 16); in fileNameToTimestamp()
147 bcdTime |= (tmp << 8); in fileNameToTimestamp()
157 bcdTime |= tmp; in fileNameToTimestamp()
164 return bcdTime; in fileNameToTimestamp()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dbcd_time_test.cpp114 auto bcdTime = getBCDTime(ms); in TEST() local
121 EXPECT_EQ(ms, getMillisecondsSinceEpoch(bcdTime)); in TEST()