Lines Matching refs:id

65 			callback(z_cpus_pm_state[_current_cpu->id].state);  in pm_state_notify()
96 uint8_t id = _current_cpu->id; in pm_system_resume() local
110 if (atomic_test_and_clear_bit(z_post_ops_required, id)) { in pm_system_resume()
113 if ((z_cpus_pm_state[id].state != PM_STATE_RUNTIME_IDLE) && in pm_system_resume()
114 !z_cpus_pm_state[id].pm_device_disabled) { in pm_system_resume()
119 pm_state_exit_post_ops(z_cpus_pm_state[id].state, z_cpus_pm_state[id].substate_id); in pm_system_resume()
124 z_cpus_pm_state[id] = (struct pm_state_info){PM_STATE_ACTIVE, 0, false, in pm_system_resume()
145 uint8_t id = _current_cpu->id; in pm_system_suspend() local
159 if (z_cpus_pm_forced_state[id].state != PM_STATE_ACTIVE) { in pm_system_suspend()
160 z_cpus_pm_state[id] = z_cpus_pm_forced_state[id]; in pm_system_suspend()
161 z_cpus_pm_forced_state[id].state = PM_STATE_ACTIVE; in pm_system_suspend()
165 info = pm_policy_next_state(id, ticks); in pm_system_suspend()
167 z_cpus_pm_state[id] = *info; in pm_system_suspend()
169 z_cpus_pm_state[id].state = PM_STATE_ACTIVE; in pm_system_suspend()
174 if (z_cpus_pm_state[id].state == PM_STATE_ACTIVE) { in pm_system_suspend()
177 z_cpus_pm_state[id].state); in pm_system_suspend()
183 if ((z_cpus_pm_state[id].state != PM_STATE_RUNTIME_IDLE) && in pm_system_suspend()
184 !z_cpus_pm_state[id].pm_device_disabled) { in pm_system_suspend()
187 z_cpus_pm_state[id].state = PM_STATE_ACTIVE; in pm_system_suspend()
190 z_cpus_pm_state[id].state); in pm_system_suspend()
197 if ((z_cpus_pm_state[id].exit_latency_us != 0) && in pm_system_suspend()
205 z_cpus_pm_state[id].exit_latency_us), in pm_system_suspend()
222 atomic_set_bit(z_post_ops_required, id); in pm_system_suspend()
223 pm_state_set(z_cpus_pm_state[id].state, z_cpus_pm_state[id].substate_id); in pm_system_suspend()
227 pm_stats_update(z_cpus_pm_state[id].state); in pm_system_suspend()
231 z_cpus_pm_state[id].state); in pm_system_suspend()