• Home
  • Raw
  • Download

Lines Matching refs:clkt

20 	const struct clk_factor_table *clkt;  in _get_table_maxval()  local
22 for (clkt = table; clkt->div; clkt++) in _get_table_maxval()
23 if (clkt->val > maxval) in _get_table_maxval()
24 maxval = clkt->val; in _get_table_maxval()
31 const struct clk_factor_table *clkt; in _get_table_div_mul() local
33 for (clkt = table; clkt->div; clkt++) { in _get_table_div_mul()
34 if (clkt->val == val) { in _get_table_div_mul()
35 *mul = clkt->mul; in _get_table_div_mul()
36 *div = clkt->div; in _get_table_div_mul()
47 const struct clk_factor_table *clkt; in _get_table_val() local
51 for (clkt = table; clkt->div; clkt++) { in _get_table_val()
52 calc_rate = parent_rate * clkt->mul; in _get_table_val()
53 do_div(calc_rate, clkt->div); in _get_table_val()
56 val = clkt->val; in _get_table_val()
71 const struct clk_factor_table *clkt = factor_hw->table; in owl_clk_val_best() local
81 bestval = _get_table_val(clkt, rate, parent_rate); in owl_clk_val_best()
85 for (clkt = factor_hw->table; clkt->div; clkt++) { in owl_clk_val_best()
86 try_parent_rate = rate * clkt->div / clkt->mul; in owl_clk_val_best()
90 __func__, clkt->val, clkt->mul, clkt->div, in owl_clk_val_best()
98 return clkt->val; in owl_clk_val_best()
103 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best()
105 bestval = clkt->val; in owl_clk_val_best()
112 bestval = _get_table_maxval(clkt); in owl_clk_val_best()
125 const struct clk_factor_table *clkt = factor_hw->table; in owl_factor_helper_round_rate() local
129 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_round_rate()
148 const struct clk_factor_table *clkt = factor_hw->table; in owl_factor_helper_recalc_rate() local
160 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_recalc_rate()