Lines Matching refs:hb_clk
49 struct hb_clk { struct
54 #define to_hb_clk(p) container_of(p, struct hb_clk, hw) argument
58 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare()
75 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare()
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable()
97 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable()
108 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate()
160 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate()
208 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate()
220 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate()
233 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate()
258 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate()
278 struct hb_clk *hb_clk; in hb_clk_init() local
289 hb_clk = kzalloc(sizeof(*hb_clk), GFP_KERNEL); in hb_clk_init()
290 if (WARN_ON(!hb_clk)) in hb_clk_init()
295 hb_clk->reg = of_iomap(srnp, 0); in hb_clk_init()
297 BUG_ON(!hb_clk->reg); in hb_clk_init()
298 hb_clk->reg += reg; in hb_clk_init()
309 hb_clk->hw.init = &init; in hb_clk_init()
311 rc = clk_hw_register(NULL, &hb_clk->hw); in hb_clk_init()
313 kfree(hb_clk); in hb_clk_init()
316 rc = of_clk_add_hw_provider(node, of_clk_hw_simple_get, &hb_clk->hw); in hb_clk_init()
317 return hb_clk->hw.clk; in hb_clk_init()