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;
196 struct clk_lookup *cl;
200 cl = vclkdev_alloc(__clk_get_hw(clk), con_id, dev_fmt, ap);
203 return cl;
210 struct clk_lookup *cl;
214 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
217 return cl;
233 struct clk_lookup *cl;
237 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap);
240 return cl;
256 struct clk_lookup *cl;
260 cl = vclkdev_create(hw, con_id, dev_fmt, ap);
263 return cl;
287 void clkdev_drop(struct clk_lookup *cl)
290 list_del(&cl->node);
292 kfree(cl);
300 struct clk_lookup *cl;
304 cl = vclkdev_create(hw, con_id, dev_id, ap);
307 return cl;
311 struct clk_lookup **cl, const char *con_id, const char *dev_id)
320 *cl = __clk_register_clkdev(hw, con_id, "%s", dev_id);
322 *cl = __clk_register_clkdev(hw, con_id, NULL);
324 return *cl ? 0 : -ENOMEM;
344 struct clk_lookup *cl;
349 return do_clk_register_clkdev(__clk_get_hw(clk), &cl, con_id,
371 struct clk_lookup *cl;
373 return do_clk_register_clkdev(hw, &cl, con_id, dev_id);
402 struct clk_lookup *cl;
406 cl = clk_find(dev_id, con_id);
409 WARN_ON(!cl);
411 devm_clk_match_clkdev, cl);
435 struct clk_lookup **cl;
437 cl = devres_alloc(devm_clkdev_release, sizeof(*cl), GFP_KERNEL);
438 if (cl) {
439 rval = do_clk_register_clkdev(hw, cl, con_id, dev_id);
441 devres_add(dev, cl);
443 devres_free(cl);