Lines Matching refs:state
94 static inline bool psci_power_state_loses_context(u32 state)
100 return state & mask;
103 bool psci_power_state_is_valid(u32 state)
109 return !(state & ~valid_mask);
166 static int psci_cpu_suspend(u32 state, unsigned long entry_point)
172 err = invoke_psci_fn(fn, state, entry_point, 0);
176 static int psci_cpu_off(u32 state)
182 err = invoke_psci_fn(fn, state, 0, 0);
289 static int psci_suspend_finisher(unsigned long state)
291 u32 power_state = state;
297 int psci_cpu_suspend_enter(u32 state)
301 if (!psci_power_state_loses_context(state))
302 ret = psci_ops.cpu_suspend(state, 0);
304 ret = cpu_suspend(state, psci_suspend_finisher);
318 static int psci_system_suspend_enter(suspend_state_t state)