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
177 /* Setup for incoming response */ in ish_send()
178 client_data->response.data = in_msg; in ish_send()
179 client_data->response.max_size = in_size; in ish_send()
180 client_data->response.error = 0; in ish_send()
181 client_data->response.token = next_token++; in ish_send()
182 client_data->response.received = false; in ish_send()
184 out_hdr->token = client_data->response.token; in ish_send()
193 wait_event_interruptible_timeout(client_data->response.wait_queue, in ish_send()
194 client_data->response.received, in ish_send()
196 if (!client_data->response.received) { in ish_send()
198 "Timed out for response to host message\n"); in ish_send()
202 if (client_data->response.error < 0) in ish_send()
203 return client_data->response.error; in ish_send()
205 return client_data->response.size; in ish_send()
214 * Parse the incoming packet. If it is a response packet then it will
216 * response. If it is an event packet then it will schedule event work.
243 client_data->response.error = -EBADMSG; in process_recv()
250 client_data->response.error = -EMSGSIZE; in process_recv()
259 if (client_data->response.received) { in process_recv()
265 if (client_data->response.token != in_msg->hdr.token) { in process_recv()
267 "Dropping old response token %d\n", in process_recv()
273 if (!client_data->response.data) { in process_recv()
276 client_data->response.error = -EINVAL; in process_recv()
280 if (data_len > client_data->response.max_size) { in process_recv()
283 data_len, client_data->response.max_size); in process_recv()
284 client_data->response.error = -EMSGSIZE; in process_recv()
291 client_data->response.error = -EIO; in process_recv()
296 client_data->response.size = data_len; in process_recv()
299 * Copy the buffer received in firmware response for the in process_recv()
302 memcpy(client_data->response.data, in process_recv()
311 client_data->response.received = true; in process_recv()
314 wake_up_interruptible(&client_data->response.wait_queue); in process_recv()
457 /* Check response error code */ in prepare_cros_ec_rx()
469 /* Copy response packet payload and compute checksum */ in prepare_cros_ec_rx()
536 /* Send command to ISH EC firmware and read response */ in cros_ec_pkt_xfer_ish()
667 init_waitqueue_head(&client_data->response.wait_queue); in cros_ec_ishtp_probe()