Home
last modified time | relevance | path

Searched refs:pci_pm_state (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/
H A Dsuspend.c112 static int pci_pm_state; variable
127 pci_pm_state = (reg_cfg1 & PMCCR1_NEXT_STATE) >> in mpc83xx_change_state()
131 if (curr_state != pci_pm_state) { in mpc83xx_change_state()
133 reg_cfg1 |= pci_pm_state; in mpc83xx_change_state()
178 /* Don't go to sleep if there's a race where pci_pm_state changes in mpc83xx_suspend_enter()
183 if (pci_pm_state != (deep_sleeping ? 3 : 2)) in mpc83xx_suspend_enter()
266 wait_event_interruptible(agent_wq, pci_pm_state >= 2); in agent_thread_fn()
269 if (signal_pending(current) || pci_pm_state < 2) in agent_thread_fn()
281 pm_suspend(pci_pm_state == 3 ? PM_SUSPEND_MEM : in agent_thread_fn()
/kernel/linux/linux-6.6/arch/powerpc/platforms/83xx/
H A Dsuspend.c111 static int pci_pm_state; variable
126 pci_pm_state = (reg_cfg1 & PMCCR1_NEXT_STATE) >> in mpc83xx_change_state()
130 if (curr_state != pci_pm_state) { in mpc83xx_change_state()
132 reg_cfg1 |= pci_pm_state; in mpc83xx_change_state()
177 /* Don't go to sleep if there's a race where pci_pm_state changes in mpc83xx_suspend_enter()
182 if (pci_pm_state != (deep_sleeping ? 3 : 2)) in mpc83xx_suspend_enter()
265 wait_event_interruptible(agent_wq, pci_pm_state >= 2); in agent_thread_fn()
268 if (signal_pending(current) || pci_pm_state < 2) in agent_thread_fn()
280 pm_suspend(pci_pm_state == 3 ? PM_SUSPEND_MEM : in agent_thread_fn()

Completed in 3 milliseconds