Lines Matching refs:arch_pwrdm
64 static struct pwrdm_ops *arch_pwrdm; variable
110 if (arch_pwrdm && arch_pwrdm->pwrdm_has_voltdm) in _pwrdm_register()
111 if (!arch_pwrdm->pwrdm_has_voltdm()) in _pwrdm_register()
135 if (arch_pwrdm && arch_pwrdm->pwrdm_wait_transition) in _pwrdm_register()
136 arch_pwrdm->pwrdm_wait_transition(pwrdm); in _pwrdm_register()
247 arch_pwrdm->pwrdm_set_lowpwrstchange) { in _pwrdm_save_clkdm_state_and_activate()
282 arch_pwrdm->pwrdm_set_lowpwrstchange) in _pwrdm_restore_clkdm_state()
283 arch_pwrdm->pwrdm_set_lowpwrstchange(pwrdm); in _pwrdm_restore_clkdm_state()
306 if (arch_pwrdm) in pwrdm_register_platform_funcs()
309 arch_pwrdm = po; in pwrdm_register_platform_funcs()
328 if (!arch_pwrdm) in pwrdm_register_pwrdms()
545 if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) { in pwrdm_set_next_pwrst()
550 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); in pwrdm_set_next_pwrst()
571 if (arch_pwrdm && arch_pwrdm->pwrdm_read_next_pwrst) in pwrdm_read_next_pwrst()
572 ret = arch_pwrdm->pwrdm_read_next_pwrst(pwrdm); in pwrdm_read_next_pwrst()
596 if (arch_pwrdm && arch_pwrdm->pwrdm_read_pwrst) in pwrdm_read_pwrst()
597 ret = arch_pwrdm->pwrdm_read_pwrst(pwrdm); in pwrdm_read_pwrst()
617 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_pwrst) in pwrdm_read_prev_pwrst()
618 ret = arch_pwrdm->pwrdm_read_prev_pwrst(pwrdm); in pwrdm_read_prev_pwrst()
647 if (arch_pwrdm && arch_pwrdm->pwrdm_set_logic_retst) in pwrdm_set_logic_retst()
648 ret = arch_pwrdm->pwrdm_set_logic_retst(pwrdm, pwrst); in pwrdm_set_logic_retst()
684 if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_onst) in pwrdm_set_mem_onst()
685 ret = arch_pwrdm->pwrdm_set_mem_onst(pwrdm, bank, pwrst); in pwrdm_set_mem_onst()
722 if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_retst) in pwrdm_set_mem_retst()
723 ret = arch_pwrdm->pwrdm_set_mem_retst(pwrdm, bank, pwrst); in pwrdm_set_mem_retst()
744 if (arch_pwrdm && arch_pwrdm->pwrdm_read_logic_pwrst) in pwrdm_read_logic_pwrst()
745 ret = arch_pwrdm->pwrdm_read_logic_pwrst(pwrdm); in pwrdm_read_logic_pwrst()
765 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_logic_pwrst) in pwrdm_read_prev_logic_pwrst()
766 ret = arch_pwrdm->pwrdm_read_prev_logic_pwrst(pwrdm); in pwrdm_read_prev_logic_pwrst()
786 if (arch_pwrdm && arch_pwrdm->pwrdm_read_logic_retst) in pwrdm_read_logic_retst()
787 ret = arch_pwrdm->pwrdm_read_logic_retst(pwrdm); in pwrdm_read_logic_retst()
815 if (arch_pwrdm && arch_pwrdm->pwrdm_read_mem_pwrst) in pwrdm_read_mem_pwrst()
816 ret = arch_pwrdm->pwrdm_read_mem_pwrst(pwrdm, bank); in pwrdm_read_mem_pwrst()
845 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_mem_pwrst) in pwrdm_read_prev_mem_pwrst()
846 ret = arch_pwrdm->pwrdm_read_prev_mem_pwrst(pwrdm, bank); in pwrdm_read_prev_mem_pwrst()
871 if (arch_pwrdm && arch_pwrdm->pwrdm_read_mem_retst) in pwrdm_read_mem_retst()
872 ret = arch_pwrdm->pwrdm_read_mem_retst(pwrdm, bank); in pwrdm_read_mem_retst()
901 if (arch_pwrdm && arch_pwrdm->pwrdm_clear_all_prev_pwrst) in pwrdm_clear_all_prev_pwrst()
902 ret = arch_pwrdm->pwrdm_clear_all_prev_pwrst(pwrdm); in pwrdm_clear_all_prev_pwrst()
930 if (arch_pwrdm && arch_pwrdm->pwrdm_enable_hdwr_sar) in pwrdm_enable_hdwr_sar()
931 ret = arch_pwrdm->pwrdm_enable_hdwr_sar(pwrdm); in pwrdm_enable_hdwr_sar()
959 if (arch_pwrdm && arch_pwrdm->pwrdm_disable_hdwr_sar) in pwrdm_disable_hdwr_sar()
960 ret = arch_pwrdm->pwrdm_disable_hdwr_sar(pwrdm); in pwrdm_disable_hdwr_sar()
981 if (!pwrdm || !arch_pwrdm) in pwrdm_state_switch_nolock()
984 ret = arch_pwrdm->pwrdm_wait_transition(pwrdm); in pwrdm_state_switch_nolock()
1238 if (arch_pwrdm && arch_pwrdm->pwrdm_save_context) in pwrdm_save_context()
1239 arch_pwrdm->pwrdm_save_context(pwrdm); in pwrdm_save_context()
1251 if (arch_pwrdm && arch_pwrdm->pwrdm_restore_context) in pwrdm_restore_context()
1252 arch_pwrdm->pwrdm_restore_context(pwrdm); in pwrdm_restore_context()