Lines Matching refs:cl
134 struct clk_lookup *p, *cl = NULL; in clk_find() local
156 cl = p; in clk_find()
163 return cl; in clk_find()
168 struct clk_lookup *cl; in clk_get_sys() local
173 cl = clk_find(dev_id, con_id); in clk_get_sys()
174 if (!cl) in clk_get_sys()
177 clk = __clk_create_clk(cl->clk_hw, dev_id, con_id); in clk_get_sys()
183 cl = NULL; in clk_get_sys()
190 return cl ? clk : ERR_PTR(-ENOENT); in clk_get_sys()
215 static void __clkdev_add(struct clk_lookup *cl) in __clkdev_add() argument
218 list_add_tail(&cl->node, &clocks); in __clkdev_add()
222 void clkdev_add(struct clk_lookup *cl) in clkdev_add() argument
224 if (!cl->clk_hw) in clkdev_add()
225 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add()
226 __clkdev_add(cl); in clkdev_add()
230 void clkdev_add_table(struct clk_lookup *cl, size_t num) in clkdev_add_table() argument
234 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add_table()
235 list_add_tail(&cl->node, &clocks); in clkdev_add_table()
236 cl++; in clkdev_add_table()
245 struct clk_lookup cl; member
260 cla->cl.clk_hw = hw; in vclkdev_alloc()
263 cla->cl.con_id = cla->con_id; in vclkdev_alloc()
268 cla->cl.dev_id = cla->dev_id; in vclkdev_alloc()
271 return &cla->cl; in vclkdev_alloc()
278 struct clk_lookup *cl; in vclkdev_create() local
280 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap); in vclkdev_create()
281 if (cl) in vclkdev_create()
282 __clkdev_add(cl); in vclkdev_create()
284 return cl; in vclkdev_create()
290 struct clk_lookup *cl; in clkdev_alloc() local
294 cl = vclkdev_alloc(__clk_get_hw(clk), con_id, dev_fmt, ap); in clkdev_alloc()
297 return cl; in clkdev_alloc()
304 struct clk_lookup *cl; in clkdev_hw_alloc() local
308 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap); in clkdev_hw_alloc()
311 return cl; in clkdev_hw_alloc()
327 struct clk_lookup *cl; in clkdev_create() local
331 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap); in clkdev_create()
334 return cl; in clkdev_create()
350 struct clk_lookup *cl; in clkdev_hw_create() local
354 cl = vclkdev_create(hw, con_id, dev_fmt, ap); in clkdev_hw_create()
357 return cl; in clkdev_hw_create()
381 void clkdev_drop(struct clk_lookup *cl) in clkdev_drop() argument
384 list_del(&cl->node); in clkdev_drop()
386 kfree(cl); in clkdev_drop()
394 struct clk_lookup *cl; in __clk_register_clkdev() local
398 cl = vclkdev_create(hw, con_id, dev_id, ap); in __clk_register_clkdev()
401 return cl; in __clk_register_clkdev()
421 struct clk_lookup *cl; in clk_register_clkdev() local
431 cl = __clk_register_clkdev(__clk_get_hw(clk), con_id, "%s", in clk_register_clkdev()
434 cl = __clk_register_clkdev(__clk_get_hw(clk), con_id, NULL); in clk_register_clkdev()
436 return cl ? 0 : -ENOMEM; in clk_register_clkdev()
457 struct clk_lookup *cl; in clk_hw_register_clkdev() local
467 cl = __clk_register_clkdev(hw, con_id, "%s", dev_id); in clk_hw_register_clkdev()
469 cl = __clk_register_clkdev(hw, con_id, NULL); in clk_hw_register_clkdev()
471 return cl ? 0 : -ENOMEM; in clk_hw_register_clkdev()