Lines Matching defs:rate
72 unsigned long rate;
121 return clkdata->rate;
125 * This returns the index of the clk_freqs[] cfg with the closest rate for
127 * the rate of the returned cfg is an exact match.
129 static unsigned int tps68470_clk_cfg_lookup(unsigned long rate)
135 diff = clk_freqs[i].freq - rate;
149 static long tps68470_clk_round_rate(struct clk_hw *hw, unsigned long rate,
152 unsigned int idx = tps68470_clk_cfg_lookup(rate);
157 static int tps68470_clk_set_rate(struct clk_hw *hw, unsigned long rate,
161 unsigned int idx = tps68470_clk_cfg_lookup(rate);
163 if (rate != clk_freqs[idx].freq)
179 clkdata->rate = rate;
215 /* Set initial rate */