Lines Matching refs:cclk
124 struct clk_hw_omap_comp *cclk = to_clk_hw_comp(hw); in _register_composite() local
134 if (!cclk->comp_nodes[i]) in _register_composite()
137 comp = _lookup_component(cclk->comp_nodes[i]); in _register_composite()
140 cclk->comp_nodes[i]->name, node); in _register_composite()
147 if (cclk->comp_clks[comp->type] != NULL) { in _register_composite()
153 cclk->comp_clks[comp->type] = comp; in _register_composite()
156 cclk->comp_nodes[i] = NULL; in _register_composite()
161 comp = cclk->comp_clks[i]; in _register_composite()
179 _get_hw(cclk, CLK_COMPONENT_TYPE_MUX), in _register_composite()
181 _get_hw(cclk, CLK_COMPONENT_TYPE_DIVIDER), in _register_composite()
183 _get_hw(cclk, CLK_COMPONENT_TYPE_GATE), in _register_composite()
198 if (!cclk->comp_clks[i]) in _register_composite()
200 list_del(&cclk->comp_clks[i]->link); in _register_composite()
201 kfree(cclk->comp_clks[i]->parent_names); in _register_composite()
202 kfree(cclk->comp_clks[i]); in _register_composite()
205 kfree(cclk); in _register_composite()
212 struct clk_hw_omap_comp *cclk; in of_ti_composite_clk_setup() local
222 cclk = kzalloc(sizeof(*cclk), GFP_KERNEL); in of_ti_composite_clk_setup()
223 if (!cclk) in of_ti_composite_clk_setup()
228 cclk->comp_nodes[i] = _get_component_node(node, i); in of_ti_composite_clk_setup()
230 _register_composite(&cclk->hw, node); in of_ti_composite_clk_setup()