Lines Matching defs:clkdm
58 * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode
59 * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only
73 } clkdm;
79 * @clkdm: pointer to the struct clockdomain of @clkdm_name
80 * @wkdep_usecount: Number of wakeup dependencies causing this clkdm to wake
81 * @sleepdep_usecount: Number of sleep deps that could prevent clkdm from idle
83 * Statically defined. @clkdm is resolved from @clkdm_name at runtime and
90 struct clockdomain *clkdm;
109 * @prcm_partition: (OMAP4 only) PRCM partition ID for this clkdm's registers
113 * @sleepdep_srcs: Clockdomains that can be told to keep this clkdm from inact
159 * @clkdm_clk_enable: Put the clkdm in right state for a clock enable
160 * @clkdm_clk_disable: Put the clkdm in right state for a clock disable
161 * @clkdm_save_context: Save the current clkdm context
162 * @clkdm_restore_context: Restore the clkdm context
168 int (*clkdm_clear_all_wkdeps)(struct clockdomain *clkdm);
172 int (*clkdm_clear_all_sleepdeps)(struct clockdomain *clkdm);
173 int (*clkdm_sleep)(struct clockdomain *clkdm);
174 int (*clkdm_wakeup)(struct clockdomain *clkdm);
175 void (*clkdm_allow_idle)(struct clockdomain *clkdm);
176 void (*clkdm_deny_idle)(struct clockdomain *clkdm);
177 int (*clkdm_clk_enable)(struct clockdomain *clkdm);
178 int (*clkdm_clk_disable)(struct clockdomain *clkdm);
179 int (*clkdm_save_context)(struct clockdomain *clkdm);
180 int (*clkdm_restore_context)(struct clockdomain *clkdm);
190 int clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user),
192 struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm);
197 int clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
201 int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm);
203 void clkdm_allow_idle_nolock(struct clockdomain *clkdm);
204 void clkdm_allow_idle(struct clockdomain *clkdm);
205 void clkdm_deny_idle_nolock(struct clockdomain *clkdm);
206 void clkdm_deny_idle(struct clockdomain *clkdm);
208 int clkdm_wakeup(struct clockdomain *clkdm);
209 int clkdm_sleep(struct clockdomain *clkdm);
211 int clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk);
212 int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk);
213 int clkdm_hwmod_enable(struct clockdomain *clkdm, struct omap_hwmod *oh);
214 int clkdm_hwmod_disable(struct clockdomain *clkdm, struct omap_hwmod *oh);
230 extern void clkdm_add_autodeps(struct clockdomain *clkdm);
231 extern void clkdm_del_autodeps(struct clockdomain *clkdm);