Lines Matching refs:clk_hw

40 static int dra7_apll_enable(struct clk_hw *hw)  in dra7_apll_enable()
91 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
108 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
124 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
136 static void __init omap_clk_register_apll(struct clk_hw *hw, in omap_clk_register_apll()
139 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
140 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
155 clk = clk_register(NULL, &clk_hw->hw); in omap_clk_register_apll()
158 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
159 kfree(clk_hw->hw.init); in omap_clk_register_apll()
164 kfree(clk_hw->dpll_data); in omap_clk_register_apll()
165 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
166 kfree(clk_hw->hw.init); in omap_clk_register_apll()
167 kfree(clk_hw); in omap_clk_register_apll()
173 struct clk_hw_omap *clk_hw = NULL; in of_dra7_apll_setup() local
178 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_apll_setup()
180 if (!ad || !clk_hw || !init) in of_dra7_apll_setup()
183 clk_hw->dpll_data = ad; in of_dra7_apll_setup()
184 clk_hw->hw.init = init; in of_dra7_apll_setup()
185 clk_hw->flags = MEMMAP_ADDRESSING; in of_dra7_apll_setup()
213 omap_clk_register_apll(&clk_hw->hw, node); in of_dra7_apll_setup()
219 kfree(clk_hw); in of_dra7_apll_setup()
227 static int omap2_apll_is_enabled(struct clk_hw *hw) in omap2_apll_is_enabled()
241 static unsigned long omap2_apll_recalc(struct clk_hw *hw, in omap2_apll_recalc()
252 static int omap2_apll_enable(struct clk_hw *hw) in omap2_apll_enable()
283 static void omap2_apll_disable(struct clk_hw *hw) in omap2_apll_disable()
334 struct clk_hw_omap *clk_hw = NULL; in of_omap2_apll_setup() local
341 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_omap2_apll_setup()
344 if (!ad || !clk_hw || !init) in of_omap2_apll_setup()
347 clk_hw->dpll_data = ad; in of_omap2_apll_setup()
348 clk_hw->hw.init = init; in of_omap2_apll_setup()
351 clk_hw->ops = &omap2_apll_hwops; in of_omap2_apll_setup()
366 clk_hw->fixed_rate = val; in of_omap2_apll_setup()
373 clk_hw->enable_bit = val; in of_omap2_apll_setup()
392 clk = clk_register(NULL, &clk_hw->hw); in of_omap2_apll_setup()
400 kfree(clk_hw); in of_omap2_apll_setup()