Lines Matching +full:comp +full:- +full:disable
1 // SPDX-License-Identifier: GPL-2.0+
6 // Author: David Liu <liuwei@actions-semi.com>
11 #include <linux/clk-provider.h>
14 #include "owl-composite.h"
18 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_get_parent() local
20 return owl_mux_helper_get_parent(&comp->common, &comp->mux_hw); in owl_comp_get_parent()
25 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_set_parent() local
27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent()
32 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_disable() local
33 struct owl_clk_common *common = &comp->common; in owl_comp_disable()
35 owl_gate_set(common, &comp->gate_hw, false); in owl_comp_disable()
40 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_enable() local
41 struct owl_clk_common *common = &comp->common; in owl_comp_enable()
43 owl_gate_set(common, &comp->gate_hw, true); in owl_comp_enable()
50 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_is_enabled() local
51 struct owl_clk_common *common = &comp->common; in owl_comp_is_enabled()
53 return owl_gate_clk_is_enabled(common, &comp->gate_hw); in owl_comp_is_enabled()
59 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_div_determine_rate() local
62 rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_determine_rate()
63 req->rate, &req->best_parent_rate); in owl_comp_div_determine_rate()
67 req->rate = rate; in owl_comp_div_determine_rate()
74 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_div_recalc_rate() local
76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate()
83 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_div_set_rate() local
85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate()
92 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_fact_determine_rate() local
95 rate = owl_factor_helper_round_rate(&comp->common, in owl_comp_fact_determine_rate()
96 &comp->rate.factor_hw, in owl_comp_fact_determine_rate()
97 req->rate, &req->best_parent_rate); in owl_comp_fact_determine_rate()
101 req->rate = rate; in owl_comp_fact_determine_rate()
108 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_fact_recalc_rate() local
110 return owl_factor_helper_recalc_rate(&comp->common, in owl_comp_fact_recalc_rate()
111 &comp->rate.factor_hw, in owl_comp_fact_recalc_rate()
118 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_fact_set_rate() local
120 return owl_factor_helper_set_rate(&comp->common, in owl_comp_fact_set_rate()
121 &comp->rate.factor_hw, in owl_comp_fact_set_rate()
128 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_fix_fact_round_rate() local
129 struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw; in owl_comp_fix_fact_round_rate()
131 return comp->fix_fact_ops->round_rate(&fix_fact_hw->hw, rate, parent_rate); in owl_comp_fix_fact_round_rate()
137 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_fix_fact_recalc_rate() local
138 struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw; in owl_comp_fix_fact_recalc_rate()
140 return comp->fix_fact_ops->recalc_rate(&fix_fact_hw->hw, parent_rate); in owl_comp_fix_fact_recalc_rate()
162 .disable = owl_comp_disable,
179 .disable = owl_comp_disable,
191 .disable = owl_comp_disable,
209 .disable = owl_comp_disable,