Lines Matching refs:cclk
116 struct clk_hw_omap_comp *cclk = to_clk_hw_comp(hw); in _register_composite() local
126 if (!cclk->comp_nodes[i]) in _register_composite()
129 comp = _lookup_component(cclk->comp_nodes[i]); in _register_composite()
132 cclk->comp_nodes[i]->name, node); in _register_composite()
139 if (cclk->comp_clks[comp->type] != NULL) { in _register_composite()
145 cclk->comp_clks[comp->type] = comp; in _register_composite()
148 cclk->comp_nodes[i] = NULL; in _register_composite()
153 comp = cclk->comp_clks[i]; in _register_composite()
171 _get_hw(cclk, CLK_COMPONENT_TYPE_MUX), in _register_composite()
173 _get_hw(cclk, CLK_COMPONENT_TYPE_DIVIDER), in _register_composite()
175 _get_hw(cclk, CLK_COMPONENT_TYPE_GATE), in _register_composite()
190 if (!cclk->comp_clks[i]) in _register_composite()
192 list_del(&cclk->comp_clks[i]->link); in _register_composite()
193 kfree(cclk->comp_clks[i]->parent_names); in _register_composite()
194 kfree(cclk->comp_clks[i]); in _register_composite()
197 kfree(cclk); in _register_composite()
204 struct clk_hw_omap_comp *cclk; in of_ti_composite_clk_setup() local
214 cclk = kzalloc(sizeof(*cclk), GFP_KERNEL); in of_ti_composite_clk_setup()
215 if (!cclk) in of_ti_composite_clk_setup()
220 cclk->comp_nodes[i] = _get_component_node(node, i); in of_ti_composite_clk_setup()
222 _register_composite(&cclk->hw, node); in of_ti_composite_clk_setup()