Lines Matching refs:host_response
88 struct ec_host_response *host_response; in cros_ec_uart_rx_bytes() local
116 if (resp->size >= sizeof(*host_response) && resp->exp_len == 0) { in cros_ec_uart_rx_bytes()
117 host_response = (struct ec_host_response *)resp->data; in cros_ec_uart_rx_bytes()
118 resp->exp_len = host_response->data_len + sizeof(*host_response); in cros_ec_uart_rx_bytes()
122 if (resp->size >= sizeof(*host_response) && resp->size == resp->exp_len) { in cros_ec_uart_rx_bytes()
136 struct ec_host_response *host_response; in cros_ec_uart_pkt_xfer() local
173 host_response = (struct ec_host_response *)ec_dev->din; in cros_ec_uart_pkt_xfer()
174 ec_msg->result = host_response->result; in cros_ec_uart_pkt_xfer()
176 if (host_response->data_len > ec_msg->insize) { in cros_ec_uart_pkt_xfer()
178 host_response->data_len, ec_msg->insize); in cros_ec_uart_pkt_xfer()
185 for (i = 0; i < sizeof(*host_response) + host_response->data_len; i++) in cros_ec_uart_pkt_xfer()
194 memcpy(ec_msg->data, ec_dev->din + sizeof(*host_response), host_response->data_len); in cros_ec_uart_pkt_xfer()
196 ret = host_response->data_len; in cros_ec_uart_pkt_xfer()