Lines Matching defs:con_id
36 static struct clk_lookup *clk_find(const char *dev_id, const char *con_id)
43 if (con_id)
55 if (p->con_id) {
56 if (!con_id || strcmp(p->con_id, con_id))
72 struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id)
78 cl = clk_find(dev_id, con_id);
87 const char *con_id)
89 struct clk_hw *hw = clk_find_hw(dev_id, con_id);
91 return clk_hw_create_clk(dev, hw, dev_id, con_id);
94 struct clk *clk_get_sys(const char *dev_id, const char *con_id)
96 return __clk_get_sys(NULL, dev_id, con_id);
100 struct clk *clk_get(struct device *dev, const char *con_id)
106 hw = of_clk_get_hw(dev->of_node, 0, con_id);
108 return clk_hw_create_clk(dev, hw, dev_id, con_id);
111 return __clk_get_sys(dev, dev_id, con_id);
153 char con_id[MAX_CON_ID];
157 vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
167 if (con_id) {
168 strscpy(cla->con_id, con_id, sizeof(cla->con_id));
169 cla->cl.con_id = cla->con_id;
181 vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
186 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
196 * @con_id: connection ID string on device
202 struct clk_lookup *clkdev_create(struct clk *clk, const char *con_id,
209 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap);
219 * @con_id: connection ID string on device
225 struct clk_lookup *clkdev_hw_create(struct clk_hw *hw, const char *con_id,
232 cl = vclkdev_create(hw, con_id, dev_fmt, ap);
240 const char *con_id, struct device *dev)
242 struct clk *r = clk_get(dev, con_id);
269 const char *con_id,
276 cl = vclkdev_create(hw, con_id, dev_id, ap);
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);
302 * @con_id: connection ID string on device
305 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
313 int clk_register_clkdev(struct clk *clk, const char *con_id,
321 return do_clk_register_clkdev(__clk_get_hw(clk), &cl, con_id,
329 * @con_id: connection ID string on device
332 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
340 int clk_hw_register_clkdev(struct clk_hw *hw, const char *con_id,
345 return do_clk_register_clkdev(hw, &cl, con_id, dev_id);
358 * @con_id: connection ID string on device
361 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
370 const char *con_id, const char *dev_id)
375 rval = do_clk_register_clkdev(hw, &cl, con_id, dev_id);