Lines Matching refs:con_id
33 char *con_id; member
176 ce->clk = clk_get(dev, ce->con_id); in pm_clk_acquire()
192 ce->clk, ce->con_id); in pm_clk_acquire()
195 static int __pm_clk_add(struct device *dev, const char *con_id, in __pm_clk_add() argument
208 if (con_id) { in __pm_clk_add()
209 ce->con_id = kstrdup(con_id, GFP_KERNEL); in __pm_clk_add()
210 if (!ce->con_id) { in __pm_clk_add()
240 int pm_clk_add(struct device *dev, const char *con_id) in pm_clk_add() argument
242 return __pm_clk_add(dev, con_id, NULL); in pm_clk_add()
375 kfree(ce->con_id); in __pm_clk_remove()
387 void pm_clk_remove(struct device *dev, const char *con_id) in pm_clk_remove() argument
398 if (!con_id && !ce->con_id) in pm_clk_remove()
400 else if (!con_id || !ce->con_id) in pm_clk_remove()
402 else if (!strcmp(con_id, ce->con_id)) in pm_clk_remove()
627 char **con_id; in pm_clk_notify() local
645 for (con_id = clknb->con_ids; *con_id; con_id++) in pm_clk_notify()
646 pm_clk_add(dev, *con_id); in pm_clk_notify()
710 static void enable_clock(struct device *dev, const char *con_id) in enable_clock() argument
714 clk = clk_get(dev, con_id); in enable_clock()
727 static void disable_clock(struct device *dev, const char *con_id) in disable_clock() argument
731 clk = clk_get(dev, con_id); in disable_clock()
755 char **con_id; in pm_clk_notify() local
764 for (con_id = clknb->con_ids; *con_id; con_id++) in pm_clk_notify()
765 enable_clock(dev, *con_id); in pm_clk_notify()
773 for (con_id = clknb->con_ids; *con_id; con_id++) in pm_clk_notify()
774 disable_clock(dev, *con_id); in pm_clk_notify()