Lines Matching refs:outsize
63 if (msg->outsize + sizeof(*request) > ec_dev->dout_size) in prepare_packet()
73 request->data_len = msg->outsize; in prepare_packet()
79 memcpy(out + sizeof(*request), msg->data, msg->outsize); in prepare_packet()
80 for (i = 0; i < msg->outsize; i++) in prepare_packet()
85 return sizeof(*request) + msg->outsize; in prepare_packet()
126 status_msg->outsize = 0; in send_command()
180 if (msg->outsize > EC_PROTO2_MAX_PARAM_SIZE) in cros_ec_prepare_tx()
186 out[2] = msg->outsize; in cros_ec_prepare_tx()
188 for (i = 0; i < msg->outsize; i++) in cros_ec_prepare_tx()
190 out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; in cros_ec_prepare_tx()
192 return EC_MSG_TX_PROTO_BYTES + msg->outsize; in cros_ec_prepare_tx()
246 msg->outsize = 0; in cros_ec_get_host_event_wake_mask()
324 msg->outsize = sizeof(*hello_params); in cros_ec_host_command_proto_query_v2()
390 msg->outsize = sizeof(*pver); in cros_ec_get_host_command_version_mask()
605 if (msg->outsize > ec_dev->max_request) { in cros_ec_cmd_xfer()
608 msg->outsize, in cros_ec_cmd_xfer()
614 if (msg->outsize > ec_dev->max_passthru) { in cros_ec_cmd_xfer()
617 msg->outsize, in cros_ec_cmd_xfer()
674 msg->outsize = 0; in get_next_event_xfer()
718 msg->outsize = 0; in get_keyboard_state_event()
897 msg->outsize = sizeof(*params); in cros_ec_get_sensor_count()
953 int outsize, in cros_ec_command() argument
960 msg = kzalloc(sizeof(*msg) + max(insize, outsize), GFP_KERNEL); in cros_ec_command()
966 msg->outsize = outsize; in cros_ec_command()
969 if (outsize) in cros_ec_command()
970 memcpy(msg->data, outdata, outsize); in cros_ec_command()