Lines Matching refs:base
85 void __iomem *base;
117 writeb(x, i2c->base + MPC_I2C_CR);
132 writeb(0, i2c->base + MPC_I2C_SR); /* clear any status bits */
134 readb(i2c->base + MPC_I2C_DR); /* init xfer */
138 readb(i2c->base + MPC_I2C_DR);
144 readb(i2c->base + MPC_I2C_DR);
151 void __iomem *addr = i2c->base + MPC_I2C_SR;
189 val = readb(i2c->base + MPC_I2C_SR);
200 val = readb(i2c->base + MPC_I2C_DR);
208 val = readb(i2c->base + MPC_I2C_DR);
283 readb(i2c->base + MPC_I2C_FDR));
290 writeb(fdr & 0xff, i2c->base + MPC_I2C_FDR);
469 readb(i2c->base + MPC_I2C_DFSRR),
470 readb(i2c->base + MPC_I2C_FDR));
477 writeb(fdr & 0xff, i2c->base + MPC_I2C_FDR);
478 writeb((fdr >> 8) & 0xff, i2c->base + MPC_I2C_DFSRR);
529 writeb((msg->addr << 1) | dir, i2c->base + MPC_I2C_DR);
541 readb(i2c->base + MPC_I2C_DR);
558 byte = readb(i2c->base + MPC_I2C_DR);
583 writeb(msg->buf[i2c->byte_posn++], i2c->base + MPC_I2C_DR);
648 status = readb(i2c->base + MPC_I2C_SR);
651 readb_poll_timeout_atomic(i2c->base + MPC_I2C_SR, status, status & CSR_MCF, 0, 100);
652 writeb(0, i2c->base + MPC_I2C_SR);
687 writeb(0, i2c->base + MPC_I2C_SR);
703 while (readb(i2c->base + MPC_I2C_SR) & CSR_MBB) {
705 u8 status = readb(i2c->base + MPC_I2C_SR);
710 i2c->base + MPC_I2C_SR);
798 i2c->base = devm_platform_ioremap_resource(op, 0);
799 if (IS_ERR(i2c->base))
800 return PTR_ERR(i2c->base);
907 i2c->fdr = readb(i2c->base + MPC_I2C_FDR);
908 i2c->dfsrr = readb(i2c->base + MPC_I2C_DFSRR);
917 writeb(i2c->fdr, i2c->base + MPC_I2C_FDR);
918 writeb(i2c->dfsrr, i2c->base + MPC_I2C_DFSRR);