Lines Matching refs:clk_hw
142 static void __init _register_dpll(struct clk_hw *hw, in _register_dpll()
145 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local
146 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll()
162 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll()
167 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
168 kfree(clk_hw->hw.init); in _register_dpll()
173 kfree(clk_hw->dpll_data); in _register_dpll()
174 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
175 kfree(clk_hw->hw.init); in _register_dpll()
176 kfree(clk_hw); in _register_dpll()
195 struct clk_hw_omap *clk_hw; in ti_clk_register_dpll() local
216 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in ti_clk_register_dpll()
217 if (!dd || !clk_hw) { in ti_clk_register_dpll()
222 clk_hw->dpll_data = dd; in ti_clk_register_dpll()
223 clk_hw->ops = &clkhwops_omap3_dpll; in ti_clk_register_dpll()
224 clk_hw->hw.init = &init; in ti_clk_register_dpll()
225 clk_hw->flags = MEMMAP_ADDRESSING; in ti_clk_register_dpll()
265 clk = clk_register(NULL, &clk_hw->hw); in ti_clk_register_dpll()
272 kfree(clk_hw); in ti_clk_register_dpll()
294 struct clk_hw_omap *clk_hw; in _register_dpll_x2() local
304 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_dpll_x2()
305 if (!clk_hw) in _register_dpll_x2()
308 clk_hw->ops = hw_ops; in _register_dpll_x2()
309 clk_hw->hw.init = &init; in _register_dpll_x2()
317 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll_x2()
320 kfree(clk_hw); in _register_dpll_x2()
340 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()
388 clk_hw->ops = &clkhwops_omap2xxx_dpll; in of_ti_dpll_setup()
389 omap2xxx_clkt_dpllcore_init(&clk_hw->hw); in of_ti_dpll_setup()
420 _register_dpll(&clk_hw->hw, node); in of_ti_dpll_setup()
427 kfree(clk_hw); in of_ti_dpll_setup()