Lines Matching refs:col
47 int col, bool on)
52 gpio_direction_output(pdata->col_gpios[col], level_on);
54 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on);
56 gpio_direction_input(pdata->col_gpios[col]);
61 int col, bool on)
63 __activate_col(pdata, col, on);
72 int col;
74 for (col = 0; col < pdata->num_col_gpios; col++)
75 __activate_col(pdata, col, on);
122 int row, col, code;
130 for (col = 0; col < pdata->num_col_gpios; col++) {
132 activate_col(pdata, col, true);
135 new_state[col] |=
138 activate_col(pdata, col, false);
141 for (col = 0; col < pdata->num_col_gpios; col++) {
144 bits_changed = keypad->last_key_state[col] ^ new_state[col];
152 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift);
156 new_state[col] & (1 << row));
420 pdata->num_col_gpios = ncol = of_gpio_named_count(np, "col-gpios");
439 of_property_read_u32(np, "col-scan-delay-us",
459 ret = of_get_named_gpio(np, "col-gpios", i);