Lines Matching full:year
106 * The year parameter passed to the driver is usually an offset relative to
107 * the year 1900. This macro is used to convert this offset to another one
108 * relative to the minimum year allowed by the hardware.
113 * min and max year are arbitrary set considering the limited range of the
117 unsigned int min; /* min year allowed */
118 unsigned int max; /* max year allowed */
119 unsigned int mask; /* mask for the year field */
120 unsigned char leap_shift; /* bit shift to get the leap year */
333 unsigned int year; in sunxi_rtc_settime() local
337 * the SUNXI_YEAR_OFF macro to rebase it with respect to the min year in sunxi_rtc_settime()
341 year = rtc_tm->tm_year + 1900; in sunxi_rtc_settime()
342 if (year < chip->data_year->min || year > chip->data_year->max) { in sunxi_rtc_settime()
343 dev_err(dev, "rtc only supports year in range %u - %u\n", in sunxi_rtc_settime()
356 if (is_leap_year(year)) in sunxi_rtc_settime()