Lines Matching refs:div_factor
253 u32 div_factor = 1, mul_factor, fr = 0; in construct_pll_config() local
257 while (reference_freq_khz / (div_factor + 1) >= 5000) in construct_pll_config()
258 div_factor++; in construct_pll_config()
259 if (div_factor > 31) in construct_pll_config()
260 div_factor = 31; in construct_pll_config()
262 mul_factor = DIV_ROUND_UP(desired_pll_freq_kbps * div_factor, in construct_pll_config()
265 output_freq_kbps = reference_freq_khz * mul_factor / div_factor; in construct_pll_config()
274 return (fr << 14) | (div_factor << 8) | mul_factor; in construct_pll_config()
280 u32 div_factor = (pll_config >> 8) & 0x1F; in decode_pll_config() local
283 if (div_factor == 0) in decode_pll_config()
284 div_factor = 1; in decode_pll_config()
285 return reference_freq_khz * mul_factor / div_factor; in decode_pll_config()