Lines Matching refs:rate
45 unsigned long rate, unsigned long parent_rate)
55 if ((unsigned long)calc_rate <= rate) {
68 struct clk_hw *hw, unsigned long rate,
76 if (!rate)
77 rate = 1;
81 bestval = _get_table_val(clkt, rate, parent_rate);
86 try_parent_rate = rate * clkt->div / clkt->mul;
93 * It's the most ideal case if the requested rate can be
95 * parent rate, so return the divider immediately.
104 if (cur_rate <= rate && cur_rate > best) {
122 unsigned long rate,
128 val = owl_clk_val_best(factor_hw, &common->hw, rate, parent_rate);
134 static long owl_factor_round_rate(struct clk_hw *hw, unsigned long rate,
141 rate, parent_rate);
149 unsigned long long int rate;
168 rate = (unsigned long long int)parent_rate * mul;
169 do_div(rate, div);
171 return rate;
186 unsigned long rate,
191 val = _get_table_val(factor_hw->table, rate, parent_rate);
206 static int owl_factor_set_rate(struct clk_hw *hw, unsigned long rate,
214 rate, parent_rate);