Lines Matching refs:powerdomain
73 struct powerdomain;
109 struct powerdomain { struct
180 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst);
181 int (*pwrdm_read_next_pwrst)(struct powerdomain *pwrdm);
182 int (*pwrdm_read_pwrst)(struct powerdomain *pwrdm);
183 int (*pwrdm_read_prev_pwrst)(struct powerdomain *pwrdm);
184 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst);
185 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
186 int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
187 int (*pwrdm_read_logic_pwrst)(struct powerdomain *pwrdm);
188 int (*pwrdm_read_prev_logic_pwrst)(struct powerdomain *pwrdm);
189 int (*pwrdm_read_logic_retst)(struct powerdomain *pwrdm);
190 int (*pwrdm_read_mem_pwrst)(struct powerdomain *pwrdm, u8 bank);
191 int (*pwrdm_read_prev_mem_pwrst)(struct powerdomain *pwrdm, u8 bank);
192 int (*pwrdm_read_mem_retst)(struct powerdomain *pwrdm, u8 bank);
193 int (*pwrdm_clear_all_prev_pwrst)(struct powerdomain *pwrdm);
194 int (*pwrdm_enable_hdwr_sar)(struct powerdomain *pwrdm);
195 int (*pwrdm_disable_hdwr_sar)(struct powerdomain *pwrdm);
196 int (*pwrdm_set_lowpwrstchange)(struct powerdomain *pwrdm);
197 int (*pwrdm_wait_transition)(struct powerdomain *pwrdm);
199 void (*pwrdm_save_context)(struct powerdomain *pwrdm);
200 void (*pwrdm_restore_context)(struct powerdomain *pwrdm);
204 int pwrdm_register_pwrdms(struct powerdomain **pwrdm_list);
207 struct powerdomain *pwrdm_lookup(const char *name);
209 int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user),
211 int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user),
214 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm);
216 int pwrdm_get_mem_bank_count(struct powerdomain *pwrdm);
218 u8 pwrdm_get_valid_lp_state(struct powerdomain *pwrdm,
221 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst);
222 int pwrdm_read_next_pwrst(struct powerdomain *pwrdm);
223 int pwrdm_read_pwrst(struct powerdomain *pwrdm);
224 int pwrdm_read_prev_pwrst(struct powerdomain *pwrdm);
225 int pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm);
227 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst);
228 int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
229 int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
231 int pwrdm_read_logic_pwrst(struct powerdomain *pwrdm);
232 int pwrdm_read_prev_logic_pwrst(struct powerdomain *pwrdm);
233 int pwrdm_read_logic_retst(struct powerdomain *pwrdm);
234 int pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank);
235 int pwrdm_read_prev_mem_pwrst(struct powerdomain *pwrdm, u8 bank);
236 int pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank);
238 int pwrdm_enable_hdwr_sar(struct powerdomain *pwrdm);
239 int pwrdm_disable_hdwr_sar(struct powerdomain *pwrdm);
240 bool pwrdm_has_hdwr_sar(struct powerdomain *pwrdm);
242 int pwrdm_state_switch_nolock(struct powerdomain *pwrdm);
243 int pwrdm_state_switch(struct powerdomain *pwrdm);
244 int pwrdm_pre_transition(struct powerdomain *pwrdm);
245 int pwrdm_post_transition(struct powerdomain *pwrdm);
246 int pwrdm_get_context_loss_count(struct powerdomain *pwrdm);
247 bool pwrdm_can_ever_lose_context(struct powerdomain *pwrdm);
249 extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u8 state);
270 extern struct powerdomain wkup_omap2_pwrdm;
271 extern struct powerdomain gfx_omap2_pwrdm;
273 extern void pwrdm_lock(struct powerdomain *pwrdm);
274 extern void pwrdm_unlock(struct powerdomain *pwrdm);