Searched refs:inv_ratio (Results 1 – 2 of 2) sorted by relevance
16 u64 f, r, od, max_r, inv_ratio; in dm_test_k210_pll_calc_config() local22 inv_ratio = DIV_ROUND_CLOSEST_ULL((u64)rate_in << 32, rate); in dm_test_k210_pll_calc_config()33 error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, in dm_test_k210_pll_calc_config()
249 u64 ratio, inv_ratio; /* fixed point 32.32 ratio of the rates */ in k210_pll_calc_config() local266 inv_ratio = DIV_ROUND_CLOSEST_ULL((u64)rate_in << 32, rate); in k210_pll_calc_config()270 else if (rate <= rate_in && inv_ratio > (256ULL << 32)) in k210_pll_calc_config()319 u64 tmp = ++f * inv_ratio; in k210_pll_calc_config()405 error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, r * od); in k210_pll_calc_config()
Completed in 4 milliseconds