Lines Matching refs:valid
27 int valid) in has_ghosting() argument
32 if (!config->ghost_filter || valid < 3) in has_ghosting()
35 for (i = 0; i < valid; i++) { in has_ghosting()
40 for (j = i + 1; j < valid; j++) { in has_ghosting()
58 int valid, upto; in key_matrix_decode() local
63 for (valid = upto = 0; upto < num_keys; upto++) { in key_matrix_decode()
66 debug(" valid=%d, row=%d, col=%d\n", key->valid, key->row, in key_matrix_decode()
68 if (!key->valid) in key_matrix_decode()
75 if (valid < max_keycodes) in key_matrix_decode()
76 keycode[valid++] = keymap[pos]; in key_matrix_decode()
81 if (has_ghosting(config, keys, valid)) { in key_matrix_decode()
82 valid = 0; in key_matrix_decode()
85 debug(" %d valid keycodes found\n", valid); in key_matrix_decode()
87 return valid; in key_matrix_decode()