Lines Matching full:pm

12 #include <linux/blk-pm.h>
23 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
25 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
28 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
30 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
33 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
35 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
38 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
40 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
43 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
45 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
48 static int do_scsi_restore(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_restore() argument
50 return pm && pm->restore ? pm->restore(dev) : 0; in do_scsi_restore()
56 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_dev_type_suspend() local
64 err = cb(dev, pm); in scsi_dev_type_suspend()
75 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in scsi_dev_type_resume() local
78 err = cb(dev, pm); in scsi_dev_type_resume()
88 * Forcibly set runtime PM status of request queue to "active" in scsi_dev_type_resume()
92 * The resume hook will correct runtime PM status of the disk. in scsi_dev_type_resume()
113 * PM treat runtime suspend, system suspend, and system in scsi_bus_suspend_common()
229 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_suspend() local
236 if (pm && pm->runtime_suspend) in sdev_runtime_suspend()
237 err = pm->runtime_suspend(dev); in sdev_runtime_suspend()
259 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in sdev_runtime_resume() local
263 if (pm && pm->runtime_resume) in sdev_runtime_resume()
264 err = pm->runtime_resume(dev); in sdev_runtime_resume()