Lines Matching refs:pm
671 WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", in pci_has_legacy_pm_support()
683 if (drv && drv->pm && drv->pm->prepare) { in pci_pm_prepare()
684 int error = drv->pm->prepare(dev); in pci_pm_prepare()
735 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
740 if (!pm) { in pci_pm_suspend()
764 if (pm->suspend) { in pci_pm_suspend()
768 error = pm->suspend(dev); in pci_pm_suspend()
769 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
777 pm->suspend); in pci_pm_suspend()
797 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq() local
807 if (!pm) { in pci_pm_suspend_noirq()
812 if (pm->suspend_noirq) { in pci_pm_suspend_noirq()
816 error = pm->suspend_noirq(dev); in pci_pm_suspend_noirq()
817 suspend_report_result(pm->suspend_noirq, error); in pci_pm_suspend_noirq()
825 pm->suspend_noirq); in pci_pm_suspend_noirq()
893 if (drv && drv->pm && drv->pm->resume_noirq) in pci_pm_resume_noirq()
894 error = drv->pm->resume_noirq(dev); in pci_pm_resume_noirq()
902 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_resume() local
917 if (pm) { in pci_pm_resume()
918 if (pm->resume) in pci_pm_resume()
919 error = pm->resume(dev); in pci_pm_resume()
949 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_freeze() local
954 if (!pm) { in pci_pm_freeze()
970 if (pm->freeze) { in pci_pm_freeze()
973 error = pm->freeze(dev); in pci_pm_freeze()
974 suspend_report_result(pm->freeze, error); in pci_pm_freeze()
1001 if (drv && drv->pm && drv->pm->freeze_noirq) { in pci_pm_freeze_noirq()
1004 error = drv->pm->freeze_noirq(dev); in pci_pm_freeze_noirq()
1005 suspend_report_result(drv->pm->freeze_noirq, error); in pci_pm_freeze_noirq()
1054 if (drv && drv->pm && drv->pm->thaw_noirq) in pci_pm_thaw_noirq()
1055 error = drv->pm->thaw_noirq(dev); in pci_pm_thaw_noirq()
1063 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_thaw() local
1069 if (pm) { in pci_pm_thaw()
1070 if (pm->thaw) in pci_pm_thaw()
1071 error = pm->thaw(dev); in pci_pm_thaw()
1084 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_poweroff() local
1089 if (!pm) { in pci_pm_poweroff()
1100 if (pm->poweroff) { in pci_pm_poweroff()
1103 error = pm->poweroff(dev); in pci_pm_poweroff()
1104 suspend_report_result(pm->poweroff, error); in pci_pm_poweroff()
1133 if (!drv || !drv->pm) { in pci_pm_poweroff_noirq()
1138 if (drv->pm->poweroff_noirq) { in pci_pm_poweroff_noirq()
1141 error = drv->pm->poweroff_noirq(dev); in pci_pm_poweroff_noirq()
1142 suspend_report_result(drv->pm->poweroff_noirq, error); in pci_pm_poweroff_noirq()
1186 if (drv && drv->pm && drv->pm->restore_noirq) in pci_pm_restore_noirq()
1187 error = drv->pm->restore_noirq(dev); in pci_pm_restore_noirq()
1195 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_restore() local
1210 if (pm) { in pci_pm_restore()
1211 if (pm->restore) in pci_pm_restore()
1212 error = pm->restore(dev); in pci_pm_restore()
1240 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_suspend() local
1254 if (!pm || !pm->runtime_suspend) in pci_pm_runtime_suspend()
1258 error = pm->runtime_suspend(dev); in pci_pm_runtime_suspend()
1267 pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1270 pm->runtime_suspend, error); in pci_pm_runtime_suspend()
1281 pm->runtime_suspend); in pci_pm_runtime_suspend()
1297 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_resume() local
1309 if (!pm || !pm->runtime_resume) in pci_pm_runtime_resume()
1316 rc = pm->runtime_resume(dev); in pci_pm_runtime_resume()
1326 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_idle() local
1336 if (!pm) in pci_pm_runtime_idle()
1339 if (pm->runtime_idle) in pci_pm_runtime_idle()
1340 ret = pm->runtime_idle(dev); in pci_pm_runtime_idle()
1623 .pm = PCI_PM_OPS_PTR,