Lines Matching refs:wtime
44 struct rtc_time wtime; in rtc_ioctl() local
54 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
56 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
57 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
58 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
59 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
60 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
61 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
62 if (wtime.tm_year < 70) in rtc_ioctl()
63 wtime.tm_year += 100; in rtc_ioctl()
64 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
65 } while (wtime.tm_sec != bcd2bin(rtc->bcd_sec)); in rtc_ioctl()
68 return copy_to_user(argp, &wtime, sizeof wtime) ? in rtc_ioctl()