Lines Matching full:year
51 int epoch, year, ctrl; in init_rtc_epoch() local
60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
62 year = bcd2bin(year); in init_rtc_epoch()
64 /* PC-like is standard; used for year >= 70 */ in init_rtc_epoch()
66 if (year < 20) { in init_rtc_epoch()
68 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
71 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
77 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
89 int year = tm->tm_year; in alpha_rtc_read_time() local
91 if (year >= 100) in alpha_rtc_read_time()
92 year -= 100; in alpha_rtc_read_time()
93 year += rtc_epoch - 1900; in alpha_rtc_read_time()
95 if (year <= 69) in alpha_rtc_read_time()
96 year += 100; in alpha_rtc_read_time()
97 tm->tm_year = year; in alpha_rtc_read_time()