Home
last modified time | relevance | path

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

/linux-6.1.9/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()
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()
Drtc-rtd119x.c51 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.c626 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()
/linux-6.1.9/kernel/time/
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-6.1.9/include/linux/
Drtc.h222 static inline bool is_leap_year(unsigned int year) in is_leap_year() function