Lines Matching refs:rate

60 	long rate;  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()
64 if (rate < 0) in owl_comp_div_determine_rate()
65 return rate; in owl_comp_div_determine_rate()
67 req->rate = rate; in owl_comp_div_determine_rate()
76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate()
80 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() argument
85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate()
86 rate, parent_rate); in owl_comp_div_set_rate()
93 long rate; 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()
98 if (rate < 0) in owl_comp_fact_determine_rate()
99 return rate; in owl_comp_fact_determine_rate()
101 req->rate = rate; in owl_comp_fact_determine_rate()
111 &comp->rate.factor_hw, in owl_comp_fact_recalc_rate()
115 static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_set_rate() argument
121 &comp->rate.factor_hw, in owl_comp_fact_set_rate()
122 rate, parent_rate); in owl_comp_fact_set_rate()
125 static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_round_rate() argument
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()
138 struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw; in owl_comp_fix_fact_recalc_rate()
144 static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fix_fact_set_rate() argument