Lines Matching refs:msgs
128 static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) in mantis_i2c_xfer() argument
147 (msgs[i].len < 2) && in mantis_i2c_xfer()
148 (msgs[i + 1].len < 2) && in mantis_i2c_xfer()
149 (msgs[i + 1].flags & I2C_M_RD)) { in mantis_i2c_xfer()
154 txd = msgs[i].addr << 25 | (0x1 << 24) in mantis_i2c_xfer()
155 | (msgs[i].buf[0] << 16) in mantis_i2c_xfer()
171 msgs[i + 1].buf[0] = (data >> 8) & 0xff; in mantis_i2c_xfer()
172 … dprintk(MANTIS_DEBUG, 0, " Byte <%d> RXD=0x%02x [%02x]\n", 0x0, data, msgs[i + 1].buf[0]); in mantis_i2c_xfer()
189 if (msgs[i].flags & I2C_M_RD) in mantis_i2c_xfer()
190 ret = mantis_i2c_read(mantis, &msgs[i]); in mantis_i2c_xfer()
192 ret = mantis_i2c_write(mantis, &msgs[i]); in mantis_i2c_xfer()