Lines Matching refs:mul
29 unsigned int val, unsigned int *mul, unsigned int *div) in _get_table_div_mul() argument
35 *mul = clkt->mul; in _get_table_div_mul()
52 calc_rate = parent_rate * clkt->mul; in _get_table_val()
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()
103 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best()
126 unsigned int val, mul = 0, div = 1; in owl_factor_helper_round_rate() local
129 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_round_rate()
131 return *parent_rate * mul / div; in owl_factor_helper_round_rate()
150 u32 reg, val, mul, div; in owl_factor_helper_recalc_rate() local
153 mul = 0; in owl_factor_helper_recalc_rate()
160 _get_table_div_mul(clkt, val, &mul, &div); in owl_factor_helper_recalc_rate()
168 rate = (unsigned long long int)parent_rate * mul; in owl_factor_helper_recalc_rate()