Searched refs:state_id (Results 1 – 7 of 7) sorted by relevance
80 unsigned int state_id; in arm_validate_power_state() local100 state_id = psci_get_pstate_id(power_state); in arm_validate_power_state()103 while (state_id) { in arm_validate_power_state()104 req_state->pwr_domain_state[i++] = state_id & in arm_validate_power_state()106 state_id >>= ARM_LOCAL_PSTATE_WIDTH; in arm_validate_power_state()
37 int state_id = psci_get_pstate_id(power_state); in tegra_soc_validate_power_state() local40 switch (state_id) { in tegra_soc_validate_power_state()45 req_state->pwr_domain_state[MPIDR_AFFLVL0] = state_id & 0xff; in tegra_soc_validate_power_state()54 req_state->pwr_domain_state[MPIDR_AFFLVL1] = state_id; in tegra_soc_validate_power_state()55 req_state->pwr_domain_state[MPIDR_AFFLVL0] = state_id; in tegra_soc_validate_power_state()72 ERROR("%s: unsupported state id (%d)\n", __func__, state_id); in tegra_soc_validate_power_state()
66 unsigned int state_id; in qemu_validate_power_state() local86 state_id = psci_get_pstate_id(power_state); in qemu_validate_power_state()89 while (state_id) { in qemu_validate_power_state()90 req_state->pwr_domain_state[i++] = state_id & in qemu_validate_power_state()92 state_id >>= PLAT_LOCAL_PSTATE_WIDTH; in qemu_validate_power_state()
49 int state_id = psci_get_pstate_id(power_state) & TEGRA186_STATE_ID_MASK; in tegra_soc_validate_power_state() local67 switch (state_id) { in tegra_soc_validate_power_state()72 req_state->pwr_domain_state[MPIDR_AFFLVL0] = state_id; in tegra_soc_validate_power_state()73 req_state->pwr_domain_state[MPIDR_AFFLVL1] = state_id; in tegra_soc_validate_power_state()78 ERROR("%s: unsupported state id (%d)\n", __func__, state_id); in tegra_soc_validate_power_state()
38 int state_id = psci_get_pstate_id(power_state); in tegra_soc_validate_power_state() local46 if ((state_id != PSTATE_ID_SOC_POWERDN) || (cpu != 0)) { in tegra_soc_validate_power_state()
736 unsigned int state_id; in plat_validate_power_state() local756 state_id = psci_get_pstate_id(power_state); in plat_validate_power_state()759 while (state_id) { in plat_validate_power_state()760 req_state->pwr_domain_state[i++] = state_id & in plat_validate_power_state()762 state_id >>= MTK_LOCAL_PSTATE_WIDTH; in plat_validate_power_state()
117 #define psci_make_powerstate(state_id, type, pwrlvl) \ argument118 (((state_id) & PSTATE_ID_MASK) << PSTATE_ID_SHIFT) |\