Lines Matching refs:pll_cfg
94 const struct axs10x_pll_cfg *pll_cfg; member
158 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_round_rate() local
160 if (pll_cfg[0].rate == 0) in axs10x_pll_round_rate()
163 best_rate = pll_cfg[0].rate; in axs10x_pll_round_rate()
165 for (i = 1; pll_cfg[i].rate != 0; i++) { in axs10x_pll_round_rate()
166 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in axs10x_pll_round_rate()
167 best_rate = pll_cfg[i].rate; in axs10x_pll_round_rate()
178 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_set_rate() local
180 for (i = 0; pll_cfg[i].rate != 0; i++) { in axs10x_pll_set_rate()
181 if (pll_cfg[i].rate == rate) { in axs10x_pll_set_rate()
183 axs10x_encode_div(pll_cfg[i].idiv, 0)); in axs10x_pll_set_rate()
185 axs10x_encode_div(pll_cfg[i].fbdiv, 0)); in axs10x_pll_set_rate()
187 axs10x_encode_div(pll_cfg[i].odiv, 1)); in axs10x_pll_set_rate()
242 pll_clk->pll_cfg = of_device_get_match_data(dev); in axs10x_pll_clk_probe()
244 if (!pll_clk->pll_cfg) { in axs10x_pll_clk_probe()
288 pll_clk->pll_cfg = arc_pll_cfg; in of_axs10x_pll_clk_setup()