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()
82 static long clk_factors_determine_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_determine_rate() argument
97 parent_rate = __clk_round_rate(parent, rate); in clk_factors_determine_rate()
101 child_rate = clk_factors_round_rate(hw, rate, &parent_rate); in clk_factors_determine_rate()
103 if (child_rate <= rate && child_rate > best_child_rate) { in clk_factors_determine_rate()
117 static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_set_rate() argument
126 factors->get_factors((u32 *)&rate, (u32)parent_rate, &n, &k, &m, &p); in clk_factors_set_rate()
144 __delay((rate >> 20) * 500 / 2); in clk_factors_set_rate()