Lines Matching refs:pm

645 	WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n",  in pci_has_legacy_pm_support()
664 if (drv && drv->pm && drv->pm->prepare) { in pci_pm_prepare()
665 int error = drv->pm->prepare(dev); in pci_pm_prepare()
684 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
689 if (!pm) { in pci_pm_suspend()
705 if (pm->suspend) { in pci_pm_suspend()
709 error = pm->suspend(dev); in pci_pm_suspend()
710 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
718 pm->suspend); in pci_pm_suspend()
731 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq() local
736 if (!pm) { in pci_pm_suspend_noirq()
741 if (pm->suspend_noirq) { in pci_pm_suspend_noirq()
745 error = pm->suspend_noirq(dev); in pci_pm_suspend_noirq()
746 suspend_report_result(pm->suspend_noirq, error); in pci_pm_suspend_noirq()
754 pm->suspend_noirq); in pci_pm_suspend_noirq()
796 if (drv && drv->pm && drv->pm->resume_noirq) in pci_pm_resume_noirq()
797 error = drv->pm->resume_noirq(dev); in pci_pm_resume_noirq()
805 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_resume() local
820 if (pm) { in pci_pm_resume()
821 if (pm->resume) in pci_pm_resume()
822 error = pm->resume(dev); in pci_pm_resume()
851 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_freeze() local
856 if (!pm) { in pci_pm_freeze()
870 if (pm->freeze) { in pci_pm_freeze()
873 error = pm->freeze(dev); in pci_pm_freeze()
874 suspend_report_result(pm->freeze, error); in pci_pm_freeze()
893 if (drv && drv->pm && drv->pm->freeze_noirq) { in pci_pm_freeze_noirq()
896 error = drv->pm->freeze_noirq(dev); in pci_pm_freeze_noirq()
897 suspend_report_result(drv->pm->freeze_noirq, error); in pci_pm_freeze_noirq()
930 if (drv && drv->pm && drv->pm->thaw_noirq) in pci_pm_thaw_noirq()
931 error = drv->pm->thaw_noirq(dev); in pci_pm_thaw_noirq()
939 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_thaw() local
951 if (pm) { in pci_pm_thaw()
952 if (pm->thaw) in pci_pm_thaw()
953 error = pm->thaw(dev); in pci_pm_thaw()
966 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_poweroff() local
971 if (!pm) { in pci_pm_poweroff()
980 if (pm->poweroff) { in pci_pm_poweroff()
983 error = pm->poweroff(dev); in pci_pm_poweroff()
984 suspend_report_result(pm->poweroff, error); in pci_pm_poweroff()
1006 if (!drv || !drv->pm) { in pci_pm_poweroff_noirq()
1011 if (drv->pm->poweroff_noirq) { in pci_pm_poweroff_noirq()
1014 error = drv->pm->poweroff_noirq(dev); in pci_pm_poweroff_noirq()
1015 suspend_report_result(drv->pm->poweroff_noirq, error); in pci_pm_poweroff_noirq()
1055 if (drv && drv->pm && drv->pm->restore_noirq) in pci_pm_restore_noirq()
1056 error = drv->pm->restore_noirq(dev); in pci_pm_restore_noirq()
1064 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_restore() local
1085 if (pm) { in pci_pm_restore()
1086 if (pm->restore) in pci_pm_restore()
1087 error = pm->restore(dev); in pci_pm_restore()
1113 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_suspend() local
1124 if (!pm || !pm->runtime_suspend) in pci_pm_runtime_suspend()
1129 error = pm->runtime_suspend(dev); in pci_pm_runtime_suspend()
1130 suspend_report_result(pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1142 pm->runtime_suspend); in pci_pm_runtime_suspend()
1158 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_resume() local
1167 if (!pm || !pm->runtime_resume) in pci_pm_runtime_resume()
1175 rc = pm->runtime_resume(dev); in pci_pm_runtime_resume()
1185 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_idle() local
1195 if (!pm) in pci_pm_runtime_idle()
1198 if (pm->runtime_idle) in pci_pm_runtime_idle()
1199 ret = pm->runtime_idle(dev); in pci_pm_runtime_idle()
1407 .pm = PCI_PM_OPS_PTR,