Lines Matching refs:rtc_control
142 unsigned char rtc_control; in mrst_read_alarm() local
153 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm()
156 t->enabled = !!(rtc_control & RTC_AIE); in mrst_read_alarm()
162 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) in mrst_checkintr() argument
171 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in mrst_checkintr()
178 unsigned char rtc_control; in mrst_irq_enable() local
184 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable()
185 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
187 rtc_control |= mask; in mrst_irq_enable()
188 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable()
190 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
195 unsigned char rtc_control; in mrst_irq_disable() local
197 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_disable()
198 rtc_control &= ~mask; in mrst_irq_disable()
199 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_disable()
200 mrst_checkintr(mrst, rtc_control); in mrst_irq_disable()
260 unsigned char rtc_control; in mrst_procfs() local
263 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_procfs()
271 (rtc_control & RTC_PIE) ? "on" : "off", in mrst_procfs()
272 (rtc_control & RTC_AIE) ? "on" : "off"); in mrst_procfs()
317 unsigned char rtc_control; in vrtc_mrst_do_probe() local
347 rtc_control = vrtc_cmos_read(RTC_CONTROL); in vrtc_mrst_do_probe()
350 if (!(rtc_control & RTC_24H) || (rtc_control & (RTC_DM_BINARY))) in vrtc_mrst_do_probe()