Lines Matching refs:rtc_control

255 	unsigned char	rtc_control;  member
282 p->rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm_callback()
313 if (!(p.rtc_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in cmos_read_alarm()
342 t->enabled = !!(p.rtc_control & RTC_AIE); in cmos_read_alarm()
348 static void cmos_checkintr(struct cmos_rtc *cmos, unsigned char rtc_control) in cmos_checkintr() argument
360 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in cmos_checkintr()
367 unsigned char rtc_control; in cmos_irq_enable() local
372 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable()
373 cmos_checkintr(cmos, rtc_control); in cmos_irq_enable()
375 rtc_control |= mask; in cmos_irq_enable()
376 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_enable()
385 cmos_checkintr(cmos, rtc_control); in cmos_irq_enable()
390 unsigned char rtc_control; in cmos_irq_disable() local
392 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable()
393 rtc_control &= ~mask; in cmos_irq_disable()
394 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_disable()
403 cmos_checkintr(cmos, rtc_control); in cmos_irq_disable()
523 unsigned char rtc_control; in cmos_set_alarm() local
541 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm()
544 if (!(rtc_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in cmos_set_alarm()
588 unsigned char rtc_control, valid; in cmos_procfs() local
591 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_procfs()
607 (rtc_control & RTC_PIE) ? "yes" : "no", in cmos_procfs()
608 (rtc_control & RTC_UIE) ? "yes" : "no", in cmos_procfs()
611 (rtc_control & RTC_DM_BINARY) ? "no" : "yes", in cmos_procfs()
612 (rtc_control & RTC_DST_EN) ? "yes" : "no", in cmos_procfs()
702 u8 rtc_control; in cmos_interrupt() local
714 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_interrupt()
722 irqstat &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in cmos_interrupt()
732 rtc_control &= ~RTC_AIE; in cmos_interrupt()
733 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_interrupt()
759 unsigned char rtc_control; in cmos_do_probe() local
879 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_do_probe()
883 if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) { in cmos_do_probe()
994 unsigned char rtc_control; in cmos_aie_poweroff() local
1000 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_aie_poweroff()
1004 if (rtc_control & RTC_AIE) in cmos_aie_poweroff()
1126 unsigned char *rtc_control);
1202 unsigned char rtc_control = 0; in rtc_handler() local
1218 rtc_control = CMOS_READ(RTC_CONTROL); in rtc_handler()
1219 if (rtc_control & RTC_AIE) { in rtc_handler()
1221 CMOS_WRITE(rtc_control, RTC_CONTROL); in rtc_handler()
1317 unsigned char *rtc_control) in cmos_check_acpi_rtc_status() argument
1331 *rtc_control &= ~RTC_AIE; in cmos_check_acpi_rtc_status()
1332 CMOS_WRITE(*rtc_control, RTC_CONTROL); in cmos_check_acpi_rtc_status()
1345 unsigned char *rtc_control) in cmos_check_acpi_rtc_status() argument