CDNS_I2C_XFER_SIZE_OFFSET
cdns_i2c_writereg(CDNS_I2C_MAX_TRANSFER_SIZE, CDNS_I2C_XFER_SIZE_OFFSET);
val = cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
cdns_i2c_writereg(0, CDNS_I2C_XFER_SIZE_OFFSET);
bytes = cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
while (cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET) !=
CDNS_I2C_XFER_SIZE_OFFSET);
CDNS_I2C_XFER_SIZE_OFFSET);
cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
while (cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET) !=
CDNS_I2C_XFER_SIZE_OFFSET);
CDNS_I2C_XFER_SIZE_OFFSET);
CDNS_I2C_XFER_SIZE_OFFSET);
cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET);
avail_bytes = id->fifo_depth - cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
cdns_i2c_writereg(0, CDNS_I2C_XFER_SIZE_OFFSET);