Lines Matching full:col
48 int col, bool on) in __activate_col() argument
53 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col()
55 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()
123 int row, col, code; in matrix_keypad_scan() local
131 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
133 activate_col(pdata, col, true); in matrix_keypad_scan()
136 new_state[col] |= in matrix_keypad_scan()
139 activate_col(pdata, col, false); in matrix_keypad_scan()
142 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
145 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan()
153 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in matrix_keypad_scan()
157 new_state[col] & (1 << row)); in matrix_keypad_scan()
315 "failed to request GPIO%d for COL%d\n", in matrix_keypad_init_gpio()
421 pdata->num_col_gpios = ncol = gpiod_count(dev, "col"); in matrix_keypad_parse_dt()
440 of_property_read_u32(np, "col-scan-delay-us", in matrix_keypad_parse_dt()
460 ret = of_get_named_gpio(np, "col-gpios", i); in matrix_keypad_parse_dt()