Lines Matching refs:msgs
116 static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num)
135 (msgs[i].len < 2) &&
136 (msgs[i + 1].len < 2) &&
137 (msgs[i + 1].flags & I2C_M_RD)) {
142 txd = msgs[i].addr << 25 | (0x1 << 24)
143 | (msgs[i].buf[0] << 16)
159 msgs[i + 1].buf[0] = (data >> 8) & 0xff;
160 dprintk(MANTIS_DEBUG, 0, " Byte <%d> RXD=0x%02x [%02x]\n", 0x0, data, msgs[i + 1].buf[0]);
177 if (msgs[i].flags & I2C_M_RD)
178 ret = mantis_i2c_read(mantis, &msgs[i]);
180 ret = mantis_i2c_write(mantis, &msgs[i]);