Lines Matching +full:keyboard +full:- +full:controller +full:- +full:style

1 // SPDX-License-Identifier: GPL-2.0+
3 * Chromium OS cros_ec driver - LPC interface
9 * The Matrix Keyboard Protocol driver handles talking to the keyboard
10 * controller chip. Mostly this is for keyboard functions, but some other
36 return -1; in wait_for_sync()
50 return log_msg_ret("Cannot send that many bytes\n", -E2BIG); in cros_ec_lpc_packet()
53 return log_msg_ret("Cannot receive that many bytes\n", -E2BIG); in cros_ec_lpc_packet()
56 return log_msg_ret("Timeout waiting ready\n", -ETIMEDOUT); in cros_ec_lpc_packet()
59 for (i = 0, d = (uint8_t *)dev->dout; i < out_bytes; i++, d++) in cros_ec_lpc_packet()
66 return log_msg_ret("Timeout waiting ready\n", -ETIMEDOUT); in cros_ec_lpc_packet()
69 for (i = 0, d = dev->din; i < in_bytes; i++, d++) in cros_ec_lpc_packet()
92 return -1; in cros_ec_lpc_command()
109 return -1; in cros_ec_lpc_command()
128 return -1; in cros_ec_lpc_command()
135 return -i; in cros_ec_lpc_command()
143 * If EC didn't modify args flags, then somehow we sent a new-style in cros_ec_lpc_command()
149 return -EC_RES_INVALID_RESPONSE; in cros_ec_lpc_command()
155 return -EC_RES_INVALID_RESPONSE; in cros_ec_lpc_command()
159 for (i = 0, d = (uint8_t *)dev->din; i < args.data_size; i++, d++) { in cros_ec_lpc_command()
167 for (i = 0, d = (uint8_t *)dev->din; i < args.data_size; i++, d++) in cros_ec_lpc_command()
172 return -EC_RES_INVALID_CHECKSUM; in cros_ec_lpc_command()
174 *dinp = dev->din; in cros_ec_lpc_command()
185 * @return 0 if ok, -1 on error
200 return -1; in cros_ec_lpc_init()
209 * The cheapest way to do this is by looking for the memory-mapped
210 * flag. This is faster than sending a new-style 'hello' command and
226 return -1; in cros_ec_lpc_check_version()
241 { .compatible = "google,cros-ec-lpc" },