Lines Matching refs:rate
45 unsigned long rate, unsigned long parent_rate) in _get_table_val() argument
55 if ((unsigned long)calc_rate <= rate) { in _get_table_val()
68 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() argument
76 if (!rate) in owl_clk_val_best()
77 rate = 1; in owl_clk_val_best()
81 bestval = _get_table_val(clkt, rate, parent_rate); in owl_clk_val_best()
86 try_parent_rate = rate * clkt->div / clkt->mul; in owl_clk_val_best()
104 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best()
122 unsigned long rate, in owl_factor_helper_round_rate() argument
128 val = owl_clk_val_best(factor_hw, &common->hw, rate, parent_rate); in owl_factor_helper_round_rate()
134 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_round_rate() argument
141 rate, parent_rate); in owl_factor_round_rate()
149 unsigned long long int rate; in owl_factor_helper_recalc_rate() local
168 rate = (unsigned long long int)parent_rate * mul; in owl_factor_helper_recalc_rate()
169 do_div(rate, div); in owl_factor_helper_recalc_rate()
171 return rate; in owl_factor_helper_recalc_rate()
186 unsigned long rate, in owl_factor_helper_set_rate() argument
191 val = _get_table_val(factor_hw->table, rate, parent_rate); in owl_factor_helper_set_rate()
206 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_set_rate() argument
214 rate, parent_rate); in owl_factor_set_rate()