Lines Matching full:pm
3 * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems
7 #include <linux/pm.h>
16 * If PM operations are defined for the @dev's driver and they include
22 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_suspend() local
25 ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0; in pm_generic_runtime_suspend()
35 * If PM operations are defined for the @dev's driver and they include
41 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_resume() local
44 ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : 0; in pm_generic_runtime_resume()
63 if (drv && drv->pm && drv->pm->prepare) in pm_generic_prepare()
64 ret = drv->pm->prepare(dev); in pm_generic_prepare()
75 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_noirq() local
77 return pm && pm->suspend_noirq ? pm->suspend_noirq(dev) : 0; in pm_generic_suspend_noirq()
87 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_late() local
89 return pm && pm->suspend_late ? pm->suspend_late(dev) : 0; in pm_generic_suspend_late()
99 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend() local
101 return pm && pm->suspend ? pm->suspend(dev) : 0; in pm_generic_suspend()
111 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_freeze_noirq() local
113 return pm && pm->freeze_noirq ? pm->freeze_noirq(dev) : 0; in pm_generic_freeze_noirq()
123 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_freeze_late() local
125 return pm && pm->freeze_late ? pm->freeze_late(dev) : 0; in pm_generic_freeze_late()
135 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_freeze() local
137 return pm && pm->freeze ? pm->freeze(dev) : 0; in pm_generic_freeze()
147 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_poweroff_noirq() local
149 return pm && pm->poweroff_noirq ? pm->poweroff_noirq(dev) : 0; in pm_generic_poweroff_noirq()
159 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_poweroff_late() local
161 return pm && pm->poweroff_late ? pm->poweroff_late(dev) : 0; in pm_generic_poweroff_late()
171 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_poweroff() local
173 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in pm_generic_poweroff()
183 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_thaw_noirq() local
185 return pm && pm->thaw_noirq ? pm->thaw_noirq(dev) : 0; in pm_generic_thaw_noirq()
195 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_thaw_early() local
197 return pm && pm->thaw_early ? pm->thaw_early(dev) : 0; in pm_generic_thaw_early()
207 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_thaw() local
209 return pm && pm->thaw ? pm->thaw(dev) : 0; in pm_generic_thaw()
219 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_resume_noirq() local
221 return pm && pm->resume_noirq ? pm->resume_noirq(dev) : 0; in pm_generic_resume_noirq()
231 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_resume_early() local
233 return pm && pm->resume_early ? pm->resume_early(dev) : 0; in pm_generic_resume_early()
243 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_resume() local
245 return pm && pm->resume ? pm->resume(dev) : 0; in pm_generic_resume()
255 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_restore_noirq() local
257 return pm && pm->restore_noirq ? pm->restore_noirq(dev) : 0; in pm_generic_restore_noirq()
267 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_restore_early() local
269 return pm && pm->restore_early ? pm->restore_early(dev) : 0; in pm_generic_restore_early()
279 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_restore() local
281 return pm && pm->restore ? pm->restore(dev) : 0; in pm_generic_restore()
295 if (drv && drv->pm && drv->pm->complete) in pm_generic_complete()
296 drv->pm->complete(dev); in pm_generic_complete()