Lines Matching defs:rate
21 static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate,
26 div = div_frac_get(rate, parent_rate, divider->width,
41 u64 rate = parent_rate;
47 return rate;
54 rate *= mul;
55 rate += div - 1;
56 do_div(rate, div);
58 return rate;
61 static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate,
68 if (!rate)
71 div = get_div(divider, rate, output_rate);
80 static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate,
88 div = get_div(divider, rate, parent_rate);
121 unsigned long rate = clk_hw_get_rate(hw);
123 if (clk_frac_div_set_rate(hw, rate, parent_rate) < 0)