Lines Matching refs:I2CR

45 #define I2CR	2  macro
184 writeb(I2CR_IDIS, base + (I2CR << reg_shift)); in bus_i2c_set_bus_speed()
211 __func__, sr, readb(base + (I2CR << reg_shift)), in wait_for_sr_state()
223 sr, readb(base + (I2CR << reg_shift)), state); in wait_for_sr_state()
263 unsigned int temp = readb(base + (I2CR << reg_shift)); in i2c_imx_stop()
266 writeb(temp, base + (I2CR << reg_shift)); in i2c_imx_stop()
290 ret = readb(base + (I2CR << reg_shift)) & I2CR_IDIS; in i2c_init_transfer_()
292 ret = !(readb(base + (I2CR << reg_shift)) & I2CR_IEN); in i2c_init_transfer_()
295 writeb(I2CR_IEN, base + (I2CR << reg_shift)); in i2c_init_transfer_()
308 temp = readb(base + (I2CR << reg_shift)); in i2c_init_transfer_()
310 writeb(temp, base + (I2CR << reg_shift)); in i2c_init_transfer_()
317 writeb(temp, base + (I2CR << reg_shift)); in i2c_init_transfer_()
437 writeb(I2CR_IDIS, i2c_bus->base + (I2CR << reg_shift)); in i2c_init_transfer()
483 temp = readb(base + (I2CR << reg_shift)); in i2c_read_data()
487 writeb(temp, base + (I2CR << reg_shift)); in i2c_read_data()
508 temp = readb(base + (I2CR << reg_shift)); in i2c_read_data()
510 writeb(temp, base + (I2CR << reg_shift)); in i2c_read_data()
543 temp = readb(base + (I2CR << reg_shift)); in bus_i2c_read()
545 writeb(temp, base + (I2CR << reg_shift)); in bus_i2c_read()
707 writeb(I2CR_IDIS, base + (I2CR << reg_shift)); in i2c_early_init_f()
710 writeb(I2CR_IEN, base + (I2CR << reg_shift)); in i2c_early_init_f()
918 ret = readb(base + (I2CR << reg_shift));
920 writeb(ret, base + (I2CR << reg_shift));