Lines Matching refs:msg
398 static int cdns_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, in cdns_i2c_xfer() argument
405 struct i2c_msg *message = msg; in cdns_i2c_xfer()
419 if (msg[count].flags & I2C_M_RD) { in cdns_i2c_xfer()
433 nmsgs > 0; nmsgs--, msg++) { in cdns_i2c_xfer()
434 debug("i2c_xfer: chip=0x%x, len=0x%x\n", msg->addr, msg->len); in cdns_i2c_xfer()
435 if (msg->flags & I2C_M_RD) { in cdns_i2c_xfer()
436 ret = cdns_i2c_read_data(i2c_bus, msg->addr, msg->buf, in cdns_i2c_xfer()
437 msg->len); in cdns_i2c_xfer()
439 ret = cdns_i2c_write_data(i2c_bus, msg->addr, msg->buf, in cdns_i2c_xfer()
440 msg->len); in cdns_i2c_xfer()
443 msg = message; in cdns_i2c_xfer()