Lines Matching refs:n_i
588 int p_i, n_i; in clk_hclk_pll_round_rate() local
597 for (n_i = 4; n_i > 0; n_i--) { in clk_hclk_pll_round_rate()
598 m_i = div64_u64(o * n_i * (1 << p_i), i); in clk_hclk_pll_round_rate()
602 && pll_is_valid(i, n_i, 1000000, 27000000) in clk_hclk_pll_round_rate()
603 && pll_is_valid(i * m_i * (1 << p_i), n_i, in clk_hclk_pll_round_rate()
608 if (o * n_i * (1 << p_i) - i * m_i <= d) { in clk_hclk_pll_round_rate()
610 n = n_i; in clk_hclk_pll_round_rate()
612 d = o * n_i * (1 << p_i) - i * m_i; in clk_hclk_pll_round_rate()
650 u64 d_i, n_i, m, o; in clk_usb_pll_round_rate() local
676 for (n_i = 1; n_i <= 4; n_i++) { in clk_usb_pll_round_rate()
677 m = div64_u64(192000000 * d_i * n_i, o); in clk_usb_pll_round_rate()
679 && m * o == 192000000 * d_i * n_i in clk_usb_pll_round_rate()
681 && pll_is_valid(o, d_i * n_i, 1000000, 27000000))) in clk_usb_pll_round_rate()
684 clk->n_div = n_i; in clk_usb_pll_round_rate()