Lines Matching refs:current_state
460 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
461 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
493 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown()
509 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
542 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
543 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
572 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
580 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
581 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
582 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend()
599 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend_late()
607 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend_late()
608 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend_late()
609 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend_late()
705 pci_power_t pre_sleep_state = pci_dev->current_state; in pci_pm_complete()
707 pci_update_current_state(pci_dev, pci_dev->current_state); in pci_pm_complete()
708 if (pci_dev->current_state < pre_sleep_state) in pci_pm_complete()
767 pci_power_t prev = pci_dev->current_state; in pci_pm_suspend()
775 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_pm_suspend()
776 && pci_dev->current_state != PCI_UNKNOWN) { in pci_pm_suspend()
777 WARN_ONCE(pci_dev->current_state != prev, in pci_pm_suspend()
815 pci_power_t prev = pci_dev->current_state; in pci_pm_suspend_noirq()
823 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_pm_suspend_noirq()
824 && pci_dev->current_state != PCI_UNKNOWN) { in pci_pm_suspend_noirq()
825 WARN_ONCE(pci_dev->current_state != prev, in pci_pm_suspend_noirq()
839 pci_power_name(pci_dev->current_state)); in pci_pm_suspend_noirq()
1248 pci_power_t prev = pci_dev->current_state; in pci_pm_runtime_suspend()
1283 && !pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_pm_runtime_suspend()
1284 && pci_dev->current_state != PCI_UNKNOWN) { in pci_pm_runtime_suspend()
1285 WARN_ONCE(pci_dev->current_state != prev, in pci_pm_runtime_suspend()