Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A 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()
60 bool is_Jan_or_Feb, is_leap_year; in rtc_time64_to_tm() local
108 is_leap_year = year_of_century != 0 ? in rtc_time64_to_tm()
127 day_of_year - 306 : day_of_year + 31 + 28 + is_leap_year; in rtc_time64_to_tm()
H A Drtc-rtd119x.c51 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
H A Drtc-sunxi.c354 if (is_leap_year(year)) in sunxi_rtc_settime()
H A Drtc-ac100.c434 if (is_leap_year(year + AC100_YEAR_OFF + 1900)) in ac100_rtc_set_time()
H A Drtc-sun6i.c619 if (is_leap_year(rtc_tm->tm_year + SUN6I_YEAR_MIN)) in sun6i_rtc_settime()
H A Dinterface.c367 } while (!is_leap_year(alarm->time.tm_year + 1900) && in __rtc_read_alarm()
/linux/kernel/time/
H A Dtimeconv.c51 bool is_Jan_or_Feb, is_leap_year; in time64_to_tm() local
117 is_leap_year = year_of_century ? !(year_of_century % 4) : !(century % 4); in time64_to_tm()
133 day_of_year += is_Jan_or_Feb ? -306 : 31 + 28 + is_leap_year; in time64_to_tm()
/linux/include/linux/
H A Drtc.h223 static inline bool is_leap_year(unsigned int year) in is_leap_year() function