Lines Matching refs:base
54 void __iomem *base;
119 if (readl(host->base + MMC_STAT) & STAT_CLK_EN) {
123 writel(STOP_CLOCK, host->base + MMC_STRPCL);
126 v = readl(host->base + MMC_STAT);
143 writel(host->imask, host->base + MMC_I_MASK);
153 writel(host->imask, host->base + MMC_I_MASK);
172 writel(nob, host->base + MMC_NOB);
173 writel(data->blksz, host->base + MMC_BLKLEN);
178 writel((timeout + 255) / 256, host->base + MMC_RDTO);
256 writel(cmd->opcode, host->base + MMC_CMD);
257 writel(cmd->arg >> 16, host->base + MMC_ARGH);
258 writel(cmd->arg & 0xffff, host->base + MMC_ARGL);
259 writel(cmdat, host->base + MMC_CMDAT);
260 writel(host->clkrt, host->base + MMC_CLKRT);
262 writel(START_CLOCK, host->base + MMC_STRPCL);
290 v = readl(host->base + MMC_RES) & 0xffff;
292 u32 w1 = readl(host->base + MMC_RES) & 0xffff;
293 u32 w2 = readl(host->base + MMC_RES) & 0xffff;
380 ireg = readl(host->base + MMC_I_REG) & ~readl(host->base + MMC_I_MASK);
383 unsigned stat = readl(host->base + MMC_STAT);
550 writel(BUF_PART_FULL, host->base + MMC_PRTBUF);
691 host->base = devm_ioremap_resource(dev, r);
692 if (IS_ERR(host->base)) {
693 ret = PTR_ERR(host->base);
702 writel(0, host->base + MMC_SPI);
703 writel(64, host->base + MMC_RESTO);
704 writel(host->imask, host->base + MMC_I_MASK);
802 host->base + MMC_I_MASK);