Lines Matching refs:mcr
305 u32 mcr = 0; in load_i2c_mcr_reg() local
308 mcr |= GEN_MASK(dev->cli.slave_adr, I2C_MCR_A7, 1); in load_i2c_mcr_reg()
312 mcr |= GEN_MASK(2, I2C_MCR_AM, 12); in load_i2c_mcr_reg()
321 mcr |= GEN_MASK(slave_adr_3msb_bits, I2C_MCR_EA10, 8); in load_i2c_mcr_reg()
324 mcr |= GEN_MASK(1, I2C_MCR_AM, 12); in load_i2c_mcr_reg()
328 mcr |= GEN_MASK(0, I2C_MCR_SB, 11); in load_i2c_mcr_reg()
332 mcr |= GEN_MASK(I2C_WRITE, I2C_MCR_OP, 0); in load_i2c_mcr_reg()
334 mcr |= GEN_MASK(I2C_READ, I2C_MCR_OP, 0); in load_i2c_mcr_reg()
338 mcr |= GEN_MASK(1, I2C_MCR_STOP, 14); in load_i2c_mcr_reg()
340 mcr &= ~(GEN_MASK(1, I2C_MCR_STOP, 14)); in load_i2c_mcr_reg()
342 mcr |= GEN_MASK(dev->cli.count, I2C_MCR_LENGTH, 15); in load_i2c_mcr_reg()
344 return mcr; in load_i2c_mcr_reg()
450 u32 mcr, irq_mask; in read_i2c() local
453 mcr = load_i2c_mcr_reg(dev, flags); in read_i2c()
454 writel(mcr, dev->virtbase + I2C_MCR); in read_i2c()
519 u32 mcr, irq_mask; in write_i2c() local
522 mcr = load_i2c_mcr_reg(dev, flags); in write_i2c()
524 writel(mcr, dev->virtbase + I2C_MCR); in write_i2c()