Lines Matching defs:pfd
37 struct clk_pfd *pfd = to_clk_pfd(hw);
39 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR);
46 struct clk_pfd *pfd = to_clk_pfd(hw);
48 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET);
54 struct clk_pfd *pfd = to_clk_pfd(hw);
56 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f;
87 struct clk_pfd *pfd = to_clk_pfd(hw);
99 writel_relaxed(0x3f << (pfd->idx * 8), pfd->reg + CLR);
100 writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET);
107 struct clk_pfd *pfd = to_clk_pfd(hw);
109 if (readl_relaxed(pfd->reg) & (1 << ((pfd->idx + 1) * 8 - 1)))
127 struct clk_pfd *pfd;
132 pfd = kzalloc(sizeof(*pfd), GFP_KERNEL);
133 if (!pfd)
136 pfd->reg = reg;
137 pfd->idx = idx;
145 pfd->hw.init = &init;
146 hw = &pfd->hw;
150 kfree(pfd);