Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/u-boot/drivers/rtc/
H A Drtc-lib.c26 static int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
28 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
40 unsigned int month, year, secs; in rtc_to_tm() local
59 for (month = 0; month < 11; month++) { in rtc_to_tm()
62 newdays = days - rtc_month_days(month, year); in rtc_to_tm()
67 tm->tm_mon = month + 1; /* January = 1 */ in rtc_to_tm()
H A Dm41t60.c88 uchar min, date, month, years; in rtc_validate() local
113 month = data[RTC_MONTH] & 0x3F; in rtc_validate()
119 0x12 < month || in rtc_validate()
121 daysInMonth[month] < date || 0x09 < (date & 0x0F) || 0x00 == date || in rtc_validate()
122 (0x29 == date && 0x02 == month && in rtc_validate()
H A Dm48t35ax.c26 uchar sec, min, hour, cent_day, date, month, year; in rtc_get() local
39 month = rtc_read (0x6); in rtc_get()
49 year, month, date, cent_day, in rtc_get()
56 tmp->tm_mon = bcd2bin (month & 0x1F); in rtc_get()
H A Ddavinci.c31 mon_cent = readl(&rtc->month); in rtc_get()
64 writel(bin2bcd(tmp->tm_mon), &rtc->month); in rtc_set()
H A Dds1302.c64 unsigned char month:4; member
275 tmp->tm_mon=10*bbclk.month10+bbclk.month; in rtc_get()
318 bbclk.month=tmp->tm_mon%10; in rtc_set()
/openbmc/libpldm/src/
H A Dutils.c6 static int day_map(uint8_t month) in day_map() argument
8 switch (month) { in day_map()
38 uint8_t month, uint16_t year) in is_time_legal() argument
40 if (month < 1 || month > 12) { in is_time_legal()
43 int rday = day_map(month); in is_time_legal()
44 if (month == 2 && in is_time_legal()
H A Dutils.h33 uint8_t month, uint16_t year);
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_bios_test.cpp35 uint8_t month = 0; in TEST() local
38 epochToBCDTime(epochTime, seconds, minutes, hours, day, month, year); in TEST()
44 ASSERT_EQ(0x4, month); in TEST()
56 uint8_t month = 4; in TEST() local
60 timeSec = timeToEpoch(sec, min, hours, day, month, year); in TEST()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dbcd_time.hpp18 uint8_t month; 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 Dbcd_time.cpp18 (month == right.month) && (day == right.day) && in operator ==()
40 bcd.month = toBCD(gmTime->tm_mon + 1); in getBCDTime()
67 utcTime.tm_mon = fromBCD(bcdTime.month) - 1; 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/bmcweb/redfish-core/include/utils/extern/
H A Ddate.h227 class month; variable
248 CONSTCD11 year_month operator/(const year& y, const month& m) NOEXCEPT;
251 CONSTCD11 month_day operator/(const day& d, const month& m) NOEXCEPT;
253 CONSTCD11 month_day operator/(const month& m, const day& d) NOEXCEPT;
254 CONSTCD11 month_day operator/(const month& m, int d) NOEXCEPT;
257 CONSTCD11 month_day_last operator/(const month& m, last_spec) NOEXCEPT;
259 CONSTCD11 month_day_last operator/(last_spec, const month& m) NOEXCEPT;
262 CONSTCD11 month_weekday operator/(const month& m, const weekday_indexed& wdi) NOEXCEPT;
264 CONSTCD11 month_weekday operator/(const weekday_indexed& wdi, const month& m) NOEXCEPT;
267 CONSTCD11 month_weekday_last operator/(const month& m, const weekday_last& wdl) NOEXCEPT;
[all …]
/openbmc/u-boot/board/compulab/common/
H A Deeprom.c286 static int validate_date(unsigned char day, unsigned char month, in validate_date() argument
291 switch (month) { in validate_date()
363 unsigned char month; in eeprom_field_update_date() local
364 for (month = 1; month <= 12; month++) in eeprom_field_update_date()
365 if (!strcmp(tok2, months[month - 1])) in eeprom_field_update_date()
374 if (validate_date(day, month - 1, year)) { in eeprom_field_update_date()
385 field->buf[1] = month; in eeprom_field_update_date()
/openbmc/pldm/libpldmresponder/
H A Dbios.cpp32 uint8_t& hours, uint8_t& day, uint8_t& month, in epochToBCDTime() argument
42 month = pldm::utils::decimalToBcd( in epochToBCDTime()
50 uint8_t day, uint8_t month, uint16_t year) in timeToEpoch() argument
55 stm.tm_mon = month - 1; in timeToEpoch()
123 uint8_t month = 0; in getDateTime() local
150 day, month, year); in getDateTime()
153 seconds, minutes, hours, day, month, in getDateTime()
169 uint8_t month = 0; in setDateTime() local
201 &minutes, &hours, &day, &month, &year); in setDateTime()
207 month, year); in setDateTime()
H A Dbios.hpp126 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 Dbios.c29 uint8_t day, uint8_t month, uint16_t year, in encode_get_date_time_resp() argument
56 response->month = month; in encode_get_date_time_resp()
66 uint8_t *month, uint16_t *year) in decode_get_date_time_resp() argument
69 hours == NULL || day == NULL || month == NULL || year == NULL || in decode_get_date_time_resp()
90 *month = response->month; in decode_get_date_time_resp()
99 uint8_t month, uint16_t year, struct pldm_msg *msg, in encode_set_date_time_req() argument
109 if (!is_time_legal(seconds, minutes, hours, day, month, year)) { in encode_set_date_time_req()
130 request->month = pldm_bcd_dec2bcd8(month); in encode_set_date_time_req()
139 uint8_t *day, uint8_t *month, uint16_t *year) in decode_set_date_time_req() argument
142 hours == NULL || day == NULL || month == NULL || year == NULL) { in decode_set_date_time_req()
[all …]
/openbmc/libpldm/tests/dsp/
H A Dbios.cpp30 uint8_t month = 11; in TEST() local
40 hours, day, month, year, response); in TEST()
59 &month, sizeof(month))); in TEST()
63 sizeof(day) + sizeof(month), in TEST()
77 uint8_t month = 7; in TEST() local
101 &month, sizeof(month)); in TEST()
103 sizeof(minutes) + sizeof(hours) + sizeof(day) + sizeof(month) + in TEST()
119 EXPECT_EQ(month, retMonth); in TEST()
212 uint8_t month = 11; in TEST() local
221 month, year, request, in TEST()
[all …]
/openbmc/openbmc-tools/tof-voters/libvoters/
H A Dtime.py12 [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 Dvar-service-utils.c140 if (a->month < b->month) { in uefi_time_compare()
143 if (a->month > b->month) { in uefi_time_compare()
/openbmc/libpldm/include/libpldm/
H A Dbios.h122 uint8_t day; //!< Day of the month in BCD format
123 uint8_t month; //!< Month in BCD format
136 uint8_t day; //!< Day of the month in BCD format
137 uint8_t month; //!< Month in BCD format
242 * @param[out] day - day of month in BCD format
243 * @param[out] month - number of month in BCD format
250 uint8_t *month, uint16_t *year);
346 * @param[in] day - day of the month in BCD format
347 * @param[in] month
114 uint8_t month; //!< Month in BCD format global() member
128 uint8_t month; //!< Month in BCD format global() member
[all...]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dbcd_time_test.cpp33 EXPECT_EQ(bcd.month, 3); in TEST()
44 bcd.month = val++; in TEST()
77 EXPECT_EQ(timeInBCD.month, 0x12); in TEST()
H A Dprivate_header_test.cpp36 EXPECT_EQ(ct.month, 0x05); in TEST_F()
46 EXPECT_EQ(mt.month, 0x06); in TEST_F()
164 EXPECT_EQ(ct.month, 0x12); in TEST_F()
/openbmc/openbmc/poky/meta/recipes-devtools/ruby/ruby/
H A D0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch24 + Time.utc(date.utc.year, date.utc.month, date.utc.day)
26 Time.utc(date.year, date.month, date.day)
/openbmc/openbmc/poky/meta/recipes-extended/at/at/
H A D0001-remove-glibc-assumption.patch45 yyerror("Error in day of month");
56 yyerror("Error in day of month");
/openbmc/u-boot/arch/arm/include/asm/
H A Ddavinci_rtc.h21 unsigned int month; /* 0x10 */ member
/openbmc/phosphor-webui/app/common/filters/
H A Dindex.js47 month: 'short', property in AnonymousClass2fc0db500901

1234