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()
139 struct clk_hw *hw = user; in omap_clk_register_apll()
140 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
141 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
143 const struct clk_init_data *init = clk_hw->hw.init; in omap_clk_register_apll()
169 clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name); in omap_clk_register_apll()
178 kfree(clk_hw->dpll_data); in omap_clk_register_apll()
181 kfree(clk_hw); in omap_clk_register_apll()
187 struct clk_hw_omap *clk_hw = NULL; in of_dra7_apll_setup() local
193 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_apll_setup()
195 if (!ad || !clk_hw || !init) in of_dra7_apll_setup()
198 clk_hw->dpll_data = ad; in of_dra7_apll_setup()
199 clk_hw->hw.init = init; in of_dra7_apll_setup()
227 omap_clk_register_apll(&clk_hw->hw, node); in of_dra7_apll_setup()
233 kfree(clk_hw); in of_dra7_apll_setup()
241 static int omap2_apll_is_enabled(struct clk_hw *hw) in omap2_apll_is_enabled()
255 static unsigned long omap2_apll_recalc(struct clk_hw *hw, in omap2_apll_recalc()
266 static int omap2_apll_enable(struct clk_hw *hw) in omap2_apll_enable()
297 static void omap2_apll_disable(struct clk_hw *hw) in omap2_apll_disable()
348 struct clk_hw_omap *clk_hw = NULL; in of_omap2_apll_setup() local
356 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_omap2_apll_setup()
359 if (!ad || !clk_hw || !init) in of_omap2_apll_setup()
362 clk_hw->dpll_data = ad; in of_omap2_apll_setup()
363 clk_hw->hw.init = init; in of_omap2_apll_setup()
366 clk_hw->ops = &omap2_apll_hwops; in of_omap2_apll_setup()
381 clk_hw->fixed_rate = val; in of_omap2_apll_setup()
388 clk_hw->enable_bit = val; in of_omap2_apll_setup()
406 clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name); in of_omap2_apll_setup()
414 kfree(clk_hw); in of_omap2_apll_setup()