Lines Matching refs:rate
49 unsigned long rate; in clk_factors_recalc_rate() local
67 rate = (parent_rate * (n + config->n_start) * (k + 1) >> p) / (m + 1); in clk_factors_recalc_rate()
69 return rate; in clk_factors_recalc_rate()
72 static long clk_factors_round_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_round_rate() argument
76 factors->get_factors((u32 *)&rate, (u32)*parent_rate, in clk_factors_round_rate()
79 return rate; in clk_factors_round_rate()
96 parent_rate = clk_hw_round_rate(parent, req->rate); in clk_factors_determine_rate()
100 child_rate = clk_factors_round_rate(hw, req->rate, in clk_factors_determine_rate()
103 if (child_rate <= req->rate && child_rate > best_child_rate) { in clk_factors_determine_rate()
115 req->rate = best_child_rate; in clk_factors_determine_rate()
120 static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_set_rate() argument
129 factors->get_factors((u32 *)&rate, (u32)parent_rate, &n, &k, &m, &p); in clk_factors_set_rate()
147 __delay((rate >> 20) * 500 / 2); in clk_factors_set_rate()