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

6  * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
62 /* start timer C, div = 1:100 */ in atari_sched_init()
82 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
87 ticks = INT_TICKS - count; in atari_read_clk()
97 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
105 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
111 #define COPY(v) mste_rtc.v=val->v in mste_write()
119 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
141 int hour, year; in atari_mste_hwclk() local
152 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk()
153 val.sec_tens = t->tm_sec / 10; in atari_mste_hwclk()
154 val.min_ones = t->tm_min % 10; in atari_mste_hwclk()
155 val.min_tens = t->tm_min / 10; in atari_mste_hwclk()
156 hour = t->tm_hour; in atari_mste_hwclk()
159 hour += 20 - 12; in atari_mste_hwclk()
165 val.day_ones = t->tm_mday % 10; in atari_mste_hwclk()
166 val.day_tens = t->tm_mday / 10; in atari_mste_hwclk()
167 val.mon_ones = (t->tm_mon+1) % 10; in atari_mste_hwclk()
168 val.mon_tens = (t->tm_mon+1) / 10; in atari_mste_hwclk()
169 year = t->tm_year - 80; in atari_mste_hwclk()
170 val.year_ones = year % 10; in atari_mste_hwclk()
171 val.year_tens = year / 10; in atari_mste_hwclk()
172 val.weekday = t->tm_wday; in atari_mste_hwclk()
175 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
180 t->tm_sec = val.sec_ones + val.sec_tens * 10; in atari_mste_hwclk()
181 t->tm_min = val.min_ones + val.min_tens * 10; in atari_mste_hwclk()
185 hour -= 12; in atari_mste_hwclk()
187 hour += 12 - 20; in atari_mste_hwclk()
189 t->tm_hour = hour; in atari_mste_hwclk()
190 t->tm_mday = val.day_ones + val.day_tens * 10; in atari_mste_hwclk()
191 t->tm_mon = val.mon_ones + val.mon_tens * 10 - 1; in atari_mste_hwclk()
192 t->tm_year = val.year_ones + val.year_tens * 10 + 80; in atari_mste_hwclk()
193 t->tm_wday = val.weekday; in atari_mste_hwclk()
200 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
211 sec = t->tm_sec; in atari_tt_hwclk()
212 min = t->tm_min; in atari_tt_hwclk()
213 hour = t->tm_hour; in atari_tt_hwclk()
214 day = t->tm_mday; in atari_tt_hwclk()
215 mon = t->tm_mon + 1; in atari_tt_hwclk()
216 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
217 wday = t->tm_wday + (t->tm_wday >= 0); in atari_tt_hwclk()
223 hour -= 12; in atari_tt_hwclk()
235 year = bin2bcd(year); in atari_tt_hwclk()
268 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
277 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
297 year = bcd2bin(year); in atari_tt_hwclk()
308 t->tm_sec = sec; in atari_tt_hwclk()
309 t->tm_min = min; in atari_tt_hwclk()
310 t->tm_hour = hour; in atari_tt_hwclk()
311 t->tm_mday = day; in atari_tt_hwclk()
312 t->tm_mon = mon - 1; in atari_tt_hwclk()
313 t->tm_year = year + atari_rtc_year_offset; in atari_tt_hwclk()
314 t->tm_wday = wday - 1; in atari_tt_hwclk()
322 * c-indent-level: 4
323 * tab-width: 8