Lines Matching refs:pm
658 WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", in pci_has_legacy_pm_support()
677 if (drv && drv->pm && drv->pm->prepare) { in pci_pm_prepare()
678 int error = drv->pm->prepare(dev); in pci_pm_prepare()
703 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
708 if (!pm) { in pci_pm_suspend()
724 if (pm->suspend) { in pci_pm_suspend()
728 error = pm->suspend(dev); in pci_pm_suspend()
729 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
737 pm->suspend); in pci_pm_suspend()
750 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq() local
755 if (!pm) { in pci_pm_suspend_noirq()
760 if (pm->suspend_noirq) { in pci_pm_suspend_noirq()
764 error = pm->suspend_noirq(dev); in pci_pm_suspend_noirq()
765 suspend_report_result(pm->suspend_noirq, error); in pci_pm_suspend_noirq()
773 pm->suspend_noirq); in pci_pm_suspend_noirq()
815 if (drv && drv->pm && drv->pm->resume_noirq) in pci_pm_resume_noirq()
816 error = drv->pm->resume_noirq(dev); in pci_pm_resume_noirq()
824 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_resume() local
839 if (pm) { in pci_pm_resume()
840 if (pm->resume) in pci_pm_resume()
841 error = pm->resume(dev); in pci_pm_resume()
870 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_freeze() local
875 if (!pm) { in pci_pm_freeze()
889 if (pm->freeze) { in pci_pm_freeze()
892 error = pm->freeze(dev); in pci_pm_freeze()
893 suspend_report_result(pm->freeze, error); in pci_pm_freeze()
912 if (drv && drv->pm && drv->pm->freeze_noirq) { in pci_pm_freeze_noirq()
915 error = drv->pm->freeze_noirq(dev); in pci_pm_freeze_noirq()
916 suspend_report_result(drv->pm->freeze_noirq, error); in pci_pm_freeze_noirq()
949 if (drv && drv->pm && drv->pm->thaw_noirq) in pci_pm_thaw_noirq()
950 error = drv->pm->thaw_noirq(dev); in pci_pm_thaw_noirq()
958 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_thaw() local
970 if (pm) { in pci_pm_thaw()
971 if (pm->thaw) in pci_pm_thaw()
972 error = pm->thaw(dev); in pci_pm_thaw()
985 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_poweroff() local
990 if (!pm) { in pci_pm_poweroff()
999 if (pm->poweroff) { in pci_pm_poweroff()
1002 error = pm->poweroff(dev); in pci_pm_poweroff()
1003 suspend_report_result(pm->poweroff, error); in pci_pm_poweroff()
1025 if (!drv || !drv->pm) { in pci_pm_poweroff_noirq()
1030 if (drv->pm->poweroff_noirq) { in pci_pm_poweroff_noirq()
1033 error = drv->pm->poweroff_noirq(dev); in pci_pm_poweroff_noirq()
1034 suspend_report_result(drv->pm->poweroff_noirq, error); in pci_pm_poweroff_noirq()
1074 if (drv && drv->pm && drv->pm->restore_noirq) in pci_pm_restore_noirq()
1075 error = drv->pm->restore_noirq(dev); in pci_pm_restore_noirq()
1083 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_restore() local
1104 if (pm) { in pci_pm_restore()
1105 if (pm->restore) in pci_pm_restore()
1106 error = pm->restore(dev); in pci_pm_restore()
1132 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_suspend() local
1143 if (!pm || !pm->runtime_suspend) in pci_pm_runtime_suspend()
1148 error = pm->runtime_suspend(dev); in pci_pm_runtime_suspend()
1157 pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1160 pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1173 pm->runtime_suspend); in pci_pm_runtime_suspend()
1189 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_resume() local
1198 if (!pm || !pm->runtime_resume) in pci_pm_runtime_resume()
1206 rc = pm->runtime_resume(dev); in pci_pm_runtime_resume()
1216 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_idle() local
1226 if (!pm) in pci_pm_runtime_idle()
1229 if (pm->runtime_idle) in pci_pm_runtime_idle()
1230 ret = pm->runtime_idle(dev); in pci_pm_runtime_idle()
1439 .pm = PCI_PM_OPS_PTR,