Searched refs:k_thresh (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/media/tuners/ |
D | msi001.c | 87 unsigned int uitmp, div_n, k, k_thresh, k_frac, div_lo, f_if1; in msi001_set_tuner() local 212 k_thresh = (DIV_PRE_N * F_REF) / F_VCO_STEP; in msi001_set_tuner() 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() 217 k_thresh /= uitmp; in msi001_set_tuner() 221 uitmp = DIV_ROUND_UP(k_thresh, 4095); in msi001_set_tuner() 222 k_thresh = DIV_ROUND_CLOSEST(k_thresh, 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() 253 reg |= k_thresh << 4; in msi001_set_tuner()
|