Home
last modified time | relevance | path

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

/drivers/platform/chrome/
Dcros_ec_spi.c83 struct cros_ec_command *ec_msg);
99 struct cros_ec_command *ec_msg; member
390 struct cros_ec_command *ec_msg) in do_cros_ec_pkt_xfer_spi() argument
404 len = cros_ec_prepare_tx(ec_dev, ec_msg); in do_cros_ec_pkt_xfer_spi()
472 ec_msg->insize + sizeof(*response)); in do_cros_ec_pkt_xfer_spi()
489 ec_msg->result = response->result; in do_cros_ec_pkt_xfer_spi()
491 ret = cros_ec_check_result(ec_dev, ec_msg); in do_cros_ec_pkt_xfer_spi()
497 if (len > ec_msg->insize) { in do_cros_ec_pkt_xfer_spi()
499 len, ec_msg->insize); in do_cros_ec_pkt_xfer_spi()
508 memcpy(ec_msg->data, ptr + sizeof(*response), len); in do_cros_ec_pkt_xfer_spi()
[all …]
Dcros_ec_rpmsg.c66 struct cros_ec_command *ec_msg) in cros_ec_cmd_xfer_rpmsg() argument
80 struct cros_ec_command *ec_msg) in cros_ec_pkt_xfer_rpmsg() argument
90 ec_msg->result = 0; in cros_ec_pkt_xfer_rpmsg()
91 len = cros_ec_prepare_tx(ec_dev, ec_msg); in cros_ec_pkt_xfer_rpmsg()
112 ec_msg->result = response->result; in cros_ec_pkt_xfer_rpmsg()
114 ret = cros_ec_check_result(ec_dev, ec_msg); in cros_ec_pkt_xfer_rpmsg()
118 if (response->data_len > ec_msg->insize) { in cros_ec_pkt_xfer_rpmsg()
120 response->data_len, ec_msg->insize); in cros_ec_pkt_xfer_rpmsg()
126 memcpy(ec_msg->data, ec_dev->din + sizeof(*response), in cros_ec_pkt_xfer_rpmsg()
142 if (ec_msg->command == EC_CMD_REBOOT_EC) in cros_ec_pkt_xfer_rpmsg()
/drivers/platform/chrome/wilco_ec/
Dproperties.c38 struct wilco_ec_message ec_msg; in send_property_msg() local
41 memset(&ec_msg, 0, sizeof(ec_msg)); in send_property_msg()
42 ec_msg.type = WILCO_EC_MSG_PROPERTY; in send_property_msg()
43 ec_msg.request_data = rq; in send_property_msg()
44 ec_msg.request_size = sizeof(*rq); in send_property_msg()
45 ec_msg.response_data = rs; in send_property_msg()
46 ec_msg.response_size = sizeof(*rs); in send_property_msg()
48 ret = wilco_ec_mailbox(ec, &ec_msg); in send_property_msg()