Lines Matching +full:start +full:- +full:year

6  * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
63 /* start timer C, div = 1:100 */ in atari_sched_init()
83 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
88 ticks = INT_TICKS - count; in atari_read_clk()
98 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
106 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
112 #define COPY(v) mste_rtc.v=val->v in mste_write()
120 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
142 int hour, year; in atari_mste_hwclk() local
153 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk()
154 val.sec_tens = t->tm_sec / 10; in atari_mste_hwclk()
155 val.min_ones = t->tm_min % 10; in atari_mste_hwclk()
156 val.min_tens = t->tm_min / 10; in atari_mste_hwclk()
157 hour = t->tm_hour; in atari_mste_hwclk()
160 hour += 20 - 12; in atari_mste_hwclk()
166 val.day_ones = t->tm_mday % 10; in atari_mste_hwclk()
167 val.day_tens = t->tm_mday / 10; in atari_mste_hwclk()
168 val.mon_ones = (t->tm_mon+1) % 10; in atari_mste_hwclk()
169 val.mon_tens = (t->tm_mon+1) / 10; in atari_mste_hwclk()
170 year = t->tm_year - 80; in atari_mste_hwclk()
171 val.year_ones = year % 10; in atari_mste_hwclk()
172 val.year_tens = year / 10; in atari_mste_hwclk()
173 val.weekday = t->tm_wday; in atari_mste_hwclk()
176 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
181 t->tm_sec = val.sec_ones + val.sec_tens * 10; in atari_mste_hwclk()
182 t->tm_min = val.min_ones + val.min_tens * 10; in atari_mste_hwclk()
186 hour -= 12; in atari_mste_hwclk()
188 hour += 12 - 20; in atari_mste_hwclk()
190 t->tm_hour = hour; in atari_mste_hwclk()
191 t->tm_mday = val.day_ones + val.day_tens * 10; in atari_mste_hwclk()
192 t->tm_mon = val.mon_ones + val.mon_tens * 10 - 1; in atari_mste_hwclk()
193 t->tm_year = val.year_ones + val.year_tens * 10 + 80; in atari_mste_hwclk()
194 t->tm_wday = val.weekday; in atari_mste_hwclk()
201 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
212 sec = t->tm_sec; in atari_tt_hwclk()
213 min = t->tm_min; in atari_tt_hwclk()
214 hour = t->tm_hour; in atari_tt_hwclk()
215 day = t->tm_mday; in atari_tt_hwclk()
216 mon = t->tm_mon + 1; in atari_tt_hwclk()
217 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
218 wday = t->tm_wday + (t->tm_wday >= 0); in atari_tt_hwclk()
224 hour -= 12; in atari_tt_hwclk()
236 year = bin2bcd(year); in atari_tt_hwclk()
269 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
278 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
298 year = bcd2bin(year); in atari_tt_hwclk()
309 t->tm_sec = sec; in atari_tt_hwclk()
310 t->tm_min = min; in atari_tt_hwclk()
311 t->tm_hour = hour; in atari_tt_hwclk()
312 t->tm_mday = day; in atari_tt_hwclk()
313 t->tm_mon = mon - 1; in atari_tt_hwclk()
314 t->tm_year = year + atari_rtc_year_offset; in atari_tt_hwclk()
315 t->tm_wday = wday - 1; in atari_tt_hwclk()