Lines Matching refs:ctrl2
214 unsigned char ctrl2 = rs5c->regs[RS5C_REG_CTRL2]; in rs5c372_rtc_read_time() local
222 if ((rs5c->type == rtc_r2025sd && !(ctrl2 & R2x2x_CTRL2_XSTP)) || in rs5c372_rtc_read_time()
223 (rs5c->type == rtc_r2221tl && (ctrl2 & R2x2x_CTRL2_XSTP))) { in rs5c372_rtc_read_time()
229 if (ctrl2 & RS5C_CTRL2_XSTP) { in rs5c372_rtc_read_time()
262 unsigned char ctrl2; in rs5c372_rtc_set_time() local
287 ctrl2 = i2c_smbus_read_byte_data(client, addr); in rs5c372_rtc_set_time()
293 ctrl2 &= ~(R2x2x_CTRL2_VDET | R2x2x_CTRL2_PON); in rs5c372_rtc_set_time()
295 ctrl2 |= R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time()
297 ctrl2 &= ~R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time()
300 ctrl2 &= ~RS5C_CTRL2_XSTP; in rs5c372_rtc_set_time()
304 if (i2c_smbus_write_byte_data(client, addr, ctrl2) < 0) { in rs5c372_rtc_set_time()