Lines Matching refs:col
82 int col; in imx_keypad_scan_matrix() local
85 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix()
86 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix()
114 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix()
128 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix()
148 int row, col; in imx_keypad_fire_events() local
150 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events()
154 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events()
157 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events()
158 matrix_volatile_state[col]; in imx_keypad_fire_events()
169 code = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT); in imx_keypad_fire_events()
172 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
175 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
422 int irq, error, i, row, col; in imx_keypad_probe() local
475 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_probe()
476 i = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT); in imx_keypad_probe()
479 keypad->cols_en_mask |= 1 << col; in imx_keypad_probe()