Lines Matching refs:cl

38 	struct clk_lookup *p, *cl = NULL;
62 cl = p;
69 return cl;
74 struct clk_lookup *cl;
78 cl = clk_find(dev_id, con_id);
79 if (cl)
80 hw = cl->clk_hw;
121 static void __clkdev_add(struct clk_lookup *cl)
124 list_add_tail(&cl->node, &clocks);
128 void clkdev_add(struct clk_lookup *cl)
130 if (!cl->clk_hw)
131 cl->clk_hw = __clk_get_hw(cl->clk);
132 __clkdev_add(cl);
136 void clkdev_add_table(struct clk_lookup *cl, size_t num)
140 cl->clk_hw = __clk_get_hw(cl->clk);
141 list_add_tail(&cl->node, &clocks);
142 cl++;
151 struct clk_lookup cl;
166 cla->cl.clk_hw = hw;
169 cla->cl.con_id = cla->con_id;
174 cla->cl.dev_id = cla->dev_id;
177 return &cla->cl;
184 struct clk_lookup *cl;
186 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
187 if (cl)
188 __clkdev_add(cl);
190 return cl;
205 struct clk_lookup *cl;
209 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap);
212 return cl;
228 struct clk_lookup *cl;
232 cl = vclkdev_create(hw, con_id, dev_fmt, ap);
235 return cl;
259 void clkdev_drop(struct clk_lookup *cl)
262 list_del(&cl->node);
264 kfree(cl);
272 struct clk_lookup *cl;
276 cl = vclkdev_create(hw, con_id, dev_id, ap);
279 return cl;
283 struct clk_lookup **cl, const char *con_id, const char *dev_id)
292 *cl = __clk_register_clkdev(hw, con_id, "%s", dev_id);
294 *cl = __clk_register_clkdev(hw, con_id, NULL);
296 return *cl ? 0 : -ENOMEM;
316 struct clk_lookup *cl;
321 return do_clk_register_clkdev(__clk_get_hw(clk), &cl, con_id,
343 struct clk_lookup *cl;
345 return do_clk_register_clkdev(hw, &cl, con_id, dev_id);
372 struct clk_lookup *cl;
375 rval = do_clk_register_clkdev(hw, &cl, con_id, dev_id);
379 return devm_add_action_or_reset(dev, devm_clkdev_release, cl);