Lines Matching refs:t

204 static int hp300_hwclk(int op, struct rtc_time *t)  in hp300_hwclk()  argument
207 t->tm_sec = hp300_rtc_read(RTC_REG_SEC1) * 10 + in hp300_hwclk()
209 t->tm_min = hp300_rtc_read(RTC_REG_MIN1) * 10 + in hp300_hwclk()
211 t->tm_hour = (hp300_rtc_read(RTC_REG_HOUR1) & 3) * 10 + in hp300_hwclk()
213 t->tm_wday = -1; in hp300_hwclk()
214 t->tm_mday = hp300_rtc_read(RTC_REG_DAY1) * 10 + in hp300_hwclk()
216 t->tm_mon = hp300_rtc_read(RTC_REG_MON1) * 10 + in hp300_hwclk()
218 t->tm_year = hp300_rtc_read(RTC_REG_YEAR1) * 10 + in hp300_hwclk()
220 if (t->tm_year <= 69) in hp300_hwclk()
221 t->tm_year += 100; in hp300_hwclk()
223 hp300_rtc_write(RTC_REG_SEC1, t->tm_sec / 10); in hp300_hwclk()
224 hp300_rtc_write(RTC_REG_SEC2, t->tm_sec % 10); in hp300_hwclk()
225 hp300_rtc_write(RTC_REG_MIN1, t->tm_min / 10); in hp300_hwclk()
226 hp300_rtc_write(RTC_REG_MIN2, t->tm_min % 10); in hp300_hwclk()
228 ((t->tm_hour / 10) & 3) | RTC_HOUR1_24HMODE); in hp300_hwclk()
229 hp300_rtc_write(RTC_REG_HOUR2, t->tm_hour % 10); in hp300_hwclk()
230 hp300_rtc_write(RTC_REG_DAY1, t->tm_mday / 10); in hp300_hwclk()
231 hp300_rtc_write(RTC_REG_DAY2, t->tm_mday % 10); in hp300_hwclk()
232 hp300_rtc_write(RTC_REG_MON1, (t->tm_mon + 1) / 10); in hp300_hwclk()
233 hp300_rtc_write(RTC_REG_MON2, (t->tm_mon + 1) % 10); in hp300_hwclk()
234 if (t->tm_year >= 100) in hp300_hwclk()
235 t->tm_year -= 100; in hp300_hwclk()
236 hp300_rtc_write(RTC_REG_YEAR1, t->tm_year / 10); in hp300_hwclk()
237 hp300_rtc_write(RTC_REG_YEAR2, t->tm_year % 10); in hp300_hwclk()