Lines Matching refs:CDNS_I2C_CR_OFFSET
21 #define CDNS_I2C_CR_OFFSET 0x00 /* Control Register, RW */ macro
235 u32 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_clear_bus_hold()
237 cdns_i2c_writereg(reg & ~CDNS_I2C_CR_HOLD, CDNS_I2C_CR_OFFSET); in cdns_i2c_clear_bus_hold()
253 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_set_mode()
264 CDNS_I2C_CR_OFFSET); in cdns_i2c_set_mode()
277 CDNS_I2C_CR_OFFSET); in cdns_i2c_set_mode()
378 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_slave_isr()
578 ctrl_reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
598 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
622 if (cdns_i2c_readreg(CDNS_I2C_CR_OFFSET) & CDNS_I2C_CR_HOLD) { in cdns_i2c_mrecv()
633 ctrl_reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET) & ~CDNS_I2C_CR_HOLD; in cdns_i2c_mrecv()
645 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
647 cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
674 ctrl_reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_msend()
684 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_msend()
736 regval = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_master_reset()
739 cdns_i2c_writereg(regval, CDNS_I2C_CR_OFFSET); in cdns_i2c_master_reset()
761 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_process_msg()
765 CDNS_I2C_CR_OFFSET); in cdns_i2c_process_msg()
769 CDNS_I2C_CR_OFFSET); in cdns_i2c_process_msg()
882 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_master_xfer()
884 cdns_i2c_writereg(reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_master_xfer()
1089 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_setclk()
1185 cdns_i2c_writereg(id->ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_init()