Lines Matching refs:div_factor
255 u32 div_factor = 1, mul_factor, fr = 0; in construct_pll_config() local
259 while (reference_freq_khz / (div_factor + 1) >= 5000) in construct_pll_config()
260 div_factor++; in construct_pll_config()
261 if (div_factor > 31) in construct_pll_config()
262 div_factor = 31; in construct_pll_config()
264 mul_factor = DIV_ROUND_UP(desired_pll_freq_kbps * div_factor, in construct_pll_config()
267 output_freq_kbps = reference_freq_khz * mul_factor / div_factor; in construct_pll_config()
276 return (fr << 14) | (div_factor << 8) | mul_factor; in construct_pll_config()
282 u32 div_factor = (pll_config >> 8) & 0x1F; in decode_pll_config() local
285 if (div_factor == 0) in decode_pll_config()
286 div_factor = 1; in decode_pll_config()
287 return reference_freq_khz * mul_factor / div_factor; in decode_pll_config()