Lines Matching refs:con_id
33 char *con_id;
176 ce->clk = clk_get(dev, ce->con_id);
191 dev_dbg(dev, "Clock %pC con_id %s managed by runtime PM.\n",
192 ce->clk, ce->con_id);
195 static int __pm_clk_add(struct device *dev, const char *con_id,
208 if (con_id) {
209 ce->con_id = kstrdup(con_id, GFP_KERNEL);
210 if (!ce->con_id) {
235 * @con_id: Connection ID of the clock.
237 * Add the clock represented by @con_id to the list of clocks used for
240 int pm_clk_add(struct device *dev, const char *con_id)
242 return __pm_clk_add(dev, con_id, NULL);
375 kfree(ce->con_id);
382 * @con_id: Connection ID of the clock.
384 * Remove the clock represented by @con_id from the list of clocks used for
387 void pm_clk_remove(struct device *dev, const char *con_id)
398 if (!con_id && !ce->con_id)
400 else if (!con_id || !ce->con_id)
402 else if (!strcmp(con_id, ce->con_id))
627 char **con_id;
645 for (con_id = clknb->con_ids; *con_id; con_id++)
646 pm_clk_add(dev, *con_id);
708 * @con_id: Connection ID of the clock.
710 static void enable_clock(struct device *dev, const char *con_id)
714 clk = clk_get(dev, con_id);
725 * @con_id: Connection ID of the clock.
727 static void disable_clock(struct device *dev, const char *con_id)
731 clk = clk_get(dev, con_id);
755 char **con_id;
764 for (con_id = clknb->con_ids; *con_id; con_id++)
765 enable_clock(dev, *con_id);
773 for (con_id = clknb->con_ids; *con_id; con_id++)
774 disable_clock(dev, *con_id);