Lines Matching refs:msg
91 static void wilco_ec_prepare(struct wilco_ec_message *msg, in wilco_ec_prepare() argument
96 rq->mailbox_id = msg->type; in wilco_ec_prepare()
98 rq->data_size = msg->request_size; in wilco_ec_prepare()
102 rq->checksum += wilco_ec_checksum(msg->request_data, msg->request_size); in wilco_ec_prepare()
116 struct wilco_ec_message *msg, in wilco_ec_transfer() argument
125 cros_ec_lpc_io_bytes_mec(MEC_IO_WRITE, sizeof(*rq), msg->request_size, in wilco_ec_transfer()
126 msg->request_data); in wilco_ec_transfer()
132 if (msg->flags & WILCO_EC_FLAG_NO_RESPONSE) { in wilco_ec_transfer()
171 if (rs->data_size < msg->response_size) { in wilco_ec_transfer()
173 rs->data_size, msg->response_size); in wilco_ec_transfer()
177 memcpy(msg->response_data, rs->data, msg->response_size); in wilco_ec_transfer()
196 int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg) in wilco_ec_mailbox() argument
202 msg->type, msg->flags, msg->response_size, msg->request_size); in wilco_ec_mailbox()
207 wilco_ec_prepare(msg, rq); in wilco_ec_mailbox()
209 ret = wilco_ec_transfer(ec, msg, rq); in wilco_ec_mailbox()