Home
last modified time | relevance | path

Searched refs:k_frac (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/tuners/
H A Dmsi001.c87 unsigned int uitmp, div_n, k, k_thresh, k_frac, div_lo, f_if1; in msi001_set_tuner() local
213 k_frac = div_u64((u64) k * k_thresh, (DIV_PRE_N * F_REF)); in msi001_set_tuner()
216 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner()
218 k_frac /= uitmp; in msi001_set_tuner()
223 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp); in msi001_set_tuner()
227 uitmp += (unsigned int) F_REF * DIV_PRE_N * k_frac / k_thresh; in msi001_set_tuner()
232 f_rf, uitmp, f_vco, div_n, k_thresh, k_frac, div_lo); in msi001_set_tuner()
261 reg |= k_frac << 4; in msi001_set_tuner()