Lines Matching full:response

85  * struct response_info - Encapsulate firmware response related
94 * @token: Expected token for response that we are waiting on.
95 * @received: Set to true on receiving a valid firmware response to host command
96 * @wait_queue: Wait queue for host to wait for firmware response.
113 * @response: Response info passing between ish_send() and process_recv().
125 * Used for passing firmware response information between
128 struct response_info response; member
173 /* Setup for incoming response */ in ish_send()
174 client_data->response.data = in_msg; in ish_send()
175 client_data->response.max_size = in_size; in ish_send()
176 client_data->response.error = 0; in ish_send()
177 client_data->response.token = next_token++; in ish_send()
178 client_data->response.received = false; in ish_send()
180 out_hdr->token = client_data->response.token; in ish_send()
189 wait_event_interruptible_timeout(client_data->response.wait_queue, in ish_send()
190 client_data->response.received, in ish_send()
192 if (!client_data->response.received) { in ish_send()
194 "Timed out for response to host message\n"); in ish_send()
198 if (client_data->response.error < 0) in ish_send()
199 return client_data->response.error; in ish_send()
201 return client_data->response.size; in ish_send()
210 * Parse the incoming packet. If it is a response packet then it will
212 * response. If it is an event packet then it will schedule event work.
239 client_data->response.error = -EBADMSG; in process_recv()
246 client_data->response.error = -EMSGSIZE; in process_recv()
255 if (client_data->response.received) { in process_recv()
261 if (client_data->response.token != in_msg->hdr.token) { in process_recv()
263 "Dropping old response token %d\n", in process_recv()
269 if (!client_data->response.data) { in process_recv()
272 client_data->response.error = -EINVAL; in process_recv()
276 if (data_len > client_data->response.max_size) { in process_recv()
279 data_len, client_data->response.max_size); in process_recv()
280 client_data->response.error = -EMSGSIZE; in process_recv()
287 client_data->response.error = -EIO; in process_recv()
292 client_data->response.size = data_len; in process_recv()
295 * Copy the buffer received in firmware response for the in process_recv()
298 memcpy(client_data->response.data, in process_recv()
307 client_data->response.received = true; in process_recv()
310 wake_up_interruptible(&client_data->response.wait_queue); in process_recv()
453 /* Check response error code */ in prepare_cros_ec_rx()
465 /* Copy response packet payload and compute checksum */ in prepare_cros_ec_rx()
532 /* Send command to ISH EC firmware and read response */ in cros_ec_pkt_xfer_ish()
663 init_waitqueue_head(&client_data->response.wait_queue); in cros_ec_ishtp_probe()