Lines Matching refs:clk_hw
40 static int dra7_apll_enable(struct clk_hw *hw)
91 static void dra7_apll_disable(struct clk_hw *hw)
108 static int dra7_apll_is_enabled(struct clk_hw *hw)
124 static u8 dra7_init_apll_parent(struct clk_hw *hw)
139 struct clk_hw *hw = user;
140 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw);
141 struct dpll_data *ad = clk_hw->dpll_data;
144 const struct clk_init_data *init = clk_hw->hw.init;
171 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
180 kfree(clk_hw->dpll_data);
183 kfree(clk_hw);
189 struct clk_hw_omap *clk_hw = NULL;
195 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
197 if (!ad || !clk_hw || !init)
200 clk_hw->dpll_data = ad;
201 clk_hw->hw.init = init;
229 omap_clk_register_apll(&clk_hw->hw, node);
235 kfree(clk_hw);
243 static int omap2_apll_is_enabled(struct clk_hw *hw)
257 static unsigned long omap2_apll_recalc(struct clk_hw *hw,
268 static int omap2_apll_enable(struct clk_hw *hw)
299 static void omap2_apll_disable(struct clk_hw *hw)
350 struct clk_hw_omap *clk_hw = NULL;
359 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
362 if (!ad || !clk_hw || !init)
365 clk_hw->dpll_data = ad;
366 clk_hw->hw.init = init;
370 clk_hw->ops = &omap2_apll_hwops;
385 clk_hw->fixed_rate = val;
392 clk_hw->enable_bit = val;
411 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
419 kfree(clk_hw);