Lines Matching refs:pm
645 WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", in pci_has_legacy_pm_support()
665 if (drv && drv->pm && drv->pm->prepare) in pci_pm_prepare()
666 error = drv->pm->prepare(dev); in pci_pm_prepare()
683 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
688 if (!pm) { in pci_pm_suspend()
704 if (pm->suspend) { in pci_pm_suspend()
708 error = pm->suspend(dev); in pci_pm_suspend()
709 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
717 pm->suspend); in pci_pm_suspend()
730 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq() local
735 if (!pm) { in pci_pm_suspend_noirq()
740 if (pm->suspend_noirq) { in pci_pm_suspend_noirq()
744 error = pm->suspend_noirq(dev); in pci_pm_suspend_noirq()
745 suspend_report_result(pm->suspend_noirq, error); in pci_pm_suspend_noirq()
753 pm->suspend_noirq); in pci_pm_suspend_noirq()
795 if (drv && drv->pm && drv->pm->resume_noirq) in pci_pm_resume_noirq()
796 error = drv->pm->resume_noirq(dev); in pci_pm_resume_noirq()
804 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_resume() local
819 if (pm) { in pci_pm_resume()
820 if (pm->resume) in pci_pm_resume()
821 error = pm->resume(dev); in pci_pm_resume()
850 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_freeze() local
855 if (!pm) { in pci_pm_freeze()
869 if (pm->freeze) { in pci_pm_freeze()
872 error = pm->freeze(dev); in pci_pm_freeze()
873 suspend_report_result(pm->freeze, error); in pci_pm_freeze()
892 if (drv && drv->pm && drv->pm->freeze_noirq) { in pci_pm_freeze_noirq()
895 error = drv->pm->freeze_noirq(dev); in pci_pm_freeze_noirq()
896 suspend_report_result(drv->pm->freeze_noirq, error); in pci_pm_freeze_noirq()
935 if (drv && drv->pm && drv->pm->thaw_noirq) in pci_pm_thaw_noirq()
936 error = drv->pm->thaw_noirq(dev); in pci_pm_thaw_noirq()
944 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_thaw() local
956 if (pm) { in pci_pm_thaw()
957 if (pm->thaw) in pci_pm_thaw()
958 error = pm->thaw(dev); in pci_pm_thaw()
971 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_poweroff() local
976 if (!pm) { in pci_pm_poweroff()
985 if (pm->poweroff) { in pci_pm_poweroff()
988 error = pm->poweroff(dev); in pci_pm_poweroff()
989 suspend_report_result(pm->poweroff, error); in pci_pm_poweroff()
1011 if (!drv || !drv->pm) { in pci_pm_poweroff_noirq()
1016 if (drv->pm->poweroff_noirq) { in pci_pm_poweroff_noirq()
1019 error = drv->pm->poweroff_noirq(dev); in pci_pm_poweroff_noirq()
1020 suspend_report_result(drv->pm->poweroff_noirq, error); in pci_pm_poweroff_noirq()
1060 if (drv && drv->pm && drv->pm->restore_noirq) in pci_pm_restore_noirq()
1061 error = drv->pm->restore_noirq(dev); in pci_pm_restore_noirq()
1069 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_restore() local
1090 if (pm) { in pci_pm_restore()
1091 if (pm->restore) in pci_pm_restore()
1092 error = pm->restore(dev); in pci_pm_restore()
1118 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_suspend() local
1129 if (!pm || !pm->runtime_suspend) in pci_pm_runtime_suspend()
1134 error = pm->runtime_suspend(dev); in pci_pm_runtime_suspend()
1135 suspend_report_result(pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1147 pm->runtime_suspend); in pci_pm_runtime_suspend()
1163 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_resume() local
1172 if (!pm || !pm->runtime_resume) in pci_pm_runtime_resume()
1180 rc = pm->runtime_resume(dev); in pci_pm_runtime_resume()
1190 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_idle() local
1200 if (!pm) in pci_pm_runtime_idle()
1203 if (pm->runtime_idle) in pci_pm_runtime_idle()
1204 ret = pm->runtime_idle(dev); in pci_pm_runtime_idle()
1418 .pm = PCI_PM_OPS_PTR,