Lines Matching refs:rate
44 unsigned long rate, unsigned long parent_rate) in _get_table_val() argument
54 if ((unsigned long)calc_rate <= rate) { in _get_table_val()
67 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() argument
75 if (!rate) in owl_clk_val_best()
76 rate = 1; in owl_clk_val_best()
80 bestval = _get_table_val(clkt, rate, parent_rate); in owl_clk_val_best()
85 try_parent_rate = rate * clkt->div / clkt->mul; in owl_clk_val_best()
103 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best()
121 unsigned long rate, in owl_factor_helper_round_rate() argument
127 val = owl_clk_val_best(factor_hw, &common->hw, rate, parent_rate); in owl_factor_helper_round_rate()
133 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_round_rate() argument
140 rate, parent_rate); in owl_factor_round_rate()
148 unsigned long long int rate; in owl_factor_helper_recalc_rate() local
167 rate = (unsigned long long int)parent_rate * mul; in owl_factor_helper_recalc_rate()
168 do_div(rate, div); in owl_factor_helper_recalc_rate()
170 return rate; in owl_factor_helper_recalc_rate()
185 unsigned long rate, in owl_factor_helper_set_rate() argument
190 val = _get_table_val(factor_hw->table, rate, parent_rate); in owl_factor_helper_set_rate()
205 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate, in owl_factor_set_rate() argument
213 rate, parent_rate); in owl_factor_set_rate()