Lines Matching refs:base
40 void __iomem *base; member
56 void __iomem *base = _context->base; in rockchip_efuse_read() local
67 writel(EFUSE_LOAD | EFUSE_PGENB, base + REG_EFUSE_CTRL); in rockchip_efuse_read()
70 writel(readl(base + REG_EFUSE_CTRL) & in rockchip_efuse_read()
72 base + REG_EFUSE_CTRL); in rockchip_efuse_read()
73 writel(readl(base + REG_EFUSE_CTRL) | in rockchip_efuse_read()
75 base + REG_EFUSE_CTRL); in rockchip_efuse_read()
77 writel(readl(base + REG_EFUSE_CTRL) | in rockchip_efuse_read()
78 EFUSE_STROBE, base + REG_EFUSE_CTRL); in rockchip_efuse_read()
80 *buf++ = readb(base + REG_EFUSE_DOUT); in rockchip_efuse_read()
81 writel(readl(base + REG_EFUSE_CTRL) & in rockchip_efuse_read()
82 (~EFUSE_STROBE), base + REG_EFUSE_CTRL); in rockchip_efuse_read()
90 writel(EFUSE_PGENB | EFUSE_CSB, base + REG_EFUSE_CTRL); in rockchip_efuse_read()
128 void __iomem *base; in rockchip_efuse_probe() local
133 base = devm_ioremap_resource(dev, res); in rockchip_efuse_probe()
134 if (IS_ERR(base)) in rockchip_efuse_probe()
135 return PTR_ERR(base); in rockchip_efuse_probe()
147 context->base = base; in rockchip_efuse_probe()