Lines Matching refs:clkt
19 const struct clk_factor_table *clkt; in _get_table_maxval() local
21 for (clkt = table; clkt->div; clkt++) in _get_table_maxval()
22 if (clkt->val > maxval) in _get_table_maxval()
23 maxval = clkt->val; in _get_table_maxval()
30 const struct clk_factor_table *clkt; in _get_table_div_mul() local
32 for (clkt = table; clkt->div; clkt++) { in _get_table_div_mul()
33 if (clkt->val == val) { in _get_table_div_mul()
34 *mul = clkt->mul; in _get_table_div_mul()
35 *div = clkt->div; in _get_table_div_mul()
46 const struct clk_factor_table *clkt; in _get_table_val() local
50 for (clkt = table; clkt->div; clkt++) { in _get_table_val()
51 calc_rate = parent_rate * clkt->mul; in _get_table_val()
52 do_div(calc_rate, clkt->div); in _get_table_val()
55 val = clkt->val; in _get_table_val()
70 const struct clk_factor_table *clkt = factor_hw->table; in owl_clk_val_best() local
80 bestval = _get_table_val(clkt, rate, parent_rate); in owl_clk_val_best()
84 for (clkt = factor_hw->table; clkt->div; clkt++) { in owl_clk_val_best()
85 try_parent_rate = rate * clkt->div / clkt->mul; in owl_clk_val_best()
89 __func__, clkt->val, clkt->mul, clkt->div, in owl_clk_val_best()
97 return clkt->val; in owl_clk_val_best()
102 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best()
104 bestval = clkt->val; in owl_clk_val_best()
111 bestval = _get_table_maxval(clkt); in owl_clk_val_best()
124 const struct clk_factor_table *clkt = factor_hw->table; in owl_factor_helper_round_rate() local
128 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_round_rate()
147 const struct clk_factor_table *clkt = factor_hw->table; in owl_factor_helper_recalc_rate() local
159 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_recalc_rate()