Lines Matching defs:msgs
213 struct i2c_msg *msgs = dev->msgs;
221 if (msgs[dev->msg_write_idx].flags & I2C_M_TEN) {
240 msgs[dev->msg_write_idx].addr | ic_tar);
285 static int amd_i2c_dw_xfer_quirk(struct i2c_adapter *adap, struct i2c_msg *msgs, int num_msgs)
300 dev->msgs = msgs;
307 tx_buf = msgs[msg_wrt_idx].buf;
308 buf_len = msgs[msg_wrt_idx].len;
310 if (!(msgs[msg_wrt_idx].flags & I2C_M_RD))
321 if (msgs[msg_wrt_idx].flags & I2C_M_RD) {
376 static int txgbe_i2c_dw_xfer_quirk(struct i2c_adapter *adap, struct i2c_msg *msgs,
384 dev->msgs = msgs;
390 buf = msgs[msg_idx].buf;
391 buf_len = msgs[msg_idx].len;
397 if (msgs[msg_idx].flags & I2C_M_RD) {
429 struct i2c_msg *msgs = dev->msgs;
432 u32 addr = msgs[dev->msg_write_idx].addr;
441 u32 flags = msgs[dev->msg_write_idx].flags;
448 if (msgs[dev->msg_write_idx].addr != addr) {
457 buf = msgs[dev->msg_write_idx].buf;
458 buf_len = msgs[dev->msg_write_idx].len;
500 if (msgs[dev->msg_write_idx].flags & I2C_M_RD) {
555 struct i2c_msg *msgs = dev->msgs;
556 u32 flags = msgs[dev->msg_read_idx].flags;
564 msgs[dev->msg_read_idx].len = len;
565 msgs[dev->msg_read_idx].flags &= ~I2C_M_RECV_LEN;
580 struct i2c_msg *msgs = dev->msgs;
588 if (!(msgs[dev->msg_read_idx].flags & I2C_M_RD))
592 len = msgs[dev->msg_read_idx].len;
593 buf = msgs[dev->msg_read_idx].buf;
602 u32 flags = msgs[dev->msg_read_idx].flags;
640 i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
645 dev_dbg(dev->dev, "%s: msgs: %d\n", __func__, num);
656 ret = amd_i2c_dw_xfer_quirk(adap, msgs, num);
659 ret = txgbe_i2c_dw_xfer_quirk(adap, msgs, num);
666 dev->msgs = msgs;