Lines Matching refs:col
163 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument
170 if (col == 0xFF) in twl4030_col_xlate()
173 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate()
195 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local
197 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state()
200 check |= col; in twl4030_is_in_ghost_state()
210 int col, row; in twl4030_kp_scan() local
233 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan()
236 if (!(changed & (1 << col))) in twl4030_kp_scan()
239 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
240 (new_state[row] & (1 << col)) ? in twl4030_kp_scan()
243 code = MATRIX_SCAN_CODE(row, col, TWL4030_ROW_SHIFT); in twl4030_kp_scan()
246 new_state[row] & (1 << col)); in twl4030_kp_scan()