Lines Matching defs:msgs
68 struct i2c_msg msgs[2] = {
84 ret = i2c_transfer(state->i2c_client->adapter, msgs, ARRAY_SIZE(msgs));
85 if (ret == ARRAY_SIZE(msgs))
634 tc90522_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
648 if (msgs[i].flags & I2C_M_RD)
659 new_msgs[j].flags = msgs[i].flags;
661 if (msgs[i].flags & I2C_M_RD) {
666 p[1] = msgs[i].addr << 1 | 0x01;
672 new_msgs[j].flags = msgs[i].flags;
673 new_msgs[j].buf = msgs[i].buf;
674 new_msgs[j].len = msgs[i].len;
678 if (p + msgs[i].len + 2 > bufend)
681 p[1] = msgs[i].addr << 1;
682 memcpy(p + 2, msgs[i].buf, msgs[i].len);
684 new_msgs[j].len = msgs[i].len + 2;