Lines Matching refs:cdns_i2c_writereg
136 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset) macro
237 cdns_i2c_writereg(reg & ~CDNS_I2C_CR_HOLD, CDNS_I2C_CR_OFFSET); in cdns_i2c_clear_bus_hold()
250 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, CDNS_I2C_IDR_OFFSET); in cdns_i2c_set_mode()
253 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_set_mode()
262 cdns_i2c_writereg(id->ctrl_reg_diva_divb | in cdns_i2c_set_mode()
275 cdns_i2c_writereg(id->ctrl_reg_diva_divb & in cdns_i2c_set_mode()
280 cdns_i2c_writereg(id->slave->addr & CDNS_I2C_ADDR_MASK, in cdns_i2c_set_mode()
284 cdns_i2c_writereg(CDNS_I2C_IXR_SLAVE_INTR_MASK, in cdns_i2c_set_mode()
324 cdns_i2c_writereg(data, CDNS_I2C_DATA_OFFSET); in cdns_i2c_slave_send_data()
343 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_slave_isr()
378 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_slave_isr()
405 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_isr()
472 cdns_i2c_writereg(CDNS_I2C_TRANSFER_SIZE, in cdns_i2c_master_isr()
477 cdns_i2c_writereg(id->recv_count - in cdns_i2c_master_isr()
509 cdns_i2c_writereg( in cdns_i2c_master_isr()
598 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
602 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_mrecv()
611 cdns_i2c_writereg(CDNS_I2C_TRANSFER_SIZE, in cdns_i2c_mrecv()
615 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_mrecv()
644 cdns_i2c_writereg(addr, CDNS_I2C_ADDR_OFFSET); in cdns_i2c_mrecv()
645 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
652 cdns_i2c_writereg(addr, CDNS_I2C_ADDR_OFFSET); in cdns_i2c_mrecv()
655 cdns_i2c_writereg(CDNS_I2C_ENABLED_INTR_MASK, CDNS_I2C_IER_OFFSET); in cdns_i2c_mrecv()
684 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_msend()
688 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_msend()
704 cdns_i2c_writereg((*(id->p_send_buf)++), CDNS_I2C_DATA_OFFSET); in cdns_i2c_msend()
715 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, in cdns_i2c_msend()
718 cdns_i2c_writereg(CDNS_I2C_ENABLED_INTR_MASK, CDNS_I2C_IER_OFFSET); in cdns_i2c_msend()
734 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, CDNS_I2C_IDR_OFFSET); in cdns_i2c_master_reset()
739 cdns_i2c_writereg(regval, CDNS_I2C_CR_OFFSET); in cdns_i2c_master_reset()
741 cdns_i2c_writereg(0, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_master_reset()
744 cdns_i2c_writereg(regval, CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_reset()
747 cdns_i2c_writereg(regval, CDNS_I2C_SR_OFFSET); in cdns_i2c_master_reset()
764 cdns_i2c_writereg(reg & ~CDNS_I2C_CR_NEA, in cdns_i2c_process_msg()
768 cdns_i2c_writereg(reg | CDNS_I2C_CR_NEA, in cdns_i2c_process_msg()
795 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, in cdns_i2c_process_msg()
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()
1193 cdns_i2c_writereg(CDNS_I2C_TIMEOUT_MAX, CDNS_I2C_TIME_OUT_OFFSET); in cdns_i2c_init()