Lines Matching refs:year
178 unsigned char ctrl, year[2];
181 .nr = sizeof(year),
182 .data = year
205 real_year = year[0];
208 * The RTC year holds the LSB two bits of the current
209 * year, which should reflect the LSB two bits of the
210 * CMOS copy of the year. Any difference indicates
216 * RTC year wrapped. Adjust it appropriately.
220 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900;
228 unsigned char year[2], chk;
231 .nr = sizeof(year),
232 .data = year
243 * The RTC's own 2-bit year must reflect the least
244 * significant two bits of the CMOS year.
259 chk -= year[1] + year[0];
261 year[1] = proper_year / 100;
262 year[0] = proper_year % 100;
264 chk += year[1] + year[0];