Lines Matching full:col
82 unsigned int col; in samsung_keypad_scan() local
85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
88 val &= ~(1 << col) << 8; in samsung_keypad_scan()
91 val &= ~(1 << col); in samsung_keypad_scan()
98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
113 unsigned int col, row; in samsung_keypad_report() local
115 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
116 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report()
117 key_down |= row_state[col]; in samsung_keypad_report()
125 pressed = row_state[col] & (1 << row); in samsung_keypad_report()
128 "key %s, row: %d, col: %d\n", in samsung_keypad_report()
129 pressed ? "pressed" : "released", row, col); in samsung_keypad_report()
131 val = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in samsung_keypad_report()
287 u32 row, col, key_code; in samsung_keypad_parse_dt() local
289 of_property_read_u32(key_np, "keypad,column", &col); in samsung_keypad_parse_dt()
291 *keymap++ = KEY(row, col, key_code); in samsung_keypad_parse_dt()