Lines Matching full:pm
11 #include <linux/blk-pm.h>
22 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
24 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
27 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
29 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
32 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
34 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
37 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
39 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
42 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
44 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
47 static int do_scsi_restore(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_restore() argument
49 return pm && pm->restore ? pm->restore(dev) : 0; in do_scsi_restore()
55 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_dev_type_suspend() local
60 err = cb(dev, pm); in scsi_dev_type_suspend()
81 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_bus_resume_common() local
87 err = cb(dev, pm); in scsi_bus_resume_common()
147 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_suspend() local
154 if (pm && pm->runtime_suspend) in sdev_runtime_suspend()
155 err = pm->runtime_suspend(dev); in sdev_runtime_suspend()
177 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_resume() local
181 if (pm && pm->runtime_resume) in sdev_runtime_resume()
182 err = pm->runtime_resume(dev); in sdev_runtime_resume()