Home
last modified time | relevance | path

Searched refs:is_leap_year (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/rtc/
Dlib.c32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()
66 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
Drtc-rtd119x.c52 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
Drtc-mcp795.c279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm()
Drtc-sunxi.c356 if (is_leap_year(year)) in sunxi_rtc_settime()
Drtc-ac100.c434 if (is_leap_year(year + AC100_YEAR_OFF + 1900)) in ac100_rtc_set_time()
Drtc-sun6i.c577 if (is_leap_year(rtc_tm->tm_year + SUN6I_YEAR_MIN)) in sun6i_rtc_settime()
Dinterface.c368 } while (!is_leap_year(alarm->time.tm_year + 1900) && in __rtc_read_alarm()
/kernel/linux/linux-5.10/include/linux/
Drtc.h203 static inline bool is_leap_year(unsigned int year) in is_leap_year() function