Lines Matching full:keys
21 KBC_MAX_KEYS = 8, /* Maximum keys held down at once */
40 * @param keys List of keys that we have detected
41 * @param max_count Maximum number of keys to return
43 * @return number of pressed keys, 0 for none, -EIO on error
45 static int check_for_keys(struct udevice *dev, struct key_matrix_key *keys, in check_for_keys() argument
78 key = keys + num_keys++; in check_for_keys()
91 * Check the keyboard, and send any keys that are pressed.
105 struct key_matrix_key keys[KBC_MAX_KEYS]; in cros_ec_kbc_check() local
114 * will always return non-zero if keys have been pressed. in cros_ec_kbc_check()
118 * may return 0 before all keys have been read from the EC. in cros_ec_kbc_check()
123 num_keys = check_for_keys(dev, keys, KBC_MAX_KEYS, in cros_ec_kbc_check()
128 memcpy(last_keys, keys, sizeof(keys)); in cros_ec_kbc_check()
131 * EC doesn't want to be asked, so use keys from last in cros_ec_kbc_check()
135 memcpy(keys, last_keys, sizeof(keys)); in cros_ec_kbc_check()
140 num_keycodes = key_matrix_decode(&priv->matrix, keys, in cros_ec_kbc_check()