Lines Matching refs:reg
29 * @reg: IO-remapped register
37 void __iomem *reg;
51 val = (readl(clock->reg) & ~(CPG_DIV6_DIV_MASK | CPG_DIV6_CKSTP))
53 writel(val, clock->reg);
63 val = readl(clock->reg);
73 writel(val, clock->reg);
80 return !(readl(clock->reg) & CPG_DIV6_CKSTP);
157 val = readl(clock->reg) & ~CPG_DIV6_DIV_MASK;
160 writel(val | CPG_DIV6_DIV(clock->div - 1), clock->reg);
174 hw_index = (readl(clock->reg) & clock->src_mask) >>
195 writel((readl(clock->reg) & ~clock->src_mask) | src, clock->reg);
239 * @reg: Mapped register used to control the DIV6 clock
245 void __iomem *reg,
258 clock->reg = reg;
264 clock->div = (readl(clock->reg) & CPG_DIV6_DIV_MASK) + 1;
324 void __iomem *reg;
340 reg = of_iomap(np, 0);
341 if (reg == NULL) {
353 clk = cpg_div6_register(clk_name, num_parents, parent_names, reg, NULL);
366 if (reg)
367 iounmap(reg);