Lines Matching defs:year
124 sc->sc_year0 = device_getprop_uint_default(self, "start-year",
126 aprint_debug_dev(self, "using start-year %u\n", sc->sc_year0);
146 unsigned int year;
168 year = _reg_read_1(SH3_RYRCNT);
170 year = _reg_read_2(SH4_RYRCNT) & 0x00ff;
171 dt->dt_year = bcdtobin(year);
215 unsigned int year;
218 year = dt->dt_year - sc->sc_year0;
219 if (year > 99)
220 year -= 100;
222 year = bintobcd(year);
231 _reg_write_1(SH3_RYRCNT, year);
233 _reg_write_2(SH4_RYRCNT, year);