Lines Matching defs: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;
173 cla->cl.clk_hw = hw;
181 cla->cl.con_id = cla->con_id;
191 cla->cl.dev_id = cla->dev_id;
196 return &cla->cl;
215 struct clk_lookup *cl;
217 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
218 if (cl)
219 __clkdev_add(cl);
221 return cl;
236 struct clk_lookup *cl;
240 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap);
243 return cl;
259 struct clk_lookup *cl;
263 cl = vclkdev_create(hw, con_id, dev_fmt, ap);
266 return cl;
290 void clkdev_drop(struct clk_lookup *cl)
293 list_del(&cl->node);
295 kfree(cl);
303 struct clk_lookup *cl;
307 cl = vclkdev_create(hw, con_id, dev_id, ap);
310 return cl;
314 struct clk_lookup **cl, const char *con_id, const char *dev_id)
323 *cl = __clk_register_clkdev(hw, con_id, "%s", dev_id);
325 *cl = __clk_register_clkdev(hw, con_id, NULL);
327 return *cl ? 0 : -ENOMEM;
347 struct clk_lookup *cl;
352 return do_clk_register_clkdev(__clk_get_hw(clk), &cl, con_id,
374 struct clk_lookup *cl;
376 return do_clk_register_clkdev(hw, &cl, con_id, dev_id);
403 struct clk_lookup *cl;
406 rval = do_clk_register_clkdev(hw, &cl, con_id, dev_id);
410 return devm_add_action_or_reset(dev, devm_clkdev_release, cl);