Lines Matching refs:clk_hw
32 static int dra7_apll_enable(struct clk_hw *hw)
83 static void dra7_apll_disable(struct clk_hw *hw)
100 static int dra7_apll_is_enabled(struct clk_hw *hw)
116 static u8 dra7_init_apll_parent(struct clk_hw *hw)
131 struct clk_hw *hw = user;
132 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw);
133 struct dpll_data *ad = clk_hw->dpll_data;
136 const struct clk_init_data *init = clk_hw->hw.init;
163 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
172 kfree(clk_hw->dpll_data);
175 kfree(clk_hw);
181 struct clk_hw_omap *clk_hw = NULL;
187 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
189 if (!ad || !clk_hw || !init)
192 clk_hw->dpll_data = ad;
193 clk_hw->hw.init = init;
221 omap_clk_register_apll(&clk_hw->hw, node);
227 kfree(clk_hw);
235 static int omap2_apll_is_enabled(struct clk_hw *hw)
249 static unsigned long omap2_apll_recalc(struct clk_hw *hw,
260 static int omap2_apll_enable(struct clk_hw *hw)
291 static void omap2_apll_disable(struct clk_hw *hw)
342 struct clk_hw_omap *clk_hw = NULL;
351 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL);
354 if (!ad || !clk_hw || !init)
357 clk_hw->dpll_data = ad;
358 clk_hw->hw.init = init;
362 clk_hw->ops = &omap2_apll_hwops;
377 clk_hw->fixed_rate = val;
379 clk_hw->enable_bit = ti_clk_get_legacy_bit_shift(node);
380 ad->enable_mask = 0x3 << clk_hw->enable_bit;
381 ad->autoidle_mask = 0x3 << clk_hw->enable_bit;
398 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
406 kfree(clk_hw);