Lines Matching refs:clk_hw

32 static int dra7_apll_enable(struct clk_hw *hw)  in dra7_apll_enable()
83 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
100 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
116 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
131 struct clk_hw *hw = user; in omap_clk_register_apll()
132 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
133 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
136 const struct clk_init_data *init = clk_hw->hw.init; in omap_clk_register_apll()
163 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in omap_clk_register_apll()
172 kfree(clk_hw->dpll_data); in omap_clk_register_apll()
175 kfree(clk_hw); in omap_clk_register_apll()
181 struct clk_hw_omap *clk_hw = NULL; in of_dra7_apll_setup() local
187 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_apll_setup()
189 if (!ad || !clk_hw || !init) in of_dra7_apll_setup()
192 clk_hw->dpll_data = ad; in of_dra7_apll_setup()
193 clk_hw->hw.init = init; in of_dra7_apll_setup()
221 omap_clk_register_apll(&clk_hw->hw, node); in of_dra7_apll_setup()
227 kfree(clk_hw); in of_dra7_apll_setup()
235 static int omap2_apll_is_enabled(struct clk_hw *hw) in omap2_apll_is_enabled()
249 static unsigned long omap2_apll_recalc(struct clk_hw *hw, in omap2_apll_recalc()
260 static int omap2_apll_enable(struct clk_hw *hw) in omap2_apll_enable()
291 static void omap2_apll_disable(struct clk_hw *hw) in omap2_apll_disable()
342 struct clk_hw_omap *clk_hw = NULL; in of_omap2_apll_setup() local
351 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_omap2_apll_setup()
354 if (!ad || !clk_hw || !init) in of_omap2_apll_setup()
357 clk_hw->dpll_data = ad; in of_omap2_apll_setup()
358 clk_hw->hw.init = init; in of_omap2_apll_setup()
362 clk_hw->ops = &omap2_apll_hwops; in of_omap2_apll_setup()
377 clk_hw->fixed_rate = val; in of_omap2_apll_setup()
384 clk_hw->enable_bit = val; in of_omap2_apll_setup()
403 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in of_omap2_apll_setup()
411 kfree(clk_hw); in of_omap2_apll_setup()