Lines Matching refs:cl

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