Home
last modified time | relevance | path

Searched refs:ec_lpc (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/platform/chrome/
H A Dcros_ec_lpc.c86 int (*read)(struct cros_ec_lpc *ec_lpc, unsigned int offset,
88 int (*write)(struct cros_ec_lpc *ec_lpc, unsigned int offset,
134 static int cros_ec_lpc_mec_read_bytes(struct cros_ec_lpc *ec_lpc, unsigned int offset, in cros_ec_lpc_mec_read_bytes() argument
146 cros_ec_lpc_read_bytes(ec_lpc, offset, length, dest); in cros_ec_lpc_mec_read_bytes()
153 static int cros_ec_lpc_mec_write_bytes(struct cros_ec_lpc *ec_lpc, unsigned int offset, in cros_ec_lpc_mec_write_bytes() argument
165 cros_ec_lpc_write_bytes(ec_lpc, offset, length, msg); in cros_ec_lpc_mec_write_bytes()
168 static int cros_ec_lpc_direct_read(struct cros_ec_lpc *ec_lpc, unsigned int offset, in cros_ec_lpc_direct_read() argument
176 return cros_ec_lpc_read_bytes(ec_lpc, offset, length, dest); in cros_ec_lpc_direct_read()
180 dest[i] = readb(ec_lpc->base + offset - EC_HOST_CMD_REGION0 + i); in cros_ec_lpc_direct_read()
188 static int cros_ec_lpc_direct_write(struct cros_ec_lpc *ec_lpc, unsigned int offset, in cros_ec_lpc_direct_write() argument
[all …]