Lines Matching refs:clk

26 static struct clk **clks;
29 struct clk ** __init meson_clk_init(struct device_node *np, in meson_clk_init()
43 static void meson_clk_add_lookup(struct clk *clk, unsigned int id) in meson_clk_add_lookup() argument
46 clks[id] = clk; in meson_clk_add_lookup()
49 static struct clk * __init
53 struct clk *clk; in meson_clk_register_composite() local
81 clk = ERR_PTR(-ENOMEM); in meson_clk_register_composite()
97 clk = ERR_PTR(-ENOMEM); in meson_clk_register_composite()
108 clk = clk_register_composite(NULL, clk_conf->clk_name, in meson_clk_register_composite()
115 if (IS_ERR(clk)) in meson_clk_register_composite()
118 return clk; in meson_clk_register_composite()
125 return clk; in meson_clk_register_composite()
128 static struct clk * __init
132 struct clk *clk; in meson_clk_register_fixed_factor() local
161 clk = clk_register_fixed_factor(NULL, in meson_clk_register_fixed_factor()
167 return clk; in meson_clk_register_fixed_factor()
170 static struct clk * __init
174 struct clk *clk; in meson_clk_register_fixed_rate() local
191 clk = clk_register_fixed_rate(NULL, in meson_clk_register_fixed_rate()
197 return clk; in meson_clk_register_fixed_rate()
205 struct clk *clk = NULL; in meson_clk_register_clks() local
212 clk = meson_clk_register_fixed_rate(clk_conf, in meson_clk_register_clks()
216 clk = meson_clk_register_fixed_factor(clk_conf, in meson_clk_register_clks()
220 clk = meson_clk_register_composite(clk_conf, in meson_clk_register_clks()
224 clk = meson_clk_register_cpu(clk_conf, clk_base, in meson_clk_register_clks()
228 clk = meson_clk_register_pll(clk_conf, clk_base, in meson_clk_register_clks()
232 clk = NULL; in meson_clk_register_clks()
235 if (!clk) { in meson_clk_register_clks()
241 if (IS_ERR(clk)) { in meson_clk_register_clks()
247 meson_clk_add_lookup(clk, clk_conf->clk_id); in meson_clk_register_clks()