/trusted-firmware-a/plat/arm/common/ |
A D | arm_pm.c | 24 int arm_validate_power_state(unsigned int power_state, in arm_validate_power_state() argument 27 unsigned int pstate = psci_get_pstate_type(power_state); in arm_validate_power_state() 28 unsigned int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in arm_validate_power_state() 56 if (psci_get_pstate_id(power_state) != 0U) in arm_validate_power_state() 68 int arm_validate_power_state(unsigned int power_state, in arm_validate_power_state() argument 82 if (power_state == arm_pm_idle_states[i]) in arm_validate_power_state() 91 state_id = psci_get_pstate_id(power_state); in arm_validate_power_state()
|
/trusted-firmware-a/plat/imx/common/ |
A D | imx8_psci.c | 32 int imx_validate_power_state(unsigned int power_state, in imx_validate_power_state() argument 35 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in imx_validate_power_state() 36 int pwr_type = psci_get_pstate_type(power_state); in imx_validate_power_state() 37 int state_id = psci_get_pstate_id(power_state); in imx_validate_power_state()
|
/trusted-firmware-a/include/lib/psci/ |
A D | psci.h | 183 static inline unsigned int psci_get_pstate_id(unsigned int power_state) in psci_get_pstate_id() argument 185 return ((power_state) >> PSTATE_ID_SHIFT) & PSTATE_ID_MASK; in psci_get_pstate_id() 188 static inline unsigned int psci_get_pstate_type(unsigned int power_state) in psci_get_pstate_type() argument 190 return ((power_state) >> PSTATE_TYPE_SHIFT) & PSTATE_TYPE_MASK; in psci_get_pstate_type() 193 static inline unsigned int psci_check_power_state(unsigned int power_state) in psci_check_power_state() argument 195 return ((power_state) & PSTATE_VALID_MASK); in psci_check_power_state() 312 int (*validate_power_state)(unsigned int power_state, 320 unsigned int power_state, 337 int psci_cpu_suspend(unsigned int power_state,
|
/trusted-firmware-a/lib/psci/ |
A D | psci_stat.c | 175 static int psci_get_stat(u_register_t target_cpu, unsigned int power_state, in psci_get_stat() argument 191 rc = psci_validate_power_state(power_state, &state_info); in psci_get_stat() 194 target_cpu, power_state, &state_info); in psci_get_stat() 228 unsigned int power_state) in psci_stat_residency() argument 231 int rc = psci_get_stat(target_cpu, power_state, &psci_stat); in psci_stat_residency() 241 unsigned int power_state) in psci_stat_count() argument 244 int rc = psci_get_stat(target_cpu, power_state, &psci_stat); in psci_stat_count()
|
/trusted-firmware-a/plat/qti/common/src/ |
A D | qti_pm.c | 78 int qti_validate_power_state(unsigned int power_state, in qti_validate_power_state() argument 92 if (power_state == qti_pm_idle_states[i]) in qti_validate_power_state() 101 state_id = psci_get_pstate_id(power_state); in qti_validate_power_state() 233 unsigned int state_id, power_state; in qti_get_sys_suspend_power_state() local 241 power_state = qti_pm_idle_states[size - 2]; in qti_get_sys_suspend_power_state() 242 state_id = psci_get_pstate_id(power_state); in qti_get_sys_suspend_power_state()
|
/trusted-firmware-a/plat/brcm/common/ |
A D | brcm_scpi.c | 183 int power_state, cpu, cluster, rc = -1; in scpi_get_brcm_power_state() local 215 power_state = *(((uint16_t *) SCPI_RES_PAYLOAD_SCP_TO_AP) + cluster); in scpi_get_brcm_power_state() 216 if (CLUSTER_ID(power_state) != cluster) in scpi_get_brcm_power_state() 221 *cluster_state_p = CLUSTER_POWER_STATE(power_state); in scpi_get_brcm_power_state() 223 *cpu_state_p = CPU_POWER_STATE(power_state); in scpi_get_brcm_power_state()
|
/trusted-firmware-a/plat/imx/imx8m/imx8mq/ |
A D | imx8mq_psci.c | 19 int imx_validate_power_state(unsigned int power_state, in imx_validate_power_state() argument 22 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in imx_validate_power_state() 23 int pwr_type = psci_get_pstate_type(power_state); in imx_validate_power_state() 24 int state_id = psci_get_pstate_id(power_state); in imx_validate_power_state()
|
/trusted-firmware-a/plat/st/stm32mp1/ |
A D | stm32mp1_pm.c | 161 static int stm32_validate_power_state(unsigned int power_state, in stm32_validate_power_state() argument 164 int pstate = psci_get_pstate_type(power_state); in stm32_validate_power_state() 170 if (psci_get_pstate_pwrlvl(power_state)) { in stm32_validate_power_state() 174 if (psci_get_pstate_id(power_state)) { in stm32_validate_power_state()
|
/trusted-firmware-a/plat/allwinner/common/ |
A D | sunxi_scpi_pm.c | 136 static int sunxi_validate_power_state(unsigned int power_state, in sunxi_validate_power_state() argument 139 unsigned int power_level = psci_get_pstate_pwrlvl(power_state); in sunxi_validate_power_state() 140 unsigned int type = psci_get_pstate_type(power_state); in sunxi_validate_power_state() 150 if (psci_get_pstate_id(power_state) > 0) { in sunxi_validate_power_state() 162 if (psci_get_pstate_id(power_state) > 0) { in sunxi_validate_power_state()
|
/trusted-firmware-a/drivers/arm/css/scpi/ |
A D | css_scpi.c | 188 int power_state, cpu, cluster, rc = -1; in scpi_get_css_power_state() local 230 power_state = *(((uint16_t *) SCPI_RES_PAYLOAD_SCP_TO_AP) + cluster); in scpi_get_css_power_state() 231 if (CLUSTER_ID(power_state) != cluster) in scpi_get_css_power_state() 236 *cluster_state_p = CLUSTER_POWER_STATE(power_state); in scpi_get_css_power_state() 238 *cpu_state_p = CPU_POWER_STATE(power_state); in scpi_get_css_power_state()
|
/trusted-firmware-a/plat/hisilicon/poplar/ |
A D | plat_pm.c | 109 static int32_t poplar_validate_power_state(unsigned int power_state, in poplar_validate_power_state() argument 112 VERBOSE("%s: power_state: 0x%x\n", __func__, power_state); in poplar_validate_power_state() 114 int pstate = psci_get_pstate_type(power_state); in poplar_validate_power_state() 125 if (psci_get_pstate_id(power_state)) in poplar_validate_power_state()
|
/trusted-firmware-a/plat/imx/imx8m/ |
A D | gpc_common.c | 138 void imx_set_cluster_powerdown(unsigned int last_core, uint8_t power_state) in imx_set_cluster_powerdown() argument 142 if (!is_local_state_run(power_state)) { in imx_set_cluster_powerdown() 145 LPM_MODE(power_state)); in imx_set_cluster_powerdown() 147 mmio_setbits_32(IMX_GPC_BASE + LPCR_A53_BSC2, LPM_MODE(power_state)); in imx_set_cluster_powerdown() 153 if (is_local_state_off(power_state)) { in imx_set_cluster_powerdown()
|
A D | imx8m_psci_common.c | 67 int imx_validate_power_state(unsigned int power_state, in imx_validate_power_state() argument 70 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in imx_validate_power_state() 71 int pwr_type = psci_get_pstate_type(power_state); in imx_validate_power_state() 72 int state_id = psci_get_pstate_id(power_state); in imx_validate_power_state()
|
/trusted-firmware-a/plat/xilinx/versal/ |
A D | plat_psci.c | 185 static int versal_validate_power_state(unsigned int power_state, in versal_validate_power_state() argument 188 VERBOSE("%s: power_state: 0x%x\n", __func__, power_state); in versal_validate_power_state() 190 int pstate = psci_get_pstate_type(power_state); in versal_validate_power_state() 201 if (psci_get_pstate_id(power_state)) in versal_validate_power_state()
|
/trusted-firmware-a/plat/xilinx/zynqmp/ |
A D | plat_psci.c | 160 int zynqmp_validate_power_state(unsigned int power_state, in zynqmp_validate_power_state() argument 163 VERBOSE("%s: power_state: 0x%x\n", __func__, power_state); in zynqmp_validate_power_state() 165 int pstate = psci_get_pstate_type(power_state); in zynqmp_validate_power_state() 176 if (psci_get_pstate_id(power_state)) in zynqmp_validate_power_state()
|
/trusted-firmware-a/plat/arm/css/common/ |
A D | css_pm.c | 294 static int css_validate_power_state(unsigned int power_state, in css_validate_power_state() argument 298 rc = arm_validate_power_state(power_state, req_state); in css_validate_power_state() 328 unsigned int power_state, in css_translate_power_state_by_mpidr() argument 331 return arm_validate_power_state(power_state, output_state); in css_translate_power_state_by_mpidr()
|
/trusted-firmware-a/drivers/scmi-msg/ |
A D | power_domain.h | 55 uint32_t power_state; member 65 uint32_t power_state; member
|
/trusted-firmware-a/plat/mediatek/mt8173/ |
A D | plat_pm.c | 469 static int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument 472 int pstate = psci_get_pstate_type(power_state); in plat_validate_power_state() 473 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in plat_validate_power_state() 501 if (psci_get_pstate_id(power_state)) in plat_validate_power_state() 507 int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument 521 if (power_state == mtk_pm_idle_states[i]) in plat_validate_power_state() 530 state_id = psci_get_pstate_id(power_state); in plat_validate_power_state()
|
/trusted-firmware-a/plat/hisilicon/hikey/ |
A D | hikey_pm.c | 214 int hikey_validate_power_state(unsigned int power_state, in hikey_validate_power_state() argument 217 int pstate = psci_get_pstate_type(power_state); in hikey_validate_power_state() 218 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in hikey_validate_power_state() 246 if (psci_get_pstate_id(power_state)) in hikey_validate_power_state()
|
/trusted-firmware-a/plat/arm/board/fvp/ |
A D | fvp_pm.c | 404 static int fvp_validate_power_state(unsigned int power_state, in fvp_validate_power_state() argument 408 rc = arm_validate_power_state(power_state, req_state); in fvp_validate_power_state() 426 unsigned int power_state, in fvp_translate_power_state_by_mpidr() argument 429 return arm_validate_power_state(power_state, output_state); in fvp_translate_power_state_by_mpidr()
|
/trusted-firmware-a/plat/qemu/qemu_sbsa/ |
A D | sbsa_pm.c | 76 static int qemu_validate_power_state(unsigned int power_state, in qemu_validate_power_state() argument 90 if (power_state == qemu_pm_idle_states[i]) { in qemu_validate_power_state() 101 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state()
|
/trusted-firmware-a/plat/mediatek/mt8195/ |
A D | plat_pm.c | 293 static int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument 296 unsigned int pstate = psci_get_pstate_type(power_state); in plat_validate_power_state() 297 unsigned int aff_lvl = psci_get_pstate_pwrlvl(power_state); in plat_validate_power_state() 308 unsigned int pstate_id = psci_get_pstate_id(power_state); in plat_validate_power_state() 321 plat_power_state[cpu] = power_state; in plat_validate_power_state()
|
/trusted-firmware-a/plat/mediatek/mt8192/ |
A D | plat_pm.c | 295 static int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument 298 unsigned int pstate = psci_get_pstate_type(power_state); in plat_validate_power_state() 299 unsigned int aff_lvl = psci_get_pstate_pwrlvl(power_state); in plat_validate_power_state() 306 unsigned int pstate_id = psci_get_pstate_id(power_state); in plat_validate_power_state() 319 plat_power_state[cpu] = power_state; in plat_validate_power_state()
|
/trusted-firmware-a/plat/brcm/board/stingray/src/ |
A D | brcm_pm_ops.c | 344 static int brcm_validate_power_state(unsigned int power_state, in brcm_validate_power_state() argument 347 int pstate = psci_get_pstate_type(power_state); in brcm_validate_power_state() 348 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in brcm_validate_power_state() 376 if (psci_get_pstate_id(power_state)) in brcm_validate_power_state()
|
/trusted-firmware-a/plat/qemu/common/ |
A D | qemu_pm.c | 69 static int qemu_validate_power_state(unsigned int power_state, in qemu_validate_power_state() argument 83 if (power_state == qemu_pm_idle_states[i]) in qemu_validate_power_state() 92 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state()
|