Lines Matching refs:msg_write_idx
220 if (msgs[dev->msg_write_idx].flags & I2C_M_TEN) { in i2c_dw_xfer_init()
239 msgs[dev->msg_write_idx].addr | ic_tar); in i2c_dw_xfer_init()
369 u32 addr = msgs[dev->msg_write_idx].addr; in i2c_dw_xfer_msg()
377 for (; dev->msg_write_idx < dev->msgs_num; dev->msg_write_idx++) { in i2c_dw_xfer_msg()
378 u32 flags = msgs[dev->msg_write_idx].flags; in i2c_dw_xfer_msg()
385 if (msgs[dev->msg_write_idx].addr != addr) { in i2c_dw_xfer_msg()
394 buf = msgs[dev->msg_write_idx].buf; in i2c_dw_xfer_msg()
395 buf_len = msgs[dev->msg_write_idx].len; in i2c_dw_xfer_msg()
402 (dev->msg_write_idx > 0)) in i2c_dw_xfer_msg()
428 if (dev->msg_write_idx == dev->msgs_num - 1 && in i2c_dw_xfer_msg()
437 if (msgs[dev->msg_write_idx].flags & I2C_M_RD) { in i2c_dw_xfer_msg()
474 if (dev->msg_write_idx == dev->msgs_num) in i2c_dw_xfer_msg()
574 dev->msg_write_idx = 0; in i2c_dw_xfer()