Lines Matching full:ff
144 const struct mtk_fixed_factor *ff = &clks[i]; in mtk_clk_register_factors() local
146 if (!IS_ERR_OR_NULL(clk_data->hws[ff->id])) { in mtk_clk_register_factors()
147 pr_warn("Trying to register duplicate clock ID: %d\n", ff->id); in mtk_clk_register_factors()
151 hw = clk_hw_register_fixed_factor(NULL, ff->name, ff->parent_name, in mtk_clk_register_factors()
152 CLK_SET_RATE_PARENT, ff->mult, ff->div); in mtk_clk_register_factors()
155 pr_err("Failed to register clk %s: %pe\n", ff->name, in mtk_clk_register_factors()
160 clk_data->hws[ff->id] = hw; in mtk_clk_register_factors()
167 const struct mtk_fixed_factor *ff = &clks[i]; in mtk_clk_register_factors() local
169 if (IS_ERR_OR_NULL(clk_data->hws[ff->id])) in mtk_clk_register_factors()
172 clk_hw_unregister_fixed_factor(clk_data->hws[ff->id]); in mtk_clk_register_factors()
173 clk_data->hws[ff->id] = ERR_PTR(-ENOENT); in mtk_clk_register_factors()
189 const struct mtk_fixed_factor *ff = &clks[i - 1]; in mtk_clk_unregister_factors() local
191 if (IS_ERR_OR_NULL(clk_data->hws[ff->id])) in mtk_clk_unregister_factors()
194 clk_hw_unregister_fixed_factor(clk_data->hws[ff->id]); in mtk_clk_unregister_factors()
195 clk_data->hws[ff->id] = ERR_PTR(-ENOENT); in mtk_clk_unregister_factors()