Lines Matching refs:ctrla
757 u8 ctrla, ctrlb, ctrld, ctrl4a, ctrl4b, ssn[8]; in ds1685_rtc_proc() local
763 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_proc()
807 ((ctrla & RTC_CTRL_A_DV1) ? "enabled" : "disabled"), in ds1685_rtc_proc()
816 ds1685_rtc_pirq_rate[(ctrla & RTC_CTRL_A_RS_MASK)] : "none"), in ds1685_rtc_proc()
818 ds1685_rtc_sqw_freq[(ctrla & RTC_CTRL_A_RS_MASK)] : "32768Hz"), in ds1685_rtc_proc()
1075 u8 ctrla, ctrlb, hours; in ds1685_rtc_probe() local
1141 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_probe()
1142 if (!(ctrla & RTC_CTRL_A_DV1)) in ds1685_rtc_probe()
1143 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_probe()
1146 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_probe()
1149 ctrla &= ~(RTC_CTRL_A_RS_MASK); in ds1685_rtc_probe()
1155 ctrla |= RTC_CTRL_A_DV0; in ds1685_rtc_probe()
1156 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_probe()
1382 u8 ctrla, ctrl4a, ctrl4b; in ds1685_rtc_poweroff() local
1404 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_poweroff()
1405 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_poweroff()
1406 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_poweroff()
1407 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_poweroff()