Lines Matching refs:out_buf
59 u8 *out_buf = NULL; in cros_ec_pkt_xfer_i2c() local
88 out_buf = ec_dev->dout; in cros_ec_pkt_xfer_i2c()
90 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c()
93 ec_request_i2c = (struct ec_host_request_i2c *) out_buf; in cros_ec_pkt_xfer_i2c()
196 u8 *out_buf = NULL; in cros_ec_cmd_xfer_i2c() local
222 out_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
223 if (!out_buf) in cros_ec_cmd_xfer_i2c()
226 i2c_msg[0].buf = (char *)out_buf; in cros_ec_cmd_xfer_i2c()
228 out_buf[0] = EC_CMD_VERSION0 + msg->version; in cros_ec_cmd_xfer_i2c()
229 out_buf[1] = msg->command; in cros_ec_cmd_xfer_i2c()
230 out_buf[2] = msg->outsize; in cros_ec_cmd_xfer_i2c()
233 sum = out_buf[0] + out_buf[1] + out_buf[2]; in cros_ec_cmd_xfer_i2c()
235 out_buf[3 + i] = msg->data[i]; in cros_ec_cmd_xfer_i2c()
236 sum += out_buf[3 + i]; in cros_ec_cmd_xfer_i2c()
238 out_buf[3 + msg->outsize] = sum; in cros_ec_cmd_xfer_i2c()
282 kfree(out_buf); in cros_ec_cmd_xfer_i2c()