Lines Matching refs:rtc_control
146 unsigned char rtc_control; in mrst_read_alarm() local
157 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm()
160 t->enabled = !!(rtc_control & RTC_AIE); in mrst_read_alarm()
166 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) in mrst_checkintr() argument
175 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in mrst_checkintr()
182 unsigned char rtc_control; in mrst_irq_enable() local
188 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable()
189 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
191 rtc_control |= mask; in mrst_irq_enable()
192 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable()
194 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
199 unsigned char rtc_control; in mrst_irq_disable() local
201 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_disable()
202 rtc_control &= ~mask; in mrst_irq_disable()
203 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_disable()
204 mrst_checkintr(mrst, rtc_control); in mrst_irq_disable()
264 unsigned char rtc_control, valid; in mrst_procfs() local
267 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_procfs()
276 (rtc_control & RTC_PIE) ? "on" : "off", in mrst_procfs()
277 (rtc_control & RTC_AIE) ? "on" : "off"); in mrst_procfs()
322 unsigned char rtc_control; in vrtc_mrst_do_probe() local
352 rtc_control = vrtc_cmos_read(RTC_CONTROL); in vrtc_mrst_do_probe()
355 if (!(rtc_control & RTC_24H) || (rtc_control & (RTC_DM_BINARY))) in vrtc_mrst_do_probe()