Home
last modified time | relevance | path

Searched refs:year (Results 1 – 9 of 9) sorted by relevance

/optee_os/core/drivers/rtc/
H A Drtc.c28 uint64_t year = 0; in rtc_time_to_ms() local
46 year = time->tm_year; in rtc_time_to_ms()
47 days += (year * 365) + (year / 4) - (year / 100) + (year / 400); in rtc_time_to_ms()
55 bool rtc_is_a_leap_year(uint32_t year) in rtc_is_a_leap_year() argument
57 return !(year % 4) && ((year % 100) || !(year % 400)); in rtc_is_a_leap_year()
60 uint8_t rtc_get_month_days(uint32_t month, uint32_t year) in rtc_get_month_days() argument
62 if (rtc_is_a_leap_year(year) && month == 1) in rtc_get_month_days()
/optee_os/core/include/drivers/
H A Drtc.h25 #define RTC_TIME(year, mon, mday, wday, hour, min, sec, ms) \ argument
27 .tm_year = (year), \
131 bool rtc_is_a_leap_year(uint32_t year);
140 uint8_t rtc_get_month_days(uint32_t month, uint32_t year);
290 static inline bool __noreturn rtc_is_a_leap_year(uint32_t year __unused) in rtc_is_a_leap_year()
296 uint32_t year __unused) in rtc_get_month_days()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dx509.c569 unsigned int year; in x509_date_is_valid() local
578 year = (unsigned int) t->year; in x509_date_is_valid()
579 month_days = ((year & 3) || (!(year % 100) in x509_date_is_valid()
580 && (year % 400))) in x509_date_is_valid()
589 (unsigned int) t->year > 9999 || /* (0 - 9999) */ in x509_date_is_valid()
618 tm->year = x509_parse2_int(p); in x509_parse_time()
619 if (tm->year < 0) { in x509_parse_time()
624 x = tm->year * 100; in x509_parse_time()
626 tm->year = x509_parse2_int(p); in x509_parse_time()
627 if (tm->year < 0) { in x509_parse_time()
[all …]
H A Dx509_crl.c616 crl->this_update.year, crl->this_update.mon, in mbedtls_x509_crl_info()
623 crl->next_update.year, crl->next_update.mon, in mbedtls_x509_crl_info()
644 entry->revocation_date.year, entry->revocation_date.mon, in mbedtls_x509_crl_info()
H A Dx509_crt.c1791 crt->valid_from.year, crt->valid_from.mon, in mbedtls_x509_crt_info()
1798 crt->valid_to.year, crt->valid_to.mon, in mbedtls_x509_crt_info()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dx509.h247 int year, mon, day; /**< Date. */ member
/optee_os/core/arch/arm/dts/
H A Dstm32mp131.dtsi45 /* Overdrive OPP: 10‑year life activity @100% activity rate */
53 /* Overdrive OPP: 10‑year life activity @25% activity rate */
/optee_os/lib/libmbedtls/mbedtls/
H A DLICENSE508 Copyright (C) <year> <name of author>
529 Gnomovision version 69, Copyright (C) year name of author
H A DChangeLog4101 * Fix leap year calculation in x509_date_is_valid() to ensure that invalid