Lines Matching refs:msgs
180 struct i2c_msg msgs[2]; in i2c_bus_write() local
185 msgs[0].addr = slave_addr; in i2c_bus_write()
186 msgs[0].flags = 0; in i2c_bus_write()
187 msgs[0].len = len; in i2c_bus_write()
188 msgs[0].buf = data; in i2c_bus_write()
197 msgs[0].addr = slave_addr; in i2c_bus_write()
198 msgs[0].flags = 0; in i2c_bus_write()
199 msgs[0].len = offset_size; in i2c_bus_write()
200 msgs[0].buf = offset_bytes; in i2c_bus_write()
202 msgs[1].addr = slave_addr; in i2c_bus_write()
203 msgs[1].flags = I2C_M_NOSTART; in i2c_bus_write()
204 msgs[1].len = len; in i2c_bus_write()
205 msgs[1].buf = data; in i2c_bus_write()
212 ret = i2c_transfer(&i2c->adapter, msgs, num_msgs); in i2c_bus_write()
228 struct i2c_msg msgs[2]; in i2c_bus_read() local
233 msgs[0].addr = slave_addr; in i2c_bus_read()
234 msgs[0].flags = I2C_M_RD; in i2c_bus_read()
235 msgs[0].len = len; in i2c_bus_read()
236 msgs[0].buf = data; in i2c_bus_read()
245 msgs[0].addr = slave_addr; in i2c_bus_read()
246 msgs[0].flags = 0; in i2c_bus_read()
247 msgs[0].len = offset_size; in i2c_bus_read()
248 msgs[0].buf = offset_bytes; in i2c_bus_read()
250 msgs[1].addr = slave_addr; in i2c_bus_read()
251 msgs[1].flags = I2C_M_RD; in i2c_bus_read()
252 msgs[1].len = len; in i2c_bus_read()
253 msgs[1].buf = data; in i2c_bus_read()
260 ret = i2c_transfer(&bus->adapter, msgs, num_msgs); in i2c_bus_read()