Lines Matching refs:ctrla
726 u8 ctrla, ctrlb, ctrlc, ctrld, ctrl4a, ctrl4b, ssn[8]; in ds1685_rtc_proc() local
732 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_proc()
777 ((ctrla & RTC_CTRL_A_DV1) ? "enabled" : "disabled"), in ds1685_rtc_proc()
786 ds1685_rtc_pirq_rate[(ctrla & RTC_CTRL_A_RS_MASK)] : "none"), in ds1685_rtc_proc()
788 ds1685_rtc_sqw_freq[(ctrla & RTC_CTRL_A_RS_MASK)] : "32768Hz"), in ds1685_rtc_proc()
1046 u8 ctrla, ctrlb, hours; in ds1685_rtc_probe() local
1136 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_probe()
1137 if (!(ctrla & RTC_CTRL_A_DV1)) in ds1685_rtc_probe()
1138 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_probe()
1141 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_probe()
1144 ctrla &= ~(RTC_CTRL_A_RS_MASK); in ds1685_rtc_probe()
1150 ctrla |= RTC_CTRL_A_DV0; in ds1685_rtc_probe()
1151 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_probe()
1378 u8 ctrla, ctrl4a, ctrl4b; in ds1685_rtc_poweroff() local
1400 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_poweroff()
1401 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_poweroff()
1402 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_poweroff()
1403 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_poweroff()