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 strlcpy(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);
194 clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...)
200 cl = vclkdev_alloc(__clk_get_hw(clk), con_id, dev_fmt, ap);
208 clkdev_hw_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, ...)
214 cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
224 * @con_id: connection ID string on device
230 struct clk_lookup *clkdev_create(struct clk *clk, const char *con_id,
237 cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap);
247 * @con_id: connection ID string on device
253 struct clk_lookup *clkdev_hw_create(struct clk_hw *hw, const char *con_id,
260 cl = vclkdev_create(hw, con_id, dev_fmt, ap);
268 const char *con_id, struct device *dev)
270 struct clk *r = clk_get(dev, con_id);
297 const char *con_id,
304 cl = vclkdev_create(hw, con_id, dev_id, ap);
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);
330 * @con_id: connection ID string on device
333 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
341 int clk_register_clkdev(struct clk *clk, const char *con_id,
349 return do_clk_register_clkdev(__clk_get_hw(clk), &cl, con_id,
357 * @con_id: connection ID string on device
360 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
368 int clk_hw_register_clkdev(struct clk_hw *hw, const char *con_id,
373 return do_clk_register_clkdev(hw, &cl, con_id, dev_id);
392 * @con_id: connection ID string on device
399 void devm_clk_release_clkdev(struct device *dev, const char *con_id,
406 cl = clk_find(dev_id, con_id);
420 * @con_id: connection ID string on device
423 * con_id or dev_id may be NULL as a wildcard, just as in the rest of
432 const char *con_id, const char *dev_id)
439 rval = do_clk_register_clkdev(hw, cl, con_id, dev_id);