Lines Matching refs:ctrl2
106 int ctrl2; in rx8025_check_validity() local
108 ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_check_validity()
109 if (ctrl2 < 0) in rx8025_check_validity()
110 return ctrl2; in rx8025_check_validity()
112 if (ctrl2 & RX8025_BIT_CTRL2_VDET) in rx8025_check_validity()
115 if (ctrl2 & RX8025_BIT_CTRL2_PON) { in rx8025_check_validity()
120 if (!(ctrl2 & RX8025_BIT_CTRL2_XST)) { in rx8025_check_validity()
130 int ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_reset_validity() local
132 if (ctrl2 < 0) in rx8025_reset_validity()
133 return ctrl2; in rx8025_reset_validity()
135 ctrl2 &= ~(RX8025_BIT_CTRL2_PON | RX8025_BIT_CTRL2_VDET); in rx8025_reset_validity()
138 ctrl2 | RX8025_BIT_CTRL2_XST); in rx8025_reset_validity()
251 u8 ctrl[2], ctrl2; in rx8025_init_client() local
271 ctrl2 = ctrl[1]; in rx8025_init_client()
272 ctrl2 &= ~(RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | in rx8025_init_client()
275 err = rx8025_write_reg(client, RX8025_REG_CTRL2, ctrl2); in rx8025_init_client()
287 int ctrl2, err; in rx8025_read_alarm() local
296 ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_read_alarm()
297 if (ctrl2 < 0) in rx8025_read_alarm()
298 return ctrl2; in rx8025_read_alarm()
301 __func__, ald[0], ald[1], ctrl2); in rx8025_read_alarm()
314 t->pending = (ctrl2 & RX8025_BIT_CTRL2_DAFG) && t->enabled; in rx8025_read_alarm()