Lines Matching refs:frac
142 struct rockchip_clk_frac *frac = to_rockchip_clk_frac_nb(nb);
143 struct clk_mux *frac_mux = &frac->mux;
149 frac->rate_change_idx =
150 frac->mux_ops->get_parent(&frac_mux->hw);
151 if (frac->rate_change_idx != frac->mux_frac_idx) {
152 frac->mux_ops->set_parent(&frac_mux->hw,
153 frac->mux_frac_idx);
154 frac->rate_change_remuxed = 1;
163 if (frac->rate_change_remuxed) {
164 frac->mux_ops->set_parent(&frac_mux->hw,
165 frac->rate_change_idx);
166 frac->rate_change_remuxed = 0;
216 struct rockchip_clk_frac *frac;
230 frac = kzalloc(sizeof(*frac), GFP_KERNEL);
231 if (!frac)
235 gate = &frac->gate;
243 div = &frac->div;
262 kfree(frac);
267 struct clk_mux *frac_mux = &frac->mux;
272 frac->mux_frac_idx = match_string(child->parent_names,
274 frac->mux_ops = &clk_mux_ops;
275 frac->clk_nb.notifier_call = rockchip_clk_frac_notifier_cb;
286 init.ops = frac->mux_ops;
292 kfree(frac);
299 if (frac->mux_frac_idx >= 0) {
301 __func__, frac->mux_frac_idx);
302 ret = clk_notifier_register(hw->clk, &frac->clk_nb);