Lines Matching full:col
150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument
158 if (col == 0xFF) in twl4030_col_xlate()
161 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate()
183 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local
185 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state()
188 check |= col; in twl4030_is_in_ghost_state()
198 int col, row; in twl4030_kp_scan() local
221 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan()
224 if (!(changed & (1 << col))) in twl4030_kp_scan()
227 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan()
231 code = MATRIX_SCAN_CODE(row, col, TWL4030_ROW_SHIFT); in twl4030_kp_scan()
234 new_state[row] & (1 << col)); in twl4030_kp_scan()