Lines Matching refs:t
40 int sun3x_hwclk(int set, struct rtc_time *t) in sun3x_hwclk() argument
50 h->sec = bin2bcd(t->tm_sec); in sun3x_hwclk()
51 h->min = bin2bcd(t->tm_min); in sun3x_hwclk()
52 h->hour = bin2bcd(t->tm_hour); in sun3x_hwclk()
53 h->wday = bin2bcd(t->tm_wday); in sun3x_hwclk()
54 h->mday = bin2bcd(t->tm_mday); in sun3x_hwclk()
55 h->month = bin2bcd(t->tm_mon + 1); in sun3x_hwclk()
56 h->year = bin2bcd(t->tm_year % 100); in sun3x_hwclk()
60 t->tm_sec = bcd2bin(h->sec); in sun3x_hwclk()
61 t->tm_min = bcd2bin(h->min); in sun3x_hwclk()
62 t->tm_hour = bcd2bin(h->hour); in sun3x_hwclk()
63 t->tm_wday = bcd2bin(h->wday); in sun3x_hwclk()
64 t->tm_mday = bcd2bin(h->mday); in sun3x_hwclk()
65 t->tm_mon = bcd2bin(h->month) - 1; in sun3x_hwclk()
66 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
68 if (t->tm_year < 70) in sun3x_hwclk()
69 t->tm_year += 100; in sun3x_hwclk()