Lines Matching refs:rtc_control
147 unsigned char rtc_control; in mrst_read_alarm() local
166 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm()
169 t->enabled = !!(rtc_control & RTC_AIE); in mrst_read_alarm()
175 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) in mrst_checkintr() argument
184 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in mrst_checkintr()
191 unsigned char rtc_control; in mrst_irq_enable() local
197 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable()
198 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
200 rtc_control |= mask; in mrst_irq_enable()
201 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable()
203 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
208 unsigned char rtc_control; in mrst_irq_disable() local
210 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_disable()
211 rtc_control &= ~mask; in mrst_irq_disable()
212 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_disable()
213 mrst_checkintr(mrst, rtc_control); in mrst_irq_disable()
273 unsigned char rtc_control, valid; in mrst_procfs() local
276 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_procfs()
285 (rtc_control & RTC_PIE) ? "on" : "off", in mrst_procfs()
286 (rtc_control & RTC_AIE) ? "on" : "off"); in mrst_procfs()
331 unsigned char rtc_control; in vrtc_mrst_do_probe() local
363 rtc_control = vrtc_cmos_read(RTC_CONTROL); in vrtc_mrst_do_probe()
366 if (!(rtc_control & RTC_24H) || (rtc_control & (RTC_DM_BINARY))) in vrtc_mrst_do_probe()