Lines Matching refs:callback
592 pm_callback_t callback = NULL; in device_resume_noirq() local
627 callback = pm_noirq_op(&dev->pm_domain->ops, state); in device_resume_noirq()
630 callback = pm_noirq_op(dev->type->pm, state); in device_resume_noirq()
633 callback = pm_noirq_op(dev->class->pm, state); in device_resume_noirq()
636 callback = pm_noirq_op(dev->bus->pm, state); in device_resume_noirq()
638 if (callback) in device_resume_noirq()
646 callback = pm_noirq_op(dev->driver->pm, state); in device_resume_noirq()
650 error = dpm_run_callback(callback, dev, state, info); in device_resume_noirq()
763 pm_callback_t callback = NULL; in device_resume_early() local
781 callback = pm_late_early_op(&dev->pm_domain->ops, state); in device_resume_early()
784 callback = pm_late_early_op(dev->type->pm, state); in device_resume_early()
787 callback = pm_late_early_op(dev->class->pm, state); in device_resume_early()
790 callback = pm_late_early_op(dev->bus->pm, state); in device_resume_early()
792 if (callback) in device_resume_early()
800 callback = pm_late_early_op(dev->driver->pm, state); in device_resume_early()
804 error = dpm_run_callback(callback, dev, state, info); in device_resume_early()
898 pm_callback_t callback = NULL; in device_resume() local
932 callback = pm_op(&dev->pm_domain->ops, state); in device_resume()
938 callback = pm_op(dev->type->pm, state); in device_resume()
944 callback = pm_op(dev->class->pm, state); in device_resume()
951 callback = pm_op(dev->bus->pm, state); in device_resume()
954 callback = dev->bus->resume; in device_resume()
960 if (!callback && dev->driver && dev->driver->pm) { in device_resume()
962 callback = pm_op(dev->driver->pm, state); in device_resume()
966 error = dpm_run_callback(callback, dev, state, info); in device_resume()
1057 void (*callback)(struct device *) = NULL; in device_complete() local
1067 callback = dev->pm_domain->ops.complete; in device_complete()
1070 callback = dev->type->pm->complete; in device_complete()
1073 callback = dev->class->pm->complete; in device_complete()
1076 callback = dev->bus->pm->complete; in device_complete()
1079 if (!callback && dev->driver && dev->driver->pm) { in device_complete()
1081 callback = dev->driver->pm->complete; in device_complete()
1084 if (callback) { in device_complete()
1086 callback(dev); in device_complete()
1201 pm_callback_t callback = NULL; in __device_suspend_noirq() local
1218 callback = pm_noirq_op(&dev->pm_domain->ops, state); in __device_suspend_noirq()
1221 callback = pm_noirq_op(dev->type->pm, state); in __device_suspend_noirq()
1224 callback = pm_noirq_op(dev->class->pm, state); in __device_suspend_noirq()
1227 callback = pm_noirq_op(dev->bus->pm, state); in __device_suspend_noirq()
1229 if (callback) in __device_suspend_noirq()
1237 callback = pm_noirq_op(dev->driver->pm, state); in __device_suspend_noirq()
1241 error = dpm_run_callback(callback, dev, state, info); in __device_suspend_noirq()
1388 pm_callback_t callback = NULL; in __device_suspend_late() local
1412 callback = pm_late_early_op(&dev->pm_domain->ops, state); in __device_suspend_late()
1415 callback = pm_late_early_op(dev->type->pm, state); in __device_suspend_late()
1418 callback = pm_late_early_op(dev->class->pm, state); in __device_suspend_late()
1421 callback = pm_late_early_op(dev->bus->pm, state); in __device_suspend_late()
1423 if (callback) in __device_suspend_late()
1431 callback = pm_late_early_op(dev->driver->pm, state); in __device_suspend_late()
1435 error = dpm_run_callback(callback, dev, state, info); in __device_suspend_late()
1608 pm_callback_t callback = NULL; in __device_suspend() local
1670 callback = pm_op(&dev->pm_domain->ops, state); in __device_suspend()
1676 callback = pm_op(dev->type->pm, state); in __device_suspend()
1682 callback = pm_op(dev->class->pm, state); in __device_suspend()
1689 callback = pm_op(dev->bus->pm, state); in __device_suspend()
1699 if (!callback && dev->driver && dev->driver->pm) { in __device_suspend()
1701 callback = pm_op(dev->driver->pm, state); in __device_suspend()
1704 error = dpm_run_callback(callback, dev, state, info); in __device_suspend()
1818 int (*callback)(struct device *) = NULL; in device_prepare() local
1840 callback = dev->pm_domain->ops.prepare; in device_prepare()
1842 callback = dev->type->pm->prepare; in device_prepare()
1844 callback = dev->class->pm->prepare; in device_prepare()
1846 callback = dev->bus->pm->prepare; in device_prepare()
1848 if (!callback && dev->driver && dev->driver->pm) in device_prepare()
1849 callback = dev->driver->pm->prepare; in device_prepare()
1851 if (callback) in device_prepare()
1852 ret = callback(dev); in device_prepare()
1858 suspend_report_result(dev, callback, ret); in device_prepare()