Lines Matching refs:frac
145 struct rockchip_clk_frac *frac = to_rockchip_clk_frac_nb(nb);
146 struct clk_mux *frac_mux = &frac->mux;
152 frac->rate_change_idx =
153 frac->mux_ops->get_parent(&frac_mux->hw);
154 if (frac->rate_change_idx != frac->mux_frac_idx) {
155 frac->mux_ops->set_parent(&frac_mux->hw,
156 frac->mux_frac_idx);
157 frac->rate_change_remuxed = 1;
166 if (frac->rate_change_remuxed) {
167 frac->mux_ops->set_parent(&frac_mux->hw,
168 frac->rate_change_idx);
169 frac->rate_change_remuxed = 0;
215 struct rockchip_clk_frac *frac;
229 frac = kzalloc(sizeof(*frac), GFP_KERNEL);
230 if (!frac)
234 gate = &frac->gate;
242 div = &frac->div;
259 kfree(frac);
264 struct clk_mux *frac_mux = &frac->mux;
269 frac->mux_frac_idx = match_string(child->parent_names,
271 frac->mux_ops = &clk_mux_ops;
272 frac->clk_nb.notifier_call = rockchip_clk_frac_notifier_cb;
285 init.ops = frac->mux_ops;
291 kfree(frac);
298 if (frac->mux_frac_idx >= 0) {
300 __func__, frac->mux_frac_idx);
301 ret = clk_notifier_register(hw->clk, &frac->clk_nb);