Lines Matching refs:in_bytes
131 int in_bytes = din_len + sizeof(struct ec_host_response); in prepare_proto3_response_buffer() local
134 if (in_bytes > (int)sizeof(dev->din)) { in prepare_proto3_response_buffer()
140 return in_bytes; in prepare_proto3_response_buffer()
159 int in_bytes; in handle_proto3_response() local
183 in_bytes = sizeof(*rs) + rs->data_len; in handle_proto3_response()
186 csum = cros_ec_calc_checksum(dev->din, in_bytes); in handle_proto3_response()
209 int out_bytes, in_bytes; in send_command_proto3() local
219 in_bytes = prepare_proto3_response_buffer(dev, din_len); in send_command_proto3()
220 if (in_bytes < 0) in send_command_proto3()
221 return in_bytes; in send_command_proto3()
224 rv = ops->packet ? ops->packet(dev->dev, out_bytes, in_bytes) : -ENOSYS; in send_command_proto3()