/trusted-firmware-a/plat/mediatek/mt8195/drivers/spm/constraints/ |
A D | mt_spm_rc_internal.h | 19 unsigned int spm_allow_rc_cpu_buck_ldo(int state_id); 24 bool spm_is_valid_rc_dram(unsigned int cpu, int state_id); 26 unsigned int spm_allow_rc_dram(int state_id); 27 int spm_run_rc_dram(unsigned int cpu, int state_id); 28 int spm_reset_rc_dram(unsigned int cpu, int state_id); 33 unsigned int spm_allow_rc_syspll(int state_id); 34 int spm_run_rc_syspll(unsigned int cpu, int state_id); 35 int spm_reset_rc_syspll(unsigned int cpu, int state_id); 40 unsigned int spm_allow_rc_bus26m(int state_id); 41 int spm_run_rc_bus26m(unsigned int cpu, int state_id); [all …]
|
A D | mt_spm_rc_cpu_buck_ldo.c | 56 (void)state_id; in spm_is_valid_rc_cpu_buck_ldo() 61 unsigned int spm_allow_rc_cpu_buck_ldo(int state_id) in spm_allow_rc_cpu_buck_ldo() argument 63 (void)state_id; in spm_allow_rc_cpu_buck_ldo() 68 int spm_run_rc_cpu_buck_ldo(unsigned int cpu, int state_id) in spm_run_rc_cpu_buck_ldo() argument 74 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_cpu_buck_ldo() 77 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_cpu_buck_ldo() 78 mt_spm_suspend_enter(state_id, in spm_run_rc_cpu_buck_ldo() 83 mt_spm_idle_generic_enter(state_id, 0U, in spm_run_rc_cpu_buck_ldo() 92 int spm_reset_rc_cpu_buck_ldo(unsigned int cpu, int state_id) in spm_reset_rc_cpu_buck_ldo() argument 99 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_cpu_buck_ldo() [all …]
|
A D | mt_spm_rc_dram.c | 96 (void)state_id; in spm_is_valid_rc_dram() 115 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_dram() 126 unsigned int spm_allow_rc_dram(int state_id) in spm_allow_rc_dram() argument 128 (void)state_id; in spm_allow_rc_dram() 133 int spm_run_rc_dram(unsigned int cpu, int state_id) in spm_run_rc_dram() argument 150 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_dram() 156 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_dram() 157 mt_spm_suspend_enter(state_id, in spm_run_rc_dram() 169 int spm_reset_rc_dram(unsigned int cpu, int state_id) in spm_reset_rc_dram() argument 190 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_dram() [all …]
|
A D | mt_spm_rc_syspll.c | 94 (void)state_id; in spm_is_valid_rc_syspll() 114 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_syspll() 125 unsigned int spm_allow_rc_syspll(int state_id) in spm_allow_rc_syspll() argument 127 (void)state_id; in spm_allow_rc_syspll() 132 int spm_run_rc_syspll(unsigned int cpu, int state_id) in spm_run_rc_syspll() argument 149 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_syspll() 155 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_syspll() 156 mt_spm_suspend_enter(state_id, in spm_run_rc_syspll() 188 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_syspll() 189 mt_spm_suspend_resume(state_id, in spm_reset_rc_syspll() [all …]
|
A D | mt_spm_rc_bus26m.c | 156 (void)state_id; in spm_is_valid_rc_bus26m() 176 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_bus26m() 189 unsigned int spm_allow_rc_bus26m(int state_id) in spm_allow_rc_bus26m() argument 191 (void)state_id; in spm_allow_rc_bus26m() 196 int spm_run_rc_bus26m(unsigned int cpu, int state_id) in spm_run_rc_bus26m() argument 202 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_bus26m() 205 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_bus26m() 206 mt_spm_suspend_enter(state_id, in spm_run_rc_bus26m() 229 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_bus26m() 231 mt_spm_suspend_resume(state_id, ext_op, NULL); in spm_reset_rc_bus26m() [all …]
|
/trusted-firmware-a/plat/mediatek/mt8192/drivers/spm/constraints/ |
A D | mt_spm_rc_internal.h | 21 unsigned int spm_allow_rc_cpu_buck_ldo(int state_id); 26 bool spm_is_valid_rc_dram(unsigned int cpu, int state_id); 28 unsigned int spm_allow_rc_dram(int state_id); 29 int spm_run_rc_dram(unsigned int cpu, int state_id); 30 int spm_reset_rc_dram(unsigned int cpu, int state_id); 35 unsigned int spm_allow_rc_syspll(int state_id); 36 int spm_run_rc_syspll(unsigned int cpu, int state_id); 37 int spm_reset_rc_syspll(unsigned int cpu, int state_id); 42 unsigned int spm_allow_rc_bus26m(int state_id); 43 int spm_run_rc_bus26m(unsigned int cpu, int state_id); [all …]
|
A D | mt_spm_rc_cpu_buck_ldo.c | 55 (void)state_id; in spm_is_valid_rc_cpu_buck_ldo() 60 unsigned int spm_allow_rc_cpu_buck_ldo(int state_id) in spm_allow_rc_cpu_buck_ldo() argument 62 (void)state_id; in spm_allow_rc_cpu_buck_ldo() 67 int spm_run_rc_cpu_buck_ldo(unsigned int cpu, int state_id) in spm_run_rc_cpu_buck_ldo() argument 73 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_cpu_buck_ldo() 76 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_cpu_buck_ldo() 77 mt_spm_suspend_enter(state_id, in spm_run_rc_cpu_buck_ldo() 81 mt_spm_idle_generic_enter(state_id, 0U, in spm_run_rc_cpu_buck_ldo() 90 int spm_reset_rc_cpu_buck_ldo(unsigned int cpu, int state_id) in spm_reset_rc_cpu_buck_ldo() argument 97 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_cpu_buck_ldo() [all …]
|
A D | mt_spm_rc_dram.c | 87 (void)state_id; in spm_is_valid_rc_dram() 106 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_dram() 117 unsigned int spm_allow_rc_dram(int state_id) in spm_allow_rc_dram() argument 119 (void)state_id; in spm_allow_rc_dram() 124 int spm_run_rc_dram(unsigned int cpu, int state_id) in spm_run_rc_dram() argument 141 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_dram() 147 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_dram() 148 mt_spm_suspend_enter(state_id, in spm_run_rc_dram() 159 int spm_reset_rc_dram(unsigned int cpu, int state_id) in spm_reset_rc_dram() argument 180 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_dram() [all …]
|
A D | mt_spm_rc_syspll.c | 86 (void)state_id; in spm_is_valid_rc_syspll() 106 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_syspll() 117 unsigned int spm_allow_rc_syspll(int state_id) in spm_allow_rc_syspll() argument 119 (void)state_id; in spm_allow_rc_syspll() 124 int spm_run_rc_syspll(unsigned int cpu, int state_id) in spm_run_rc_syspll() argument 141 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_syspll() 147 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_syspll() 148 mt_spm_suspend_enter(state_id, in spm_run_rc_syspll() 180 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_syspll() 181 mt_spm_suspend_resume(state_id, in spm_reset_rc_syspll() [all …]
|
A D | mt_spm_rc_bus26m.c | 146 (void)state_id; in spm_is_valid_rc_bus26m() 166 mt_spm_cond_check(state_id, tlb, tlb_check, in spm_update_rc_bus26m() 179 unsigned int spm_allow_rc_bus26m(int state_id) in spm_allow_rc_bus26m() argument 181 (void)state_id; in spm_allow_rc_bus26m() 186 int spm_run_rc_bus26m(unsigned int cpu, int state_id) in spm_run_rc_bus26m() argument 192 (IS_PLAT_SUSPEND_ID(state_id) ? in spm_run_rc_bus26m() 195 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_run_rc_bus26m() 196 mt_spm_suspend_enter(state_id, in spm_run_rc_bus26m() 218 if (IS_PLAT_SUSPEND_ID(state_id)) { in spm_reset_rc_bus26m() 220 mt_spm_suspend_resume(state_id, ext_op, NULL); in spm_reset_rc_bus26m() [all …]
|
/trusted-firmware-a/plat/mediatek/mt8195/drivers/spm/ |
A D | mt_spm_conservation.c | 21 static int go_to_spm_before_wfi(int state_id, unsigned int ext_opand, in go_to_spm_before_wfi() argument 50 if (IS_PLAT_SUSPEND_ID(state_id)) { in go_to_spm_before_wfi() 70 static void go_to_spm_after_wfi(int state_id, unsigned int ext_opand, in go_to_spm_after_wfi() argument 98 if (IS_PLAT_SUSPEND_ID(state_id)) { in go_to_spm_after_wfi() 99 __spm_output_wake_reason(state_id, &spm_wakesta); in go_to_spm_after_wfi() 103 int spm_conservation(int state_id, unsigned int ext_opand, in spm_conservation() argument 111 go_to_spm_before_wfi(state_id, ext_opand, spm_lp, resource_req); in spm_conservation() 117 void spm_conservation_finish(int state_id, unsigned int ext_opand, in spm_conservation_finish() argument 122 go_to_spm_after_wfi(state_id, ext_opand, spm_lp, status); in spm_conservation_finish()
|
A D | mt_spm_idle.h | 12 int mt_spm_idle_generic_enter(int state_id, unsigned int ext_opand, 14 void mt_spm_idle_generic_resume(int state_id, unsigned int ext_opand,
|
A D | mt_spm_suspend.h | 21 extern int mt_spm_suspend_enter(int state_id, unsigned int ext_opand, 23 extern void mt_spm_suspend_resume(int state_id, unsigned int ext_opand,
|
A D | mt_spm_conservation.h | 12 extern int spm_conservation(int state_id, unsigned int ext_opand, 15 extern void spm_conservation_finish(int state_id, unsigned int ext_opand,
|
/trusted-firmware-a/plat/mediatek/mt8192/drivers/spm/ |
A D | mt_spm_conservation.c | 22 static int go_to_spm_before_wfi(int state_id, unsigned int ext_opand, in go_to_spm_before_wfi() argument 52 if (IS_PLAT_SUSPEND_ID(state_id)) { in go_to_spm_before_wfi() 70 static void go_to_spm_after_wfi(int state_id, unsigned int ext_opand, in go_to_spm_after_wfi() argument 98 if (IS_PLAT_SUSPEND_ID(state_id)) { in go_to_spm_after_wfi() 99 __spm_output_wake_reason(state_id, &spm_wakesta); in go_to_spm_after_wfi() 103 int spm_conservation(int state_id, unsigned int ext_opand, in spm_conservation() argument 111 go_to_spm_before_wfi(state_id, ext_opand, spm_lp, resource_req); in spm_conservation() 117 void spm_conservation_finish(int state_id, unsigned int ext_opand, in spm_conservation_finish() argument 122 go_to_spm_after_wfi(state_id, ext_opand, spm_lp, status); in spm_conservation_finish()
|
A D | mt_spm_idle.h | 12 int mt_spm_idle_generic_enter(int state_id, unsigned int ext_opand, 14 void mt_spm_idle_generic_resume(int state_id, unsigned int ext_opand,
|
A D | mt_spm_suspend.h | 21 extern int mt_spm_suspend_enter(int state_id, unsigned int ext_opand, 23 extern void mt_spm_suspend_resume(int state_id, unsigned int ext_opand,
|
A D | mt_spm_conservation.h | 12 extern int spm_conservation(int state_id, unsigned int ext_opand, 15 extern void spm_conservation_finish(int state_id, unsigned int ext_opand,
|
/trusted-firmware-a/plat/qti/common/src/ |
A D | qti_pm.c | 81 unsigned int state_id; in qti_validate_power_state() local 101 state_id = psci_get_pstate_id(power_state); in qti_validate_power_state() 104 while (state_id) { in qti_validate_power_state() 105 req_state->pwr_domain_state[i++] = state_id & in qti_validate_power_state() 107 state_id >>= QTI_LOCAL_PSTATE_WIDTH; in qti_validate_power_state() 233 unsigned int state_id, power_state; in qti_get_sys_suspend_power_state() local 242 state_id = psci_get_pstate_id(power_state); in qti_get_sys_suspend_power_state() 245 while (state_id) { in qti_get_sys_suspend_power_state() 247 state_id & QTI_LOCAL_PSTATE_MASK; in qti_get_sys_suspend_power_state() 248 state_id >>= QTI_LOCAL_PSTATE_WIDTH; in qti_get_sys_suspend_power_state()
|
/trusted-firmware-a/plat/arm/common/ |
A D | arm_pm.c | 71 unsigned int state_id; in arm_validate_power_state() local 91 state_id = psci_get_pstate_id(power_state); in arm_validate_power_state() 94 while (state_id) { in arm_validate_power_state() 95 req_state->pwr_domain_state[i++] = state_id & in arm_validate_power_state() 97 state_id >>= ARM_LOCAL_PSTATE_WIDTH; in arm_validate_power_state()
|
/trusted-firmware-a/plat/mediatek/mt8192/drivers/mcdi/ |
A D | mt_cpu_pm.c | 78 int state_id = state->pwr_domain_state[MTK_AFFLVL_MCUSYS]; in pwr_mcusys_pwron_finished() local 84 mt_lp_rm_reset_constraint(plat_mt_lp_cpu_rc, cpu, state_id); in pwr_mcusys_pwron_finished() 92 int state_id = state->pwr_domain_state[MTK_AFFLVL_MCUSYS]; in pwr_mcusys_pwrdwn() local 107 mt_lp_rm_find_and_run_constraint(0, cpu, state_id, NULL); in pwr_mcusys_pwrdwn()
|
/trusted-firmware-a/plat/mediatek/mt8195/drivers/mcdi/ |
A D | mt_cpu_pm.c | 78 int state_id = state->pwr_domain_state[MTK_AFFLVL_MCUSYS]; in pwr_mcusys_pwron_finished() local 84 mt_lp_rm_reset_constraint(plat_mt_lp_cpu_rc, cpu, state_id); in pwr_mcusys_pwron_finished() 92 int state_id = state->pwr_domain_state[MTK_AFFLVL_MCUSYS]; in pwr_mcusys_pwrdwn() local 107 mt_lp_rm_find_and_run_constraint(0, cpu, state_id, NULL); in pwr_mcusys_pwrdwn()
|
/trusted-firmware-a/plat/qemu/qemu_sbsa/ |
A D | sbsa_pm.c | 79 unsigned int state_id; in qemu_validate_power_state() local 101 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state() 104 while (state_id != 0U) { in qemu_validate_power_state() 105 req_state->pwr_domain_state[i++] = state_id & in qemu_validate_power_state() 107 state_id >>= PLAT_LOCAL_PSTATE_WIDTH; in qemu_validate_power_state()
|
/trusted-firmware-a/plat/qemu/common/ |
A D | qemu_pm.c | 72 unsigned int state_id; in qemu_validate_power_state() local 92 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state() 95 while (state_id) { in qemu_validate_power_state() 96 req_state->pwr_domain_state[i++] = state_id & in qemu_validate_power_state() 98 state_id >>= PLAT_LOCAL_PSTATE_WIDTH; in qemu_validate_power_state()
|
/trusted-firmware-a/plat/rpi/common/ |
A D | rpi3_pm.c | 70 unsigned int state_id; in rpi3_validate_power_state() local 92 state_id = psci_get_pstate_id(power_state); in rpi3_validate_power_state() 95 while (state_id) { in rpi3_validate_power_state() 96 req_state->pwr_domain_state[i++] = state_id & in rpi3_validate_power_state() 98 state_id >>= PLAT_LOCAL_PSTATE_WIDTH; in rpi3_validate_power_state()
|