Home
last modified time | relevance | path

Searched refs:power_state (Results 1 – 25 of 28) sorted by relevance

12

/device/linaro/bootloader/arm-trusted-firmware/plat/compat/
Dplat_pm_compat.c44 static int parse_power_state(unsigned int power_state, in parse_power_state() argument
48 int pstate = psci_get_pstate_type(power_state); in parse_power_state()
49 int aff_lvl = psci_get_pstate_pwrlvl(power_state); in parse_power_state()
79 static void set_psci_power_state_compat(unsigned int power_state) in set_psci_power_state_compat() argument
83 psci_power_state_compat[my_core_pos] = power_state; in set_psci_power_state_compat()
92 static int validate_power_state_compat(unsigned int power_state, in validate_power_state_compat() argument
99 rc = pm_ops->validate_power_state(power_state); in validate_power_state_compat()
105 set_psci_power_state_compat(power_state); in validate_power_state_compat()
107 return parse_power_state(power_state, req_state); in validate_power_state_compat()
116 unsigned int power_state; in get_sys_suspend_power_state_compat() local
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/
Darm_pm.c33 int arm_validate_power_state(unsigned int power_state, in arm_validate_power_state() argument
36 int pstate = psci_get_pstate_type(power_state); in arm_validate_power_state()
37 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in arm_validate_power_state()
65 if (psci_get_pstate_id(power_state)) in arm_validate_power_state()
77 int arm_validate_power_state(unsigned int power_state, in arm_validate_power_state() argument
91 if (power_state == arm_pm_idle_states[i]) in arm_validate_power_state()
100 state_id = psci_get_pstate_id(power_state); in arm_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/lib/psci/
Dpsci_stat.c165 static int psci_get_stat(u_register_t target_cpu, unsigned int power_state, in psci_get_stat() argument
180 rc = psci_validate_power_state(power_state, &state_info); in psci_get_stat()
183 target_cpu, power_state, &state_info); in psci_get_stat()
217 unsigned int power_state) in psci_stat_residency() argument
220 int rc = psci_get_stat(target_cpu, power_state, &psci_stat); in psci_stat_residency()
230 unsigned int power_state) in psci_stat_count() argument
233 int rc = psci_get_stat(target_cpu, power_state, &psci_stat); in psci_stat_count()
Dpsci_common.c113 int psci_validate_power_state(unsigned int power_state, in psci_validate_power_state() argument
117 if (psci_check_power_state(power_state)) in psci_validate_power_state()
123 return psci_plat_pm_ops->validate_power_state(power_state, state_info); in psci_validate_power_state()
946 unsigned int power_state; in psci_get_suspend_stateid() local
947 power_state = psci_get_suspend_powerstate(); in psci_get_suspend_stateid()
948 if (power_state != PSCI_INVALID_DATA) in psci_get_suspend_stateid()
949 return psci_get_pstate_id(power_state); in psci_get_suspend_stateid()
Dpsci_private.h202 int psci_validate_power_state(unsigned int power_state,
271 unsigned int power_state);
273 unsigned int power_state);
Dpsci_main.c51 int psci_cpu_suspend(unsigned int power_state, in psci_cpu_suspend() argument
62 rc = psci_validate_power_state(power_state, &state_info); in psci_cpu_suspend()
71 is_power_down_state = psci_get_pstate_type(power_state); in psci_cpu_suspend()
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/scpi/
Dcss_scpi.c180 int power_state, cpu, cluster, rc = -1; in scpi_get_css_power_state() local
221 power_state = *(((uint16_t *) SCPI_RES_PAYLOAD_SCP_TO_AP) + cluster); in scpi_get_css_power_state()
222 if (CLUSTER_ID(power_state) != cluster) in scpi_get_css_power_state()
227 *cluster_state_p = CLUSTER_POWER_STATE(power_state); in scpi_get_css_power_state()
229 *cpu_state_p = CPU_POWER_STATE(power_state); in scpi_get_css_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/poplar/
Dplat_pm.c109 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()
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/common/
Dcss_pm.c260 static int css_validate_power_state(unsigned int power_state, in css_validate_power_state() argument
264 rc = arm_validate_power_state(power_state, req_state); in css_validate_power_state()
282 unsigned int power_state, in css_translate_power_state_by_mpidr() argument
285 return arm_validate_power_state(power_state, output_state); in css_translate_power_state_by_mpidr()
/device/linaro/bootloader/arm-trusted-firmware/include/lib/psci/
Dpsci_compat.h63 void (*affinst_standby)(unsigned int power_state);
77 int (*validate_power_state)(unsigned int power_state);
Dpsci.h293 int (*validate_power_state)(unsigned int power_state,
301 unsigned int power_state,
318 int psci_cpu_suspend(unsigned int power_state,
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/fvp/
Dfvp_pm.c359 static int fvp_validate_power_state(unsigned int power_state, in fvp_validate_power_state() argument
363 rc = arm_validate_power_state(power_state, req_state); in fvp_validate_power_state()
381 unsigned int power_state, in fvp_translate_power_state_by_mpidr() argument
384 return arm_validate_power_state(power_state, output_state); in fvp_translate_power_state_by_mpidr()
/device/linaro/bootloader/arm-trusted-firmware/plat/qemu/
Dqemu_pm.c63 static int qemu_validate_power_state(unsigned int power_state, in qemu_validate_power_state() argument
77 if (power_state == qemu_pm_idle_states[i]) in qemu_validate_power_state()
86 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/mediatek/mt8173/
Dplat_pm.c269 static void plat_affinst_standby(unsigned int power_state) in plat_affinst_standby() argument
274 target_afflvl = psci_get_pstate_afflvl(power_state); in plat_affinst_standby()
695 static int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument
698 int pstate = psci_get_pstate_type(power_state); in plat_validate_power_state()
699 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in plat_validate_power_state()
727 if (psci_get_pstate_id(power_state)) in plat_validate_power_state()
733 int plat_validate_power_state(unsigned int power_state, in plat_validate_power_state() argument
747 if (power_state == mtk_pm_idle_states[i]) in plat_validate_power_state()
756 state_id = psci_get_pstate_id(power_state); in plat_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey/
Dhikey_pm.c213 int hikey_validate_power_state(unsigned int power_state, in hikey_validate_power_state() argument
216 int pstate = psci_get_pstate_type(power_state); in hikey_validate_power_state()
217 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in hikey_validate_power_state()
245 if (psci_get_pstate_id(power_state)) in hikey_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/
Dhikey960_pm.c124 int hikey960_validate_power_state(unsigned int power_state, in hikey960_validate_power_state() argument
127 int pstate = psci_get_pstate_type(power_state); in hikey960_validate_power_state()
128 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in hikey960_validate_power_state()
156 if (psci_get_pstate_id(power_state)) in hikey960_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/soc/t132/
Dplat_psci_handlers.c35 int32_t tegra_soc_validate_power_state(unsigned int power_state, in tegra_soc_validate_power_state() argument
38 int state_id = psci_get_pstate_id(power_state); in tegra_soc_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/common/
Dplat_pm.c129 int rockchip_validate_power_state(unsigned int power_state, in rockchip_validate_power_state() argument
132 int pstate = psci_get_pstate_type(power_state); in rockchip_validate_power_state()
133 int pwr_lvl = psci_get_pstate_pwrlvl(power_state); in rockchip_validate_power_state()
163 if (psci_get_pstate_id(power_state)) in rockchip_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/xilinx/zynqmp/
Dplat_psci.c291 int zynqmp_validate_power_state(unsigned int power_state, in zynqmp_validate_power_state() argument
294 VERBOSE("%s: power_state: 0x%x\n", __func__, power_state); in zynqmp_validate_power_state()
296 int pstate = psci_get_pstate_type(power_state); in zynqmp_validate_power_state()
307 if (psci_get_pstate_id(power_state)) in zynqmp_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/soc/t210/
Dplat_psci_handlers.c34 int32_t tegra_soc_validate_power_state(unsigned int power_state, in tegra_soc_validate_power_state() argument
37 int state_id = psci_get_pstate_id(power_state); in tegra_soc_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/
Dplat_psci_handlers.c46 int32_t tegra_soc_validate_power_state(unsigned int power_state, in tegra_soc_validate_power_state() argument
49 int state_id = psci_get_pstate_id(power_state) & TEGRA186_STATE_ID_MASK; in tegra_soc_validate_power_state()
53 percpu_data[cpu].wake_time = (power_state & TEGRA186_WAKE_TIME_MASK) in tegra_soc_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/common/
Dtegra_pm.c305 int32_t tegra_validate_power_state(unsigned int power_state, in tegra_validate_power_state() argument
310 return tegra_soc_validate_power_state(power_state, req_state); in tegra_validate_power_state()
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/include/
Dtegra_private.h54 int32_t tegra_soc_validate_power_state(unsigned int power_state,
/device/linaro/bootloader/arm-trusted-firmware/plat/mediatek/mt6795/
Dplat_pm.c209 static void plat_affinst_standby(unsigned int power_state) in plat_affinst_standby() argument
214 target_afflvl = psci_get_pstate_afflvl(power_state); in plat_affinst_standby()
/device/linaro/bootloader/arm-trusted-firmware/include/plat/arm/common/
Dplat_arm.h120 int arm_validate_power_state(unsigned int power_state,

12