Lines Matching refs:msg
49 struct i2c_msg msg[1]; in sx1_i2c_write_byte() local
55 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_write_byte()
56 msg->flags = 0; in sx1_i2c_write_byte()
57 msg->len = 2; in sx1_i2c_write_byte()
58 msg->buf = data; in sx1_i2c_write_byte()
61 err = i2c_transfer(adap, msg, 1); in sx1_i2c_write_byte()
73 struct i2c_msg msg[1]; in sx1_i2c_read_byte() local
80 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_read_byte()
81 msg->flags = 0; in sx1_i2c_read_byte()
82 msg->len = 1; in sx1_i2c_read_byte()
83 msg->buf = data; in sx1_i2c_read_byte()
85 err = i2c_transfer(adap, msg, 1); in sx1_i2c_read_byte()
87 msg->addr = devaddr; /* I2C address */ in sx1_i2c_read_byte()
88 msg->flags = I2C_M_RD; in sx1_i2c_read_byte()
89 msg->len = 1; in sx1_i2c_read_byte()
90 msg->buf = data; in sx1_i2c_read_byte()
91 err = i2c_transfer(adap, msg, 1); in sx1_i2c_read_byte()