Lines Matching refs:pll_cfg
97 const struct axs10x_pll_cfg *pll_cfg; member
161 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_round_rate() local
163 if (pll_cfg[0].rate == 0) in axs10x_pll_round_rate()
166 best_rate = pll_cfg[0].rate; in axs10x_pll_round_rate()
168 for (i = 1; pll_cfg[i].rate != 0; i++) { in axs10x_pll_round_rate()
169 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in axs10x_pll_round_rate()
170 best_rate = pll_cfg[i].rate; in axs10x_pll_round_rate()
181 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_set_rate() local
183 for (i = 0; pll_cfg[i].rate != 0; i++) { in axs10x_pll_set_rate()
184 if (pll_cfg[i].rate == rate) { in axs10x_pll_set_rate()
186 axs10x_encode_div(pll_cfg[i].idiv, 0)); in axs10x_pll_set_rate()
188 axs10x_encode_div(pll_cfg[i].fbdiv, 0)); in axs10x_pll_set_rate()
190 axs10x_encode_div(pll_cfg[i].odiv, 1)); in axs10x_pll_set_rate()
248 pll_clk->pll_cfg = of_device_get_match_data(dev); in axs10x_pll_clk_probe()
250 if (!pll_clk->pll_cfg) { in axs10x_pll_clk_probe()
300 pll_clk->pll_cfg = arc_pll_cfg; in of_axs10x_pll_clk_setup()