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