Lines Matching refs:t
210 static int q40_hwclk(int op, struct rtc_time *t) in q40_hwclk() argument
216 Q40_RTC_SECS = bin2bcd(t->tm_sec); in q40_hwclk()
217 Q40_RTC_MINS = bin2bcd(t->tm_min); in q40_hwclk()
218 Q40_RTC_HOUR = bin2bcd(t->tm_hour); in q40_hwclk()
219 Q40_RTC_DATE = bin2bcd(t->tm_mday); in q40_hwclk()
220 Q40_RTC_MNTH = bin2bcd(t->tm_mon + 1); in q40_hwclk()
221 Q40_RTC_YEAR = bin2bcd(t->tm_year%100); in q40_hwclk()
222 if (t->tm_wday >= 0) in q40_hwclk()
223 Q40_RTC_DOW = bin2bcd(t->tm_wday+1); in q40_hwclk()
230 t->tm_year = bcd2bin (Q40_RTC_YEAR); in q40_hwclk()
231 t->tm_mon = bcd2bin (Q40_RTC_MNTH)-1; in q40_hwclk()
232 t->tm_mday = bcd2bin (Q40_RTC_DATE); in q40_hwclk()
233 t->tm_hour = bcd2bin (Q40_RTC_HOUR); in q40_hwclk()
234 t->tm_min = bcd2bin (Q40_RTC_MINS); in q40_hwclk()
235 t->tm_sec = bcd2bin (Q40_RTC_SECS); in q40_hwclk()
239 if (t->tm_year < 70) in q40_hwclk()
240 t->tm_year += 100; in q40_hwclk()
241 t->tm_wday = bcd2bin(Q40_RTC_DOW)-1; in q40_hwclk()