Lines Matching refs:col
48 int col, bool on)
53 gpio_direction_output(pdata->col_gpios[col], level_on);
55 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on);
57 gpio_direction_input(pdata->col_gpios[col]);
62 int col, bool on)
64 __activate_col(pdata, col, on);
73 int col;
75 for (col = 0; col < pdata->num_col_gpios; col++)
76 __activate_col(pdata, col, on);
123 int row, col, code;
134 for (col = 0; col < pdata->num_col_gpios; col++) {
136 activate_col(pdata, col, true);
139 new_state[col] |=
142 activate_col(pdata, col, false);
145 for (col = 0; col < pdata->num_col_gpios; col++) {
148 bits_changed = keypad->last_key_state[col] ^ new_state[col];
156 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift);
160 new_state[col] & (1 << row));
422 pdata->num_col_gpios = ncol = gpiod_count(dev, "col");
439 of_property_read_u32(np, "col-scan-delay-us",
459 ret = of_get_named_gpio(np, "col-gpios", i);