Lines Matching refs:mult
14 unsigned long mult, min, max; member
18 struct _ccu_mult *mult) in ccu_mult_find_best() argument
23 if (_mult < mult->min) in ccu_mult_find_best()
24 _mult = mult->min; in ccu_mult_find_best()
26 if (_mult > mult->max) in ccu_mult_find_best()
27 _mult = mult->max; in ccu_mult_find_best()
29 mult->mult = _mult; in ccu_mult_find_best()
41 _cm.min = cm->mult.min; in ccu_mult_round_rate()
43 if (cm->mult.max) in ccu_mult_round_rate()
44 _cm.max = cm->mult.max; in ccu_mult_round_rate()
46 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_round_rate()
50 return *parent_rate * _cm.mult; in ccu_mult_round_rate()
85 val = reg >> cm->mult.shift; in ccu_mult_recalc_rate()
86 val &= (1 << cm->mult.width) - 1; in ccu_mult_recalc_rate()
91 return parent_rate * (val + cm->mult.offset); in ccu_mult_recalc_rate()
123 _cm.min = cm->mult.min; in ccu_mult_set_rate()
125 if (cm->mult.max) in ccu_mult_set_rate()
126 _cm.max = cm->mult.max; in ccu_mult_set_rate()
128 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_set_rate()
135 reg &= ~GENMASK(cm->mult.width + cm->mult.shift - 1, cm->mult.shift); in ccu_mult_set_rate()
136 reg |= ((_cm.mult - cm->mult.offset) << cm->mult.shift); in ccu_mult_set_rate()