Lines Matching refs:clk
108 static inline struct clk_hw *_get_hw(struct clk_hw_omap_comp *clk, int idx) in _get_hw() argument
110 if (!clk) in _get_hw()
113 if (!clk->comp_clks[idx]) in _get_hw()
116 return clk->comp_clks[idx]->hw; in _get_hw()
122 struct clk *ti_clk_register_composite(struct ti_clk *setup) in ti_clk_register_composite()
130 struct clk *clk; in ti_clk_register_composite() local
149 clk = clk_register_composite(NULL, setup->name, in ti_clk_register_composite()
155 return clk; in ti_clk_register_composite()
162 struct clk *clk; in _register_composite() local
213 clk = clk_register_composite(NULL, node->name, in _register_composite()
222 if (!IS_ERR(clk)) in _register_composite()
223 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_composite()
278 struct component_clk *clk; in ti_clk_add_component() local
295 clk = kzalloc(sizeof(*clk), GFP_KERNEL); in ti_clk_add_component()
296 if (!clk) { in ti_clk_add_component()
301 clk->num_parents = num_parents; in ti_clk_add_component()
302 clk->parent_names = parent_names; in ti_clk_add_component()
303 clk->hw = hw; in ti_clk_add_component()
304 clk->node = node; in ti_clk_add_component()
305 clk->type = type; in ti_clk_add_component()
306 list_add(&clk->link, &component_clks); in ti_clk_add_component()