Lines Matching refs:cclk
163 struct clk_hw_omap_comp *cclk = to_clk_hw_comp(hw); in _register_composite() local
171 if (!cclk->comp_nodes[i]) in _register_composite()
174 comp = _lookup_component(cclk->comp_nodes[i]); in _register_composite()
177 cclk->comp_nodes[i]->name, node->name); in _register_composite()
184 if (cclk->comp_clks[comp->type] != NULL) { in _register_composite()
190 cclk->comp_clks[comp->type] = comp; in _register_composite()
193 cclk->comp_nodes[i] = NULL; in _register_composite()
198 comp = cclk->comp_clks[i]; in _register_composite()
215 _get_hw(cclk, CLK_COMPONENT_TYPE_MUX), in _register_composite()
217 _get_hw(cclk, CLK_COMPONENT_TYPE_DIVIDER), in _register_composite()
219 _get_hw(cclk, CLK_COMPONENT_TYPE_GATE), in _register_composite()
228 if (!cclk->comp_clks[i]) in _register_composite()
230 list_del(&cclk->comp_clks[i]->link); in _register_composite()
231 kfree(cclk->comp_clks[i]); in _register_composite()
234 kfree(cclk); in _register_composite()
241 struct clk_hw_omap_comp *cclk; in of_ti_composite_clk_setup() local
251 cclk = kzalloc(sizeof(*cclk), GFP_KERNEL); in of_ti_composite_clk_setup()
252 if (!cclk) in of_ti_composite_clk_setup()
257 cclk->comp_nodes[i] = _get_component_node(node, i); in of_ti_composite_clk_setup()
259 _register_composite(&cclk->hw, node); in of_ti_composite_clk_setup()