Lines Matching refs:year
177 unsigned char ctrl, year[2];
178 struct rtc_mem mem = { CMOS_YEAR, sizeof(year), year };
199 real_year = year[0];
202 * The RTC year holds the LSB two bits of the current
203 * year, which should reflect the LSB two bits of the
204 * CMOS copy of the year. Any difference indicates
210 * RTC year wrapped. Adjust it appropriately.
214 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900;
222 unsigned char year[2], chk;
223 struct rtc_mem cmos_year = { CMOS_YEAR, sizeof(year), year };
229 * The RTC's own 2-bit year must reflect the least
230 * significant two bits of the CMOS year.
245 chk -= year[1] + year[0];
247 year[1] = proper_year / 100;
248 year[0] = proper_year % 100;
250 chk += year[1] + year[0];