Lines Matching refs:rtc
40 volatile MK48T08ptr_t rtc = (MK48T08ptr_t)MVME_RTC_BASE; in rtc_ioctl() local
50 rtc->ctrl = RTC_READ; in rtc_ioctl()
52 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
53 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
54 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
55 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
56 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
57 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
60 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
61 rtc->ctrl = 0; in rtc_ioctl()
102 rtc->ctrl = RTC_WRITE; in rtc_ioctl()
104 rtc->bcd_sec = bin2bcd(sec); in rtc_ioctl()
105 rtc->bcd_min = bin2bcd(min); in rtc_ioctl()
106 rtc->bcd_hr = bin2bcd(hrs); in rtc_ioctl()
107 rtc->bcd_dom = bin2bcd(day); in rtc_ioctl()
108 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
109 rtc->bcd_year = bin2bcd(yrs%100); in rtc_ioctl()
111 rtc->ctrl = 0; in rtc_ioctl()