Searched refs:wtime (Results 1 - 3 of 3) sorted by relevance

/arch/parisc/include/asm/
H A Drtc.h47 static inline unsigned int get_rtc_time(struct rtc_time *wtime) argument
53 memset(wtime, 0, sizeof(*wtime));
66 wtime->tm_hour = rem / SECS_PER_HOUR;
68 wtime->tm_min = rem / 60;
69 wtime->tm_sec = rem % 60;
87 wtime->tm_year = y - 1900;
93 wtime->tm_mon = y;
94 wtime->tm_mday = days + 1;
99 static int set_rtc_time(struct rtc_time *wtime) argument
[all...]
/arch/m68k/bvme6000/
H A Drtc.c43 struct rtc_time wtime; local
53 memset(&wtime, 0, sizeof(struct rtc_time));
55 wtime.tm_sec = bcd2bin(rtc->bcd_sec);
56 wtime.tm_min = bcd2bin(rtc->bcd_min);
57 wtime.tm_hour = bcd2bin(rtc->bcd_hr);
58 wtime.tm_mday = bcd2bin(rtc->bcd_dom);
59 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1;
60 wtime.tm_year = bcd2bin(rtc->bcd_year);
61 if (wtime.tm_year < 70)
62 wtime
[all...]
/arch/m68k/mvme16x/
H A Drtc.c41 struct rtc_time wtime; local
50 memset(&wtime, 0, sizeof(struct rtc_time));
51 wtime.tm_sec = bcd2bin(rtc->bcd_sec);
52 wtime.tm_min = bcd2bin(rtc->bcd_min);
53 wtime.tm_hour = bcd2bin(rtc->bcd_hr);
54 wtime.tm_mday = bcd2bin(rtc->bcd_dom);
55 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1;
56 wtime.tm_year = bcd2bin(rtc->bcd_year);
57 if (wtime.tm_year < 70)
58 wtime
[all...]

Completed in 143 milliseconds