Lines Matching refs:fin_hz
110 rockchip_pll_clk_set_by_auto(ulong fin_hz, in rockchip_pll_clk_set_by_auto() argument
120 if (fin_hz == 0 || fout_hz == 0 || fout_hz == fin_hz) in rockchip_pll_clk_set_by_auto()
128 if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) { in rockchip_pll_clk_set_by_auto()
129 fin_hz /= MHZ; in rockchip_pll_clk_set_by_auto()
131 clk_gcd = gcd(fin_hz, foutvco); in rockchip_pll_clk_set_by_auto()
132 rate_table->refdiv = fin_hz / clk_gcd; in rockchip_pll_clk_set_by_auto()
138 fin_hz, fout_hz, clk_gcd); in rockchip_pll_clk_set_by_auto()
145 fin_hz, fout_hz); in rockchip_pll_clk_set_by_auto()
148 clk_gcd = gcd(fin_hz / MHZ, foutvco / MHZ); in rockchip_pll_clk_set_by_auto()
149 rate_table->refdiv = fin_hz / MHZ / clk_gcd; in rockchip_pll_clk_set_by_auto()
157 fin_64 = fin_hz; in rockchip_pll_clk_set_by_auto()
170 rk3588_pll_clk_set_by_auto(unsigned long fin_hz, in rk3588_pll_clk_set_by_auto() argument
177 if (fin_hz == 0 || fout_hz == 0 || fout_hz == fin_hz) in rk3588_pll_clk_set_by_auto()
183 if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) { in rk3588_pll_clk_set_by_auto()
191 if (fvco == m * fin_hz / p) { in rk3588_pll_clk_set_by_auto()
210 if ((fvco >= m * fin_hz / p) && (fvco < (m + 1) * fin_hz / p)) { in rk3588_pll_clk_set_by_auto()
214 fref = fin_hz / p; in rk3588_pll_clk_set_by_auto()