Lines Matching refs:hb_clk
37 struct hb_clk { struct
42 #define to_hb_clk(p) container_of(p, struct hb_clk, hw) argument
46 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare()
63 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare()
73 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable()
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable()
96 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate()
148 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate()
196 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate()
208 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate()
221 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate()
246 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate()
266 struct hb_clk *hb_clk; in hb_clk_init() local
277 hb_clk = kzalloc(sizeof(*hb_clk), GFP_KERNEL); in hb_clk_init()
278 if (WARN_ON(!hb_clk)) in hb_clk_init()
283 hb_clk->reg = of_iomap(srnp, 0); in hb_clk_init()
285 BUG_ON(!hb_clk->reg); in hb_clk_init()
286 hb_clk->reg += reg; in hb_clk_init()
297 hb_clk->hw.init = &init; in hb_clk_init()
299 rc = clk_hw_register(NULL, &hb_clk->hw); in hb_clk_init()
301 kfree(hb_clk); in hb_clk_init()
304 of_clk_add_hw_provider(node, of_clk_hw_simple_get, &hb_clk->hw); in hb_clk_init()