Lines Matching refs: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()
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()
94 int year = tm->tm_year; in alpha_rtc_read_time() local
96 if (year >= 100) in alpha_rtc_read_time()
97 year -= 100; in alpha_rtc_read_time()
98 year += rtc_epoch - 1900; in alpha_rtc_read_time()
100 if (year <= 69) in alpha_rtc_read_time()
101 year += 100; in alpha_rtc_read_time()
102 tm->tm_year = year; in alpha_rtc_read_time()