Lines Matching refs:rate_table
39 const struct rockchip_pll_rate_table *rate_table; member
53 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_get_pll_settings() local
57 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
58 return &rate_table[i]; in rockchip_get_pll_settings()
68 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; in rockchip_pll_round_rate() local
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
74 return rate_table[i].rate; in rockchip_pll_round_rate()
78 return rate_table[i - 1].rate; in rockchip_pll_round_rate()
854 struct rockchip_pll_rate_table *rate_table, in rockchip_clk_register_pll() argument
923 if (rate_table) { in rockchip_clk_register_pll()
927 for (len = 0; rate_table[len].rate != 0; ) in rockchip_clk_register_pll()
931 pll->rate_table = kmemdup(rate_table, in rockchip_clk_register_pll()
935 WARN(!pll->rate_table, in rockchip_clk_register_pll()
943 if (!pll->rate_table) in rockchip_clk_register_pll()
949 if (!pll->rate_table || IS_ERR(ctx->grf)) in rockchip_clk_register_pll()
955 if (!pll->rate_table) in rockchip_clk_register_pll()
984 kfree(pll->rate_table); in rockchip_clk_register_pll()