Lines Matching refs:clk_hw

37 static int dra7_apll_enable(struct clk_hw *hw)  in dra7_apll_enable()
88 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
105 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
121 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
133 static void __init omap_clk_register_apll(struct clk_hw *hw, in omap_clk_register_apll()
136 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
137 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
152 clk = clk_register(NULL, &clk_hw->hw); in omap_clk_register_apll()
155 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
156 kfree(clk_hw->hw.init); in omap_clk_register_apll()
161 kfree(clk_hw->dpll_data); in omap_clk_register_apll()
162 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
163 kfree(clk_hw->hw.init); in omap_clk_register_apll()
164 kfree(clk_hw); in omap_clk_register_apll()
170 struct clk_hw_omap *clk_hw = NULL; in of_dra7_apll_setup() local
176 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_apll_setup()
178 if (!ad || !clk_hw || !init) in of_dra7_apll_setup()
181 clk_hw->dpll_data = ad; in of_dra7_apll_setup()
182 clk_hw->hw.init = init; in of_dra7_apll_setup()
183 clk_hw->flags = MEMMAP_ADDRESSING; in of_dra7_apll_setup()
212 omap_clk_register_apll(&clk_hw->hw, node); in of_dra7_apll_setup()
218 kfree(clk_hw); in of_dra7_apll_setup()
226 static int omap2_apll_is_enabled(struct clk_hw *hw) in omap2_apll_is_enabled()
240 static unsigned long omap2_apll_recalc(struct clk_hw *hw, in omap2_apll_recalc()
251 static int omap2_apll_enable(struct clk_hw *hw) in omap2_apll_enable()
282 static void omap2_apll_disable(struct clk_hw *hw) in omap2_apll_disable()
333 struct clk_hw_omap *clk_hw = NULL; in of_omap2_apll_setup() local
340 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_omap2_apll_setup()
343 if (!ad || !clk_hw || !init) in of_omap2_apll_setup()
346 clk_hw->dpll_data = ad; in of_omap2_apll_setup()
347 clk_hw->hw.init = init; in of_omap2_apll_setup()
350 clk_hw->ops = &omap2_apll_hwops; in of_omap2_apll_setup()
365 clk_hw->fixed_rate = val; in of_omap2_apll_setup()
372 clk_hw->enable_bit = val; in of_omap2_apll_setup()
391 clk = clk_register(NULL, &clk_hw->hw); in of_omap2_apll_setup()
399 kfree(clk_hw); in of_omap2_apll_setup()