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