Lines Matching defs:rate
60 long rate;
62 rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw,
63 req->rate, &req->best_parent_rate);
64 if (rate < 0)
65 return rate;
67 req->rate = rate;
76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw,
80 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate,
85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw,
86 rate, parent_rate);
93 long rate;
95 rate = owl_factor_helper_round_rate(&comp->common,
96 &comp->rate.factor_hw,
97 req->rate, &req->best_parent_rate);
98 if (rate < 0)
99 return rate;
101 req->rate = rate;
111 &comp->rate.factor_hw,
115 static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate,
121 &comp->rate.factor_hw,
122 rate, parent_rate);
125 static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate,
129 struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw;
131 return comp->fix_fact_ops->round_rate(&fix_fact_hw->hw, rate, parent_rate);
138 struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw;
144 static int owl_comp_fix_fact_set_rate(struct clk_hw *hw, unsigned long rate,