Searched refs:power_state (Results 1 – 12 of 12) sorted by relevance
50 void psci_set_suspend_power_state(unsigned int power_state) in psci_set_suspend_power_state() argument52 set_cpu_data(psci_svc_cpu_data.power_state, power_state); in psci_set_suspend_power_state()53 flush_cpu_data(psci_svc_cpu_data.power_state); in psci_set_suspend_power_state()63 unsigned int power_state; in psci_get_suspend_afflvl() local65 power_state = get_cpu_data(psci_svc_cpu_data.power_state); in psci_get_suspend_afflvl()67 return ((power_state == PSCI_INVALID_DATA) ? in psci_get_suspend_afflvl()68 power_state : psci_get_pstate_afflvl(power_state)); in psci_get_suspend_afflvl()78 unsigned int power_state; in psci_get_suspend_stateid() local80 power_state = get_cpu_data(psci_svc_cpu_data.power_state); in psci_get_suspend_stateid()82 return ((power_state == PSCI_INVALID_DATA) ? in psci_get_suspend_stateid()[all …]
96 int psci_cpu_suspend(unsigned int power_state, in psci_cpu_suspend() argument105 if (psci_validate_power_state(power_state)) in psci_cpu_suspend()109 target_afflvl = psci_get_pstate_afflvl(power_state); in psci_cpu_suspend()115 rc = psci_plat_pm_ops->validate_power_state(power_state); in psci_cpu_suspend()132 pstate_type = psci_get_pstate_type(power_state); in psci_cpu_suspend()142 psci_plat_pm_ops->affinst_standby(power_state); in psci_cpu_suspend()156 psci_set_suspend_power_state(power_state); in psci_cpu_suspend()175 unsigned int power_state; in psci_system_suspend() local209 power_state = psci_plat_pm_ops->get_sys_suspend_power_state(); in psci_system_suspend()212 psci_set_suspend_power_state(power_state); in psci_system_suspend()
171 void psci_set_suspend_power_state(unsigned int power_state);
216 psci_svc_cpu_data.power_state, in psci_init_aff_map_node()
122 void fvp_affinst_standby(unsigned int power_state) in fvp_affinst_standby() argument327 int fvp_validate_power_state(unsigned int power_state) in fvp_validate_power_state() argument330 if (psci_get_pstate_type(power_state) == PSTATE_TYPE_STANDBY) { in fvp_validate_power_state()335 if (psci_get_pstate_afflvl(power_state) != MPIDR_AFFLVL0) in fvp_validate_power_state()342 if (psci_get_pstate_id(power_state)) in fvp_validate_power_state()
90 int32_t juno_validate_power_state(unsigned int power_state) in juno_validate_power_state() argument93 if (psci_get_pstate_type(power_state) == PSTATE_TYPE_STANDBY) { in juno_validate_power_state()98 if (psci_get_pstate_afflvl(power_state) != MPIDR_AFFLVL0) in juno_validate_power_state()105 if (psci_get_pstate_id(power_state)) in juno_validate_power_state()303 void juno_affinst_standby(unsigned int power_state) in juno_affinst_standby() argument
173 uint32_t power_state; member186 void (*affinst_standby)(unsigned int power_state);200 int (*validate_power_state)(unsigned int power_state);
277 unsigned int power_state; in hikey_get_sys_suspend_power_state() local279 power_state = psci_make_powerstate(PLAT_SOC_SUSPEND_STATE, in hikey_get_sys_suspend_power_state()282 return power_state; in hikey_get_sys_suspend_power_state()
220 int power_state = BT_VND_PWR_ON; in Open() local221 lib_interface_->op(BT_VND_OP_POWER_CTRL, &power_state); in Open()276 int power_state = BT_VND_PWR_OFF; in Close() local277 lib_interface_->op(BT_VND_OP_POWER_CTRL, &power_state); in Close()
1252 call to validate the `power_state` parameter of the PSCI API. If the1253 `power_state` is known to be invalid, the platform must return1268 call to return the `power_state` parameter. This allows the platform to encode1269 the appropriate State-ID field within the `power_state` parameter which can be1271 `power_state` parameter should be in the same format as specified by the
41 * Optional platform APIs have been added to validate the `power_state` and398 * Started saving the PSCI cpu_suspend 'power_state' parameter prior to
752 |`CPU_SUSPEND` | Yes* | The original `power_state` format is used |