Lines Matching refs:col
49 int col, bool on) in __activate_col() argument
54 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col()
56 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col()
57 gpio_direction_input(pdata->col_gpios[col]); in __activate_col()
62 int col, bool on) in activate_col() argument
64 __activate_col(pdata, col, on); in activate_col()
73 int col; in activate_all_cols() local
75 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols()
76 __activate_col(pdata, col, on); in activate_all_cols()
122 int row, col, code; in matrix_keypad_scan() local
130 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
132 activate_col(pdata, col, true); in matrix_keypad_scan()
135 new_state[col] |= in matrix_keypad_scan()
138 activate_col(pdata, col, false); in matrix_keypad_scan()
141 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
144 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan()
152 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in matrix_keypad_scan()
156 new_state[col] & (1 << row)); in matrix_keypad_scan()