Lines Matching refs:year
175 unsigned char ctrl, year[2];
178 .nr = sizeof(year),
179 .data = year
202 real_year = year[0];
205 * The RTC year holds the LSB two bits of the current
206 * year, which should reflect the LSB two bits of the
207 * CMOS copy of the year. Any difference indicates
213 * RTC year wrapped. Adjust it appropriately.
217 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900;
225 unsigned char year[2], chk;
228 .nr = sizeof(year),
229 .data = year
240 * The RTC's own 2-bit year must reflect the least
241 * significant two bits of the CMOS year.
256 chk -= year[1] + year[0];
258 year[1] = proper_year / 100;
259 year[0] = proper_year % 100;
261 chk += year[1] + year[0];