Lines Matching refs:new_state
166 u8 new_state[TWL4030_MAX_ROWS]; in twl4030_read_kp_matrix_state() local
168 int ret = twl4030_kpread(kp, new_state, in twl4030_read_kp_matrix_state()
172 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state()
197 u16 new_state[TWL4030_MAX_ROWS]; in twl4030_kp_scan() local
201 memset(new_state, 0, sizeof(new_state)); in twl4030_kp_scan()
204 int ret = twl4030_read_kp_matrix_state(kp, new_state); in twl4030_kp_scan()
209 if (twl4030_is_in_ghost_state(kp, new_state)) in twl4030_kp_scan()
215 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan()
228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan()
234 new_state[row] & (1 << col)); in twl4030_kp_scan()
236 kp->kp_state[row] = new_state[row]; in twl4030_kp_scan()