Lines Matching refs:i2c_msg
60 struct i2c_msg i2c_msg[2]; in cros_ec_i2c_packet() local
63 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_packet()
64 i2c_msg[0].flags = 0; in cros_ec_i2c_packet()
65 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_packet()
66 i2c_msg[1].flags = I2C_M_RD; in cros_ec_i2c_packet()
69 i2c_msg[0].len = out_bytes + 1; in cros_ec_i2c_packet()
70 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_packet()
77 i2c_msg[1].len = in_bytes + 2; in cros_ec_i2c_packet()
78 i2c_msg[1].buf = dev->din; in cros_ec_i2c_packet()
80 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_packet()
116 struct i2c_msg i2c_msg[2]; in cros_ec_i2c_command() local
141 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_command()
142 i2c_msg[0].len = out_bytes; in cros_ec_i2c_command()
143 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_command()
144 i2c_msg[0].flags = 0; in cros_ec_i2c_command()
178 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_command()
179 i2c_msg[1].len = in_bytes; in cros_ec_i2c_command()
180 i2c_msg[1].buf = in_ptr; in cros_ec_i2c_command()
181 i2c_msg[1].flags = I2C_M_RD; in cros_ec_i2c_command()
186 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_command()