Lines Matching refs:arch_pwrdm
61 static struct pwrdm_ops *arch_pwrdm; variable
107 if (arch_pwrdm && arch_pwrdm->pwrdm_has_voltdm) in _pwrdm_register()
108 if (!arch_pwrdm->pwrdm_has_voltdm()) in _pwrdm_register()
132 if (arch_pwrdm && arch_pwrdm->pwrdm_wait_transition) in _pwrdm_register()
133 arch_pwrdm->pwrdm_wait_transition(pwrdm); in _pwrdm_register()
244 arch_pwrdm->pwrdm_set_lowpwrstchange) { in _pwrdm_save_clkdm_state_and_activate()
279 arch_pwrdm->pwrdm_set_lowpwrstchange) in _pwrdm_restore_clkdm_state()
280 arch_pwrdm->pwrdm_set_lowpwrstchange(pwrdm); in _pwrdm_restore_clkdm_state()
303 if (arch_pwrdm) in pwrdm_register_platform_funcs()
306 arch_pwrdm = po; in pwrdm_register_platform_funcs()
325 if (!arch_pwrdm) in pwrdm_register_pwrdms()
542 if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) { in pwrdm_set_next_pwrst()
547 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); in pwrdm_set_next_pwrst()
568 if (arch_pwrdm && arch_pwrdm->pwrdm_read_next_pwrst) in pwrdm_read_next_pwrst()
569 ret = arch_pwrdm->pwrdm_read_next_pwrst(pwrdm); in pwrdm_read_next_pwrst()
593 if (arch_pwrdm && arch_pwrdm->pwrdm_read_pwrst) in pwrdm_read_pwrst()
594 ret = arch_pwrdm->pwrdm_read_pwrst(pwrdm); in pwrdm_read_pwrst()
614 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_pwrst) in pwrdm_read_prev_pwrst()
615 ret = arch_pwrdm->pwrdm_read_prev_pwrst(pwrdm); in pwrdm_read_prev_pwrst()
644 if (arch_pwrdm && arch_pwrdm->pwrdm_set_logic_retst) in pwrdm_set_logic_retst()
645 ret = arch_pwrdm->pwrdm_set_logic_retst(pwrdm, pwrst); in pwrdm_set_logic_retst()
681 if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_onst) in pwrdm_set_mem_onst()
682 ret = arch_pwrdm->pwrdm_set_mem_onst(pwrdm, bank, pwrst); in pwrdm_set_mem_onst()
719 if (arch_pwrdm && arch_pwrdm->pwrdm_set_mem_retst) in pwrdm_set_mem_retst()
720 ret = arch_pwrdm->pwrdm_set_mem_retst(pwrdm, bank, pwrst); in pwrdm_set_mem_retst()
741 if (arch_pwrdm && arch_pwrdm->pwrdm_read_logic_pwrst) in pwrdm_read_logic_pwrst()
742 ret = arch_pwrdm->pwrdm_read_logic_pwrst(pwrdm); in pwrdm_read_logic_pwrst()
762 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_logic_pwrst) in pwrdm_read_prev_logic_pwrst()
763 ret = arch_pwrdm->pwrdm_read_prev_logic_pwrst(pwrdm); in pwrdm_read_prev_logic_pwrst()
783 if (arch_pwrdm && arch_pwrdm->pwrdm_read_logic_retst) in pwrdm_read_logic_retst()
784 ret = arch_pwrdm->pwrdm_read_logic_retst(pwrdm); in pwrdm_read_logic_retst()
812 if (arch_pwrdm && arch_pwrdm->pwrdm_read_mem_pwrst) in pwrdm_read_mem_pwrst()
813 ret = arch_pwrdm->pwrdm_read_mem_pwrst(pwrdm, bank); in pwrdm_read_mem_pwrst()
842 if (arch_pwrdm && arch_pwrdm->pwrdm_read_prev_mem_pwrst) in pwrdm_read_prev_mem_pwrst()
843 ret = arch_pwrdm->pwrdm_read_prev_mem_pwrst(pwrdm, bank); in pwrdm_read_prev_mem_pwrst()
868 if (arch_pwrdm && arch_pwrdm->pwrdm_read_mem_retst) in pwrdm_read_mem_retst()
869 ret = arch_pwrdm->pwrdm_read_mem_retst(pwrdm, bank); in pwrdm_read_mem_retst()
898 if (arch_pwrdm && arch_pwrdm->pwrdm_clear_all_prev_pwrst) in pwrdm_clear_all_prev_pwrst()
899 ret = arch_pwrdm->pwrdm_clear_all_prev_pwrst(pwrdm); in pwrdm_clear_all_prev_pwrst()
927 if (arch_pwrdm && arch_pwrdm->pwrdm_enable_hdwr_sar) in pwrdm_enable_hdwr_sar()
928 ret = arch_pwrdm->pwrdm_enable_hdwr_sar(pwrdm); in pwrdm_enable_hdwr_sar()
956 if (arch_pwrdm && arch_pwrdm->pwrdm_disable_hdwr_sar) in pwrdm_disable_hdwr_sar()
957 ret = arch_pwrdm->pwrdm_disable_hdwr_sar(pwrdm); in pwrdm_disable_hdwr_sar()
978 if (!pwrdm || !arch_pwrdm) in pwrdm_state_switch_nolock()
981 ret = arch_pwrdm->pwrdm_wait_transition(pwrdm); in pwrdm_state_switch_nolock()
1159 if (arch_pwrdm && arch_pwrdm->pwrdm_save_context) in pwrdm_save_context()
1160 arch_pwrdm->pwrdm_save_context(pwrdm); in pwrdm_save_context()
1172 if (arch_pwrdm && arch_pwrdm->pwrdm_restore_context) in pwrdm_restore_context()
1173 arch_pwrdm->pwrdm_restore_context(pwrdm); in pwrdm_restore_context()