Lines Matching defs:con_id
32 char *con_id;
64 ce->clk = clk_get(dev, ce->con_id);
74 "Clock %pC con_id %s managed by runtime PM.\n",
75 ce->clk, ce->con_id);
80 static int __pm_clk_add(struct device *dev, const char *con_id,
93 if (con_id) {
94 ce->con_id = kstrdup(con_id, GFP_KERNEL);
95 if (!ce->con_id) {
118 * @con_id: Connection ID of the clock.
120 * Add the clock represented by @con_id to the list of clocks used for
123 int pm_clk_add(struct device *dev, const char *con_id)
125 return __pm_clk_add(dev, con_id, NULL);
252 kfree(ce->con_id);
259 * @con_id: Connection ID of the clock.
261 * Remove the clock represented by @con_id from the list of clocks used for
264 void pm_clk_remove(struct device *dev, const char *con_id)
275 if (!con_id && !ce->con_id)
277 else if (!con_id || !ce->con_id)
279 else if (!strcmp(con_id, ce->con_id))
469 char **con_id;
487 for (con_id = clknb->con_ids; *con_id; con_id++)
488 pm_clk_add(dev, *con_id);
550 * @con_id: Connection ID of the clock.
552 static void enable_clock(struct device *dev, const char *con_id)
556 clk = clk_get(dev, con_id);
567 * @con_id: Connection ID of the clock.
569 static void disable_clock(struct device *dev, const char *con_id)
573 clk = clk_get(dev, con_id);
597 char **con_id;
606 for (con_id = clknb->con_ids; *con_id; con_id++)
607 enable_clock(dev, *con_id);
615 for (con_id = clknb->con_ids; *con_id; con_id++)
616 disable_clock(dev, *con_id);