Lines Matching refs:pm
21 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
23 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
26 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
28 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
31 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
33 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
36 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
38 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
41 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
43 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
46 static int do_scsi_restore(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_restore() argument
48 return pm && pm->restore ? pm->restore(dev) : 0; in do_scsi_restore()
54 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_dev_type_suspend() local
62 err = cb(dev, pm); in scsi_dev_type_suspend()
73 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_dev_type_resume() local
76 err = cb(dev, pm); in scsi_dev_type_resume()
220 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_suspend() local
224 if (pm && pm->runtime_suspend) { in sdev_runtime_suspend()
228 err = pm->runtime_suspend(dev); in sdev_runtime_suspend()
250 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_resume() local
253 if (pm && pm->runtime_resume) { in sdev_runtime_resume()
255 err = pm->runtime_resume(dev); in sdev_runtime_resume()