Lines Matching refs:i2c_msg
59 struct i2c_msg i2c_msg[2]; in cros_ec_i2c_packet() local
62 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_packet()
63 i2c_msg[0].flags = 0; in cros_ec_i2c_packet()
64 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_packet()
65 i2c_msg[1].flags = I2C_M_RD; in cros_ec_i2c_packet()
68 i2c_msg[0].len = out_bytes + 1; in cros_ec_i2c_packet()
69 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_packet()
76 i2c_msg[1].len = in_bytes + 2; in cros_ec_i2c_packet()
77 i2c_msg[1].buf = dev->din; in cros_ec_i2c_packet()
79 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_packet()
115 struct i2c_msg i2c_msg[2]; in cros_ec_i2c_command() local
140 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_command()
141 i2c_msg[0].len = out_bytes; in cros_ec_i2c_command()
142 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_command()
143 i2c_msg[0].flags = 0; in cros_ec_i2c_command()
177 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_command()
178 i2c_msg[1].len = in_bytes; in cros_ec_i2c_command()
179 i2c_msg[1].buf = in_ptr; in cros_ec_i2c_command()
180 i2c_msg[1].flags = I2C_M_RD; in cros_ec_i2c_command()
185 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_command()