Lines Matching refs:div_factor
254 u32 div_factor = 1, mul_factor, fr = 0; in construct_pll_config() local
258 while (reference_freq_khz / (div_factor + 1) >= 5000) in construct_pll_config()
259 div_factor++; in construct_pll_config()
260 if (div_factor > 31) in construct_pll_config()
261 div_factor = 31; in construct_pll_config()
263 mul_factor = DIV_ROUND_UP(desired_pll_freq_kbps * div_factor, in construct_pll_config()
266 output_freq_kbps = reference_freq_khz * mul_factor / div_factor; in construct_pll_config()
275 return (fr << 14) | (div_factor << 8) | mul_factor; in construct_pll_config()
281 u32 div_factor = (pll_config >> 8) & 0x1F; in decode_pll_config() local
284 if (div_factor == 0) in decode_pll_config()
285 div_factor = 1; in decode_pll_config()
286 return reference_freq_khz * mul_factor / div_factor; in decode_pll_config()