Lines Matching refs:callback

620 	pm_callback_t callback = NULL;  in device_resume_noirq()  local
655 callback = pm_noirq_op(&dev->pm_domain->ops, state); in device_resume_noirq()
658 callback = pm_noirq_op(dev->type->pm, state); in device_resume_noirq()
661 callback = pm_noirq_op(dev->class->pm, state); in device_resume_noirq()
664 callback = pm_noirq_op(dev->bus->pm, state); in device_resume_noirq()
666 if (callback) in device_resume_noirq()
674 callback = pm_noirq_op(dev->driver->pm, state); in device_resume_noirq()
678 error = dpm_run_callback(callback, dev, state, info); in device_resume_noirq()
771 pm_callback_t callback = NULL; in device_resume_early() local
789 callback = pm_late_early_op(&dev->pm_domain->ops, state); in device_resume_early()
792 callback = pm_late_early_op(dev->type->pm, state); in device_resume_early()
795 callback = pm_late_early_op(dev->class->pm, state); in device_resume_early()
798 callback = pm_late_early_op(dev->bus->pm, state); in device_resume_early()
800 if (callback) in device_resume_early()
808 callback = pm_late_early_op(dev->driver->pm, state); in device_resume_early()
812 error = dpm_run_callback(callback, dev, state, info); in device_resume_early()
905 pm_callback_t callback = NULL; in device_resume() local
939 callback = pm_op(&dev->pm_domain->ops, state); in device_resume()
945 callback = pm_op(dev->type->pm, state); in device_resume()
951 callback = pm_op(dev->class->pm, state); in device_resume()
958 callback = pm_op(dev->bus->pm, state); in device_resume()
961 callback = dev->bus->resume; in device_resume()
967 if (!callback && dev->driver && dev->driver->pm) { in device_resume()
969 callback = pm_op(dev->driver->pm, state); in device_resume()
973 error = dpm_run_callback(callback, dev, state, info); in device_resume()
1061 void (*callback)(struct device *) = NULL; in device_complete() local
1071 callback = dev->pm_domain->ops.complete; in device_complete()
1074 callback = dev->type->pm->complete; in device_complete()
1077 callback = dev->class->pm->complete; in device_complete()
1080 callback = dev->bus->pm->complete; in device_complete()
1083 if (!callback && dev->driver && dev->driver->pm) { in device_complete()
1085 callback = dev->driver->pm->complete; in device_complete()
1088 if (callback) { in device_complete()
1090 callback(dev); in device_complete()
1205 pm_callback_t callback = NULL; in device_suspend_noirq() local
1222 callback = pm_noirq_op(&dev->pm_domain->ops, state); in device_suspend_noirq()
1225 callback = pm_noirq_op(dev->type->pm, state); in device_suspend_noirq()
1228 callback = pm_noirq_op(dev->class->pm, state); in device_suspend_noirq()
1231 callback = pm_noirq_op(dev->bus->pm, state); in device_suspend_noirq()
1233 if (callback) in device_suspend_noirq()
1241 callback = pm_noirq_op(dev->driver->pm, state); in device_suspend_noirq()
1245 error = dpm_run_callback(callback, dev, state, info); in device_suspend_noirq()
1378 pm_callback_t callback = NULL; in device_suspend_late() local
1402 callback = pm_late_early_op(&dev->pm_domain->ops, state); in device_suspend_late()
1405 callback = pm_late_early_op(dev->type->pm, state); in device_suspend_late()
1408 callback = pm_late_early_op(dev->class->pm, state); in device_suspend_late()
1411 callback = pm_late_early_op(dev->bus->pm, state); in device_suspend_late()
1413 if (callback) in device_suspend_late()
1421 callback = pm_late_early_op(dev->driver->pm, state); in device_suspend_late()
1425 error = dpm_run_callback(callback, dev, state, info); in device_suspend_late()
1585 pm_callback_t callback = NULL; in device_suspend() local
1647 callback = pm_op(&dev->pm_domain->ops, state); in device_suspend()
1653 callback = pm_op(dev->type->pm, state); in device_suspend()
1659 callback = pm_op(dev->class->pm, state); in device_suspend()
1666 callback = pm_op(dev->bus->pm, state); in device_suspend()
1676 if (!callback && dev->driver && dev->driver->pm) { in device_suspend()
1678 callback = pm_op(dev->driver->pm, state); in device_suspend()
1681 error = dpm_run_callback(callback, dev, state, info); in device_suspend()
1782 int (*callback)(struct device *) = NULL; in device_prepare() local
1804 callback = dev->pm_domain->ops.prepare; in device_prepare()
1806 callback = dev->type->pm->prepare; in device_prepare()
1808 callback = dev->class->pm->prepare; in device_prepare()
1810 callback = dev->bus->pm->prepare; in device_prepare()
1812 if (!callback && dev->driver && dev->driver->pm) in device_prepare()
1813 callback = dev->driver->pm->prepare; in device_prepare()
1815 if (callback) in device_prepare()
1816 ret = callback(dev); in device_prepare()
1822 suspend_report_result(dev, callback, ret); in device_prepare()