Lines Matching refs:cdns_i2c_readreg

134 #define cdns_i2c_readreg(offset)       readl_relaxed(id->membase + offset)  macro
239 u32 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_clear_bus_hold()
306 bytes = cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_slave_rcv_data()
310 data = cdns_i2c_readreg(CDNS_I2C_DATA_OFFSET); in cdns_i2c_slave_rcv_data()
346 isr_status = cdns_i2c_readreg(CDNS_I2C_ISR_OFFSET); in cdns_i2c_slave_isr()
350 isr_status &= ~cdns_i2c_readreg(CDNS_I2C_IMR_OFFSET); in cdns_i2c_slave_isr()
353 i2c_status = cdns_i2c_readreg(CDNS_I2C_SR_OFFSET); in cdns_i2c_slave_isr()
408 isr_status = cdns_i2c_readreg(CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_isr()
429 while (cdns_i2c_readreg(CDNS_I2C_SR_OFFSET) & in cdns_i2c_master_isr()
433 cdns_i2c_readreg(CDNS_I2C_DATA_OFFSET); in cdns_i2c_master_isr()
466 while (cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET) != in cdns_i2c_master_isr()
506 cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_master_isr()
582 ctrl_reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
605 isr_status = cdns_i2c_readreg(CDNS_I2C_ISR_OFFSET); in cdns_i2c_mrecv()
650 cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
677 ctrl_reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_msend()
690 isr_status = cdns_i2c_readreg(CDNS_I2C_ISR_OFFSET); in cdns_i2c_msend()
699 cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_msend()
739 regval = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_master_reset()
746 regval = cdns_i2c_readreg(CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_reset()
749 regval = cdns_i2c_readreg(CDNS_I2C_SR_OFFSET); in cdns_i2c_master_reset()
764 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_process_msg()
887 reg = cdns_i2c_readreg(CDNS_I2C_CR_OFFSET); in cdns_i2c_master_xfer()
1264 val = cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_detect_transfer_size()