Lines Matching refs:rtc
31 struct s3c24x0_rtc *rtc = s3c24x0_get_base_rtc(); in SetRTC_Access() local
35 writeb(readb(&rtc->rtccon) | 0x01, &rtc->rtccon); in SetRTC_Access()
39 writeb(readb(&rtc->rtccon) & ~0x01, &rtc->rtccon); in SetRTC_Access()
48 struct s3c24x0_rtc *rtc = s3c24x0_get_base_rtc(); in rtc_get() local
58 sec = readb(&rtc->bcdsec); in rtc_get()
59 min = readb(&rtc->bcdmin); in rtc_get()
60 hour = readb(&rtc->bcdhour); in rtc_get()
61 mday = readb(&rtc->bcddate); in rtc_get()
62 wday = readb(&rtc->bcdday); in rtc_get()
63 mon = readb(&rtc->bcdmon); in rtc_get()
64 year = readb(&rtc->bcdyear); in rtc_get()
65 } while (sec != readb(&rtc->bcdsec)); in rtc_get()
68 a_sec = readb(&rtc->almsec); in rtc_get()
69 a_min = readb(&rtc->almmin); in rtc_get()
70 a_hour = readb(&rtc->almhour); in rtc_get()
71 a_date = readb(&rtc->almdate); in rtc_get()
72 a_mon = readb(&rtc->almmon); in rtc_get()
73 a_year = readb(&rtc->almyear); in rtc_get()
74 a_armed = readb(&rtc->rtcalm); in rtc_get()
112 struct s3c24x0_rtc *rtc = s3c24x0_get_base_rtc(); in rtc_set() local
132 writeb(sec, &rtc->bcdsec); in rtc_set()
133 writeb(min, &rtc->bcdmin); in rtc_set()
134 writeb(hour, &rtc->bcdhour); in rtc_set()
135 writeb(mday, &rtc->bcddate); in rtc_set()
136 writeb(wday, &rtc->bcdday); in rtc_set()
137 writeb(mon, &rtc->bcdmon); in rtc_set()
138 writeb(year, &rtc->bcdyear); in rtc_set()
148 struct s3c24x0_rtc *rtc = s3c24x0_get_base_rtc(); in rtc_reset() local
150 writeb((readb(&rtc->rtccon) & ~0x06) | 0x08, &rtc->rtccon); in rtc_reset()
151 writeb(readb(&rtc->rtccon) & ~(0x08 | 0x01), &rtc->rtccon); in rtc_reset()