Lines Matching refs:ctrla
803 u8 ctrla, ctrlb, ctrlc, ctrld, ctrl4a, ctrl4b, ssn[8]; in ds1685_rtc_proc() local
812 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_proc()
878 ((ctrla & RTC_CTRL_A_DV1) ? "enabled" : "disabled"), in ds1685_rtc_proc()
887 ds1685_rtc_pirq_rate[(ctrla & RTC_CTRL_A_RS_MASK)] : "none"), in ds1685_rtc_proc()
889 ds1685_rtc_sqw_freq[(ctrla & RTC_CTRL_A_RS_MASK)] : "32768Hz"), in ds1685_rtc_proc()
892 ds1685_rtc_print_regs(ctrla, bits[0]), in ds1685_rtc_proc()
1832 u8 ctrla, ctrlb, hours; in ds1685_rtc_probe() local
1918 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_probe()
1919 if (!(ctrla & RTC_CTRL_A_DV1)) in ds1685_rtc_probe()
1920 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_probe()
1923 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_probe()
1926 ctrla &= ~(RTC_CTRL_A_RS_MASK); in ds1685_rtc_probe()
1932 ctrla |= RTC_CTRL_A_DV0; in ds1685_rtc_probe()
1933 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_probe()
2162 u8 ctrla, ctrl4a, ctrl4b; in ds1685_rtc_poweroff() local
2183 ctrla = rtc->read(rtc, RTC_CTRL_A); in ds1685_rtc_poweroff()
2184 ctrla |= RTC_CTRL_A_DV1; in ds1685_rtc_poweroff()
2185 ctrla &= ~(RTC_CTRL_A_DV2); in ds1685_rtc_poweroff()
2186 rtc->write(rtc, RTC_CTRL_A, ctrla); in ds1685_rtc_poweroff()