Lines Matching refs:clk_hw
143 static void __init _register_dpll(struct clk_hw *hw, in _register_dpll()
146 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local
147 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll()
163 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll()
166 omap2_init_clk_hw_omap_clocks(&clk_hw->hw); in _register_dpll()
168 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
169 kfree(clk_hw->hw.init); in _register_dpll()
174 kfree(clk_hw->dpll_data); in _register_dpll()
175 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
176 kfree(clk_hw->hw.init); in _register_dpll()
177 kfree(clk_hw); in _register_dpll()
196 struct clk_hw_omap *clk_hw; in ti_clk_register_dpll() local
217 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in ti_clk_register_dpll()
218 if (!dd || !clk_hw) { in ti_clk_register_dpll()
223 clk_hw->dpll_data = dd; in ti_clk_register_dpll()
224 clk_hw->ops = &clkhwops_omap3_dpll; in ti_clk_register_dpll()
225 clk_hw->hw.init = &init; in ti_clk_register_dpll()
226 clk_hw->flags = MEMMAP_ADDRESSING; in ti_clk_register_dpll()
266 clk = clk_register(NULL, &clk_hw->hw); in ti_clk_register_dpll()
273 kfree(clk_hw); in ti_clk_register_dpll()
295 struct clk_hw_omap *clk_hw; in _register_dpll_x2() local
305 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_dpll_x2()
306 if (!clk_hw) in _register_dpll_x2()
309 clk_hw->ops = hw_ops; in _register_dpll_x2()
310 clk_hw->hw.init = &init; in _register_dpll_x2()
318 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll_x2()
321 kfree(clk_hw); in _register_dpll_x2()
323 omap2_init_clk_hw_omap_clocks(&clk_hw->hw); in _register_dpll_x2()
341 struct clk_hw_omap *clk_hw = NULL; in of_ti_dpll_setup() local
348 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_ti_dpll_setup()
350 if (!dd || !clk_hw || !init) in of_ti_dpll_setup()
355 clk_hw->dpll_data = dd; in of_ti_dpll_setup()
356 clk_hw->ops = &clkhwops_omap3_dpll; in of_ti_dpll_setup()
357 clk_hw->hw.init = init; in of_ti_dpll_setup()
358 clk_hw->flags = MEMMAP_ADDRESSING; in of_ti_dpll_setup()
387 clk_hw->ops = &clkhwops_omap2xxx_dpll; in of_ti_dpll_setup()
388 omap2xxx_clkt_dpllcore_init(&clk_hw->hw); in of_ti_dpll_setup()
419 _register_dpll(&clk_hw->hw, node); in of_ti_dpll_setup()
426 kfree(clk_hw); in of_ti_dpll_setup()