| /openbmc/u-boot/drivers/rtc/ |
| H A D | mx27rtc.c | 21 uint32_t day, hour, min, sec; in rtc_get() local 23 day = readl(&rtc_regs->dayr); in rtc_get() 30 sec += min * 60 + hour * 3600 + day * 24 * 3600; in rtc_get() 40 uint32_t day, hour, min, sec; in rtc_set() local 44 day = sec / (24 * 3600); in rtc_set() 54 writel(day, &rtc_regs->dayr); in rtc_set()
|
| H A D | date.c | 34 int day; in rtc_calc_weekday() local 53 day = 1; in rtc_calc_weekday() 55 day = 0; in rtc_calc_weekday() 58 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday() 60 tm->tm_wday = day % 7; in rtc_calc_weekday()
|
| H A D | ftrtc010.c | 18 unsigned int day; /* 0x0c */ member 54 unsigned long day; in ftrtc010_time() local 62 day = readl(&rtc->day); in ftrtc010_time() 68 return day * 24 * 60 * 60 + hour * 60 * 60 + minute * 60 + second; in ftrtc010_time()
|
| H A D | mc13xxx-rtc.c | 48 u32 time, day; in rtc_set() local 54 day = time / 86400; in rtc_set() 57 pmic_reg_write(p, REG_RTC_DAY, day); in rtc_set()
|
| H A D | davinci.c | 29 mday = readl(&rtc->day); in rtc_get() 67 writel(bin2bcd(tmp->tm_mday), &rtc->day); in rtc_set()
|
| /openbmc/pldm/libpldmresponder/test/ |
| H A D | libpldmresponder_bios_test.cpp | 34 uint8_t day = 0; in TEST() local 38 epochToBCDTime(epochTime, seconds, minutes, hours, day, month, year); in TEST() 43 ASSERT_EQ(0x13, day); in TEST() 55 uint8_t day = 13; in TEST() local 60 timeSec = timeToEpoch(sec, min, hours, day, month, year); in TEST()
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | bcd_time.hpp | 19 uint8_t day; member 26 yearMSB(0), yearLSB(0), month(0), day(0), hour(0), minutes(0), in BCDTime() 30 BCDTime(uint8_t yearMSB, uint8_t yearLSB, uint8_t month, uint8_t day, in BCDTime() 33 yearMSB(yearMSB), yearLSB(yearLSB), month(month), day(day), hour(hour), in BCDTime()
|
| H A D | bcd_time.cpp | 18 (month == right.month) && (day == right.day) && in operator ==() 41 bcd.day = toBCD(gmTime->tm_mday); in getBCDTime() 68 utcTime.tm_mday = fromBCD(bcdTime.day); in getMillisecondsSinceEpoch() 86 s >> time.yearMSB >> time.yearLSB >> time.month >> time.day >> time.hour; in operator >>() 93 s << time.yearMSB << time.yearLSB << time.month << time.day << time.hour; in operator <<()
|
| /openbmc/pldm/libpldmresponder/ |
| H A D | bios.cpp | 32 uint8_t& hours, uint8_t& day, uint8_t& month, in epochToBCDTime() argument 41 day = pldm::utils::decimalToBcd(time->tm_mday); in epochToBCDTime() 50 uint8_t day, uint8_t month, uint16_t year) in timeToEpoch() argument 56 stm.tm_mday = day; in timeToEpoch() 122 uint8_t day = 0; in getDateTime() local 150 day, month, year); in getDateTime() 153 seconds, minutes, hours, day, month, in getDateTime() 168 uint8_t day = 0; in setDateTime() local 201 &minutes, &hours, &day, &month, &year); in setDateTime() 206 timeSec = pldm::responder::utils::timeToEpoch(seconds, minutes, hours, day, in setDateTime()
|
| H A D | bios.hpp | 126 uint8_t& hours, uint8_t& day, uint8_t& month, 140 uint8_t day, uint8_t month, uint16_t year);
|
| /openbmc/libpldm/src/dsp/ |
| H A D | bios.c | 27 uint8_t day, uint8_t month, uint16_t year, in encode_get_date_time_resp() argument 53 response->day = day; 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() 87 *day = response->day; 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() 127 request->day = dec2bcd8(day); in encode_set_date_time_req() 137 uint8_t *day, uint8_t *month, uint16_t *year) in decode_set_date_time_req() argument 140 hours == NULL || day == NULL || month == NULL || year == NULL) { in decode_set_date_time_req() [all …]
|
| /openbmc/u-boot/board/compulab/common/ |
| H A D | eeprom.c | 286 static int validate_date(unsigned char day, unsigned char month, in validate_date() argument 299 if (day > 31) in validate_date() 306 if (day > 30) in validate_date() 318 if (day > days_in_february) in validate_date() 357 unsigned char day = (unsigned char)simple_strtol(tok1, &endptr, 0); in eeprom_field_update_date() local 358 if (*endptr != '\0' || day == 0) { in eeprom_field_update_date() 374 if (validate_date(day, month - 1, year)) { in eeprom_field_update_date() 384 field->buf[0] = day; in eeprom_field_update_date()
|
| /openbmc/libpldm/tests/dsp/ |
| H A D | bios.cpp | 29 uint8_t day = 23; in TEST() local 40 hours, day, month, year, response); in TEST() 55 &day, sizeof(day))); in TEST() 58 sizeof(day), in TEST() 63 sizeof(day) + sizeof(month), in TEST() 76 uint8_t day = 9; in TEST() local 98 &day, sizeof(day)); in TEST() 100 sizeof(minutes) + sizeof(hours) + sizeof(day) + hdrSize, in TEST() 103 sizeof(minutes) + sizeof(hours) + sizeof(day) + sizeof(month) + in TEST() 118 EXPECT_EQ(day, retDay); in TEST() [all …]
|
| /openbmc/openbmc/poky/meta/recipes-extended/iputils/iputils/ |
| H A D | CVE-2025-47268.patch | 29 ./ping/ping: Warning: time of day goes back (-7256972569576721377us), taking countermeasures 30 ./ping/ping: Warning: time of day goes back (-7256972569576721232us), taking countermeasures 45 Also existing message "time of day goes back ..." needed to be modified 53 ./ping/ping: Warning: time of day goes back (-3985394643238914 s), taking countermeasures 55 ./ping/ping: Warning: time of day goes back (-3985394643238914 s), taking countermeasures 58 ./ping/ping: Warning: time of day goes back (-4243165695442945 s), taking countermeasures 111 - error(0, 0, _("Warning: time of day goes back (%ldus), taking countermeasures"), triptime); 127 + error(0, 0, _("Warning: time of day goes back (%ld s), taking countermeasures"), tv->tv_sec);
|
| /openbmc/bmcweb/redfish-core/include/utils/extern/ |
| H A D | date.h | 226 class day; variable 251 CONSTCD11 month_day operator/(const day& d, const month& m) NOEXCEPT; 252 CONSTCD11 month_day operator/(const day& d, int m) NOEXCEPT; 253 CONSTCD11 month_day operator/(const month& m, const day& d) NOEXCEPT; 255 CONSTCD11 month_day operator/(int m, const day& d) NOEXCEPT; 272 CONSTCD11 year_month_day operator/(const year_month& ym, const day& d) NOEXCEPT; 334 class day 339 day() = default; 340 explicit CONSTCD11 day(unsigned d) NOEXCEPT; 342 CONSTCD14 day& operator++() NOEXCEPT; [all …]
|
| /openbmc/openbmc-tools/tof-voters/libvoters/ |
| H A D | time.py | 12 [year, month, day] = [int(x) for x in date.split("-")] 21 year, month, day, hour, minute, second, tzinfo=timezone.utc
|
| /openbmc/qemu/hw/uefi/ |
| H A D | var-service-utils.c | 147 if (a->day < b->day) { in uefi_time_compare() 150 if (a->day > b->day) { in uefi_time_compare()
|
| /openbmc/libpldm/include/libpldm/ |
| H A D | bios.h | 113 uint8_t day; //!< Day of the month in BCD format member 127 uint8_t day; //!< Day of the month in BCD format member 240 uint8_t *minutes, uint8_t *hours, uint8_t *day, 348 uint8_t day, uint8_t month, uint16_t year, 535 uint8_t minutes, uint8_t hours, uint8_t day, 553 uint8_t *day, uint8_t *month, uint16_t *year);
|
| /openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/ |
| H A D | tablefilter.py | 157 def __init__(self, name, title, field, day, argument 166 self.day = day 178 if self.day == self.YESTERDAY:
|
| /openbmc/phosphor-logging/test/openpower-pels/ |
| H A D | bcd_time_test.cpp | 34 EXPECT_EQ(bcd.day, 4); in TEST() 45 bcd.day = val++; in TEST() 78 EXPECT_EQ(timeInBCD.day, 0x31); in TEST()
|
| H A D | private_header_test.cpp | 37 EXPECT_EQ(ct.day, 0x09); in TEST_F() 47 EXPECT_EQ(mt.day, 0x0F); in TEST_F() 165 EXPECT_EQ(ct.day, 0x31); in TEST_F()
|
| /openbmc/openbmc/poky/meta/recipes-devtools/ruby/ruby/ |
| H A D | 0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch | 24 + Time.utc(date.utc.year, date.utc.month, date.utc.day) 26 Time.utc(date.year, date.month, date.day)
|
| /openbmc/libpldm/src/ |
| H A D | utils.c | 252 bool is_time_legal(uint8_t seconds, uint8_t minutes, uint8_t hours, uint8_t day, in is_time_legal() argument 263 if (year < 1970 || day < 1 || day > rday || seconds > 59 || in is_time_legal()
|
| /openbmc/openbmc/poky/meta/recipes-extended/at/at/ |
| H A D | 0001-remove-glibc-assumption.patch | 45 yyerror("Error in day of month"); 56 yyerror("Error in day of month");
|
| /openbmc/u-boot/arch/arm/include/asm/ |
| H A D | davinci_rtc.h | 20 unsigned int day; member
|