Lines Matching refs:msgs
162 struct i2c_msg msgs[], int num) in stk1160_i2c_xfer() argument
168 addr = msgs[i].addr << 1; in stk1160_i2c_xfer()
171 if (!msgs[i].len) { in stk1160_i2c_xfer()
179 } else if (msgs[i].flags & I2C_M_RD) { in stk1160_i2c_xfer()
185 } else if (i + 1 < num && msgs[i].len <= 2 && in stk1160_i2c_xfer()
186 (msgs[i + 1].flags & I2C_M_RD) && in stk1160_i2c_xfer()
187 msgs[i].addr == msgs[i + 1].addr) { in stk1160_i2c_xfer()
189 if (msgs[i].len != 1 || msgs[i + 1].len != 1) { in stk1160_i2c_xfer()
195 dprintk_i2c(" subaddr=%x", msgs[i].buf[0]); in stk1160_i2c_xfer()
197 rc = stk1160_i2c_read_reg(dev, addr, msgs[i].buf[0], in stk1160_i2c_xfer()
198 msgs[i + 1].buf); in stk1160_i2c_xfer()
200 dprintk_i2c(" read=%x", *msgs[i + 1].buf); in stk1160_i2c_xfer()
206 if (msgs[i].len != 2) { in stk1160_i2c_xfer()
213 msgs[i].buf[0], msgs[i].buf[1]); in stk1160_i2c_xfer()
215 rc = stk1160_i2c_write_reg(dev, addr, msgs[i].buf[0], in stk1160_i2c_xfer()
216 msgs[i].buf[1]); in stk1160_i2c_xfer()