Searched refs:is_leap_year (Results 1 – 8 of 8) sorted by relevance
32 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()
52 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm()
356 if (is_leap_year(year)) in sunxi_rtc_settime()
434 if (is_leap_year(year + AC100_YEAR_OFF + 1900)) in ac100_rtc_set_time()
577 if (is_leap_year(rtc_tm->tm_year + SUN6I_YEAR_MIN)) in sun6i_rtc_settime()
368 } while (!is_leap_year(alarm->time.tm_year + 1900) && in __rtc_read_alarm()
203 static inline bool is_leap_year(unsigned int year) in is_leap_year() function