• Home
  • Raw
  • Download

Lines Matching refs:t

200 static int hp300_hwclk(int op, struct rtc_time *t)  in hp300_hwclk()  argument
203 t->tm_sec = hp300_rtc_read(RTC_REG_SEC1) * 10 + in hp300_hwclk()
205 t->tm_min = hp300_rtc_read(RTC_REG_MIN1) * 10 + in hp300_hwclk()
207 t->tm_hour = (hp300_rtc_read(RTC_REG_HOUR1) & 3) * 10 + in hp300_hwclk()
209 t->tm_wday = -1; in hp300_hwclk()
210 t->tm_mday = hp300_rtc_read(RTC_REG_DAY1) * 10 + in hp300_hwclk()
212 t->tm_mon = hp300_rtc_read(RTC_REG_MON1) * 10 + in hp300_hwclk()
214 t->tm_year = hp300_rtc_read(RTC_REG_YEAR1) * 10 + in hp300_hwclk()
216 if (t->tm_year <= 69) in hp300_hwclk()
217 t->tm_year += 100; in hp300_hwclk()
219 hp300_rtc_write(RTC_REG_SEC1, t->tm_sec / 10); in hp300_hwclk()
220 hp300_rtc_write(RTC_REG_SEC2, t->tm_sec % 10); in hp300_hwclk()
221 hp300_rtc_write(RTC_REG_MIN1, t->tm_min / 10); in hp300_hwclk()
222 hp300_rtc_write(RTC_REG_MIN2, t->tm_min % 10); in hp300_hwclk()
224 ((t->tm_hour / 10) & 3) | RTC_HOUR1_24HMODE); in hp300_hwclk()
225 hp300_rtc_write(RTC_REG_HOUR2, t->tm_hour % 10); in hp300_hwclk()
226 hp300_rtc_write(RTC_REG_DAY1, t->tm_mday / 10); in hp300_hwclk()
227 hp300_rtc_write(RTC_REG_DAY2, t->tm_mday % 10); in hp300_hwclk()
228 hp300_rtc_write(RTC_REG_MON1, (t->tm_mon + 1) / 10); in hp300_hwclk()
229 hp300_rtc_write(RTC_REG_MON2, (t->tm_mon + 1) % 10); in hp300_hwclk()
230 if (t->tm_year >= 100) in hp300_hwclk()
231 t->tm_year -= 100; in hp300_hwclk()
232 hp300_rtc_write(RTC_REG_YEAR1, t->tm_year / 10); in hp300_hwclk()
233 hp300_rtc_write(RTC_REG_YEAR2, t->tm_year % 10); in hp300_hwclk()