Lines Matching refs:old_state
206 u16 *old_state) in pmic8xxx_kp_read_matrix() argument
218 if (old_state) { in pmic8xxx_kp_read_matrix()
219 rc = pmic8xxx_kp_read_data(kp, old_state, KEYP_OLD_DATA, in pmic8xxx_kp_read_matrix()
254 u16 *old_state) in __pmic8xxx_kp_scan_matrix() argument
259 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix()
311 u16 old_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local
327 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
331 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
332 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
337 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
340 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
341 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
364 u16 old_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_stuck_irq() local
368 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_stuck_irq()