Lines Matching refs:ec_msg

83 				  struct cros_ec_command *ec_msg);
99 struct cros_ec_command *ec_msg; member
389 struct cros_ec_command *ec_msg) in do_cros_ec_pkt_xfer_spi() argument
403 len = cros_ec_prepare_tx(ec_dev, ec_msg); in do_cros_ec_pkt_xfer_spi()
469 ec_msg->insize + sizeof(*response)); in do_cros_ec_pkt_xfer_spi()
486 ec_msg->result = response->result; in do_cros_ec_pkt_xfer_spi()
488 ret = cros_ec_check_result(ec_dev, ec_msg); in do_cros_ec_pkt_xfer_spi()
494 if (len > ec_msg->insize) { in do_cros_ec_pkt_xfer_spi()
496 len, ec_msg->insize); in do_cros_ec_pkt_xfer_spi()
505 memcpy(ec_msg->data, ptr + sizeof(*response), len); in do_cros_ec_pkt_xfer_spi()
507 sum += ec_msg->data[i]; in do_cros_ec_pkt_xfer_spi()
520 if (ec_msg->command == EC_CMD_REBOOT_EC) in do_cros_ec_pkt_xfer_spi()
533 struct cros_ec_command *ec_msg) in do_cros_ec_cmd_xfer_spi() argument
546 len = cros_ec_prepare_tx(ec_dev, ec_msg); in do_cros_ec_cmd_xfer_spi()
588 ec_msg->insize + EC_MSG_TX_PROTO_BYTES); in do_cros_ec_cmd_xfer_spi()
604 ec_msg->result = ptr[0]; in do_cros_ec_cmd_xfer_spi()
605 ret = cros_ec_check_result(ec_dev, ec_msg); in do_cros_ec_cmd_xfer_spi()
611 if (len > ec_msg->insize) { in do_cros_ec_cmd_xfer_spi()
613 len, ec_msg->insize); in do_cros_ec_cmd_xfer_spi()
621 if (ec_msg->insize) in do_cros_ec_cmd_xfer_spi()
622 ec_msg->data[i] = ptr[i + 2]; in do_cros_ec_cmd_xfer_spi()
639 if (ec_msg->command == EC_CMD_REBOOT_EC) in do_cros_ec_cmd_xfer_spi()
650 params->ret = params->fn(params->ec_dev, params->ec_msg); in cros_ec_xfer_high_pri_work()
654 struct cros_ec_command *ec_msg, in cros_ec_xfer_high_pri() argument
662 .ec_msg = ec_msg, in cros_ec_xfer_high_pri()
682 struct cros_ec_command *ec_msg) in cros_ec_pkt_xfer_spi() argument
684 return cros_ec_xfer_high_pri(ec_dev, ec_msg, do_cros_ec_pkt_xfer_spi); in cros_ec_pkt_xfer_spi()
688 struct cros_ec_command *ec_msg) in cros_ec_cmd_xfer_spi() argument
690 return cros_ec_xfer_high_pri(ec_dev, ec_msg, do_cros_ec_cmd_xfer_spi); in cros_ec_cmd_xfer_spi()