Lines Matching refs:pfd
38 struct clk_pfd *pfd = to_clk_pfd(hw);
40 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR);
47 struct clk_pfd *pfd = to_clk_pfd(hw);
49 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET);
55 struct clk_pfd *pfd = to_clk_pfd(hw);
57 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f;
88 struct clk_pfd *pfd = to_clk_pfd(hw);
100 writel_relaxed(0x3f << (pfd->idx * 8), pfd->reg + CLR);
101 writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET);
108 struct clk_pfd *pfd = to_clk_pfd(hw);
110 if (readl_relaxed(pfd->reg) & (1 << ((pfd->idx + 1) * 8 - 1)))
128 struct clk_pfd *pfd;
133 pfd = kzalloc(sizeof(*pfd), GFP_KERNEL);
134 if (!pfd)
137 pfd->reg = reg;
138 pfd->idx = idx;
146 pfd->hw.init = &init;
147 hw = &pfd->hw;
151 kfree(pfd);