Lines Matching refs:save_control
263 u8 save_control; in twl_rtc_read_time() local
266 ret = twl_rtc_read_u8(twl_rtc, &save_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
273 if (save_control & BIT_RTC_CTRL_REG_GET_TIME_M) { in twl_rtc_read_time()
274 save_control &= ~BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
275 ret = twl_rtc_write_u8(twl_rtc, save_control, in twl_rtc_read_time()
286 rtc_control = save_control | BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
308 ret = twl_rtc_write_u8(twl_rtc, save_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
329 unsigned char save_control; in twl_rtc_set_time() local
341 ret = twl_rtc_read_u8(twl_rtc, &save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
345 save_control &= ~BIT_RTC_CTRL_REG_STOP_RTC_M; in twl_rtc_set_time()
346 ret = twl_rtc_write_u8(twl_rtc, save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
359 save_control |= BIT_RTC_CTRL_REG_STOP_RTC_M; in twl_rtc_set_time()
360 ret = twl_rtc_write_u8(twl_rtc, save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()