Lines Matching refs:cdns_i2c_writereg
135 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset) macro
241 cdns_i2c_writereg(reg & ~CDNS_I2C_CR_HOLD, CDNS_I2C_CR_OFFSET); in cdns_i2c_clear_bus_hold()
254 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, CDNS_I2C_IDR_OFFSET); in cdns_i2c_set_mode()
257 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_set_mode()
266 cdns_i2c_writereg(id->ctrl_reg_diva_divb | in cdns_i2c_set_mode()
279 cdns_i2c_writereg(id->ctrl_reg_diva_divb & in cdns_i2c_set_mode()
284 cdns_i2c_writereg(id->slave->addr & CDNS_I2C_ADDR_MASK, in cdns_i2c_set_mode()
288 cdns_i2c_writereg(CDNS_I2C_IXR_SLAVE_INTR_MASK, in cdns_i2c_set_mode()
328 cdns_i2c_writereg(data, CDNS_I2C_DATA_OFFSET); in cdns_i2c_slave_send_data()
347 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_slave_isr()
382 cdns_i2c_writereg(CDNS_I2C_CR_CLR_FIFO, CDNS_I2C_CR_OFFSET); in cdns_i2c_slave_isr()
409 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_isr()
476 cdns_i2c_writereg(id->transfer_size, in cdns_i2c_master_isr()
481 cdns_i2c_writereg(id->recv_count - in cdns_i2c_master_isr()
513 cdns_i2c_writereg( in cdns_i2c_master_isr()
602 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
606 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_mrecv()
615 cdns_i2c_writereg(id->transfer_size, in cdns_i2c_mrecv()
619 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_mrecv()
647 cdns_i2c_writereg(addr, CDNS_I2C_ADDR_OFFSET); in cdns_i2c_mrecv()
648 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_mrecv()
655 cdns_i2c_writereg(addr, CDNS_I2C_ADDR_OFFSET); in cdns_i2c_mrecv()
658 cdns_i2c_writereg(CDNS_I2C_ENABLED_INTR_MASK, CDNS_I2C_IER_OFFSET); in cdns_i2c_mrecv()
687 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_msend()
691 cdns_i2c_writereg(isr_status, CDNS_I2C_ISR_OFFSET); in cdns_i2c_msend()
707 cdns_i2c_writereg((*(id->p_send_buf)++), CDNS_I2C_DATA_OFFSET); in cdns_i2c_msend()
718 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, in cdns_i2c_msend()
721 cdns_i2c_writereg(CDNS_I2C_ENABLED_INTR_MASK, CDNS_I2C_IER_OFFSET); in cdns_i2c_msend()
737 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, CDNS_I2C_IDR_OFFSET); in cdns_i2c_master_reset()
742 cdns_i2c_writereg(regval, CDNS_I2C_CR_OFFSET); in cdns_i2c_master_reset()
744 cdns_i2c_writereg(0, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_master_reset()
747 cdns_i2c_writereg(regval, CDNS_I2C_ISR_OFFSET); in cdns_i2c_master_reset()
750 cdns_i2c_writereg(regval, CDNS_I2C_SR_OFFSET); in cdns_i2c_master_reset()
767 cdns_i2c_writereg(reg & ~CDNS_I2C_CR_NEA, in cdns_i2c_process_msg()
771 cdns_i2c_writereg(reg | CDNS_I2C_CR_NEA, in cdns_i2c_process_msg()
798 cdns_i2c_writereg(CDNS_I2C_IXR_ALL_INTR_MASK, in cdns_i2c_process_msg()
889 cdns_i2c_writereg(reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_master_xfer()
1093 cdns_i2c_writereg(ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_setclk()
1189 cdns_i2c_writereg(id->ctrl_reg, CDNS_I2C_CR_OFFSET); in cdns_i2c_init()
1197 cdns_i2c_writereg(CDNS_I2C_TIMEOUT_MAX, CDNS_I2C_TIME_OUT_OFFSET); in cdns_i2c_init()
1254 cdns_i2c_writereg(CDNS_I2C_CR_MS | CDNS_I2C_CR_RW, CDNS_I2C_CR_OFFSET); in cdns_i2c_detect_transfer_size()
1263 cdns_i2c_writereg(CDNS_I2C_MAX_TRANSFER_SIZE, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_detect_transfer_size()
1266 cdns_i2c_writereg(0, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_detect_transfer_size()
1267 cdns_i2c_writereg(0, CDNS_I2C_CR_OFFSET); in cdns_i2c_detect_transfer_size()