Lines Matching refs:rate
31 unsigned long rate = 0, prev_rate; in clk_factor_round_rate() local
35 prev_rate = rate; in clk_factor_round_rate()
36 rate = (((*prate / 10000) * factor->ftbl[i].den) / in clk_factor_round_rate()
38 if (rate > drate) in clk_factor_round_rate()
42 return rate; in clk_factor_round_rate()
44 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate()
45 return rate; in clk_factor_round_rate()
81 unsigned long prev_rate, rate = 0; in clk_factor_set_rate() local
85 prev_rate = rate; in clk_factor_set_rate()
86 rate = (((prate / 10000) * factor->ftbl[i].den) / in clk_factor_set_rate()
88 if (rate > drate) in clk_factor_set_rate()