Lines Matching refs:ctrl4a
569 u8 ctrl4a, ctrl4b; in ds1685_rtc_extended_irq() local
572 ctrl4a = rtc->read(rtc, RTC_EXT_CTRL_4A); in ds1685_rtc_extended_irq()
580 if ((ctrl4b & RTC_CTRL_4B_KSE) && (ctrl4a & RTC_CTRL_4A_KF)) { in ds1685_rtc_extended_irq()
588 (ctrl4a & ~(RTC_CTRL_4A_KF))); in ds1685_rtc_extended_irq()
614 if ((ctrl4b & RTC_CTRL_4B_WIE) && (ctrl4a & RTC_CTRL_4A_WF)) { in ds1685_rtc_extended_irq()
616 (ctrl4a & ~(RTC_CTRL_4A_WF))); in ds1685_rtc_extended_irq()
636 if ((ctrl4b & RTC_CTRL_4B_RIE) && (ctrl4a & RTC_CTRL_4A_RF)) { in ds1685_rtc_extended_irq()
638 (ctrl4a & ~(RTC_CTRL_4A_RF))); in ds1685_rtc_extended_irq()
757 u8 ctrla, ctrlb, ctrld, ctrl4a, ctrl4b, ssn[8]; in ds1685_rtc_proc() local
766 ctrl4a = rtc->read(rtc, RTC_EXT_CTRL_4A); in ds1685_rtc_proc()
812 ((ctrl4a & RTC_CTRL_4A_VRT2) ? "ok" : "exhausted or n/a"), in ds1685_rtc_proc()
1010 u8 ctrl4a; in ds1685_rtc_sysfs_auxbatt_show() local
1013 ctrl4a = rtc->read(rtc, RTC_EXT_CTRL_4A); in ds1685_rtc_sysfs_auxbatt_show()
1017 (ctrl4a & RTC_CTRL_4A_VRT2) ? "ok" : "not ok or N/A"); in ds1685_rtc_sysfs_auxbatt_show()
1382 u8 ctrla, ctrl4a, ctrl4b; in ds1685_rtc_poweroff() local
1415 ctrl4a = rtc->read(rtc, RTC_EXT_CTRL_4A); in ds1685_rtc_poweroff()
1416 if (ctrl4a & RTC_CTRL_4A_VRT2) { in ds1685_rtc_poweroff()
1418 ctrl4a &= ~(RTC_CTRL_4A_RWK_MASK); in ds1685_rtc_poweroff()
1419 rtc->write(rtc, RTC_EXT_CTRL_4A, ctrl4a); in ds1685_rtc_poweroff()
1437 (ctrl4a | RTC_CTRL_4A_PAB)); in ds1685_rtc_poweroff()