Lines Matching defs:callback
48 #define RPM_GET_CALLBACK(dev, callback) \
49 __rpm_get_callback(dev, offsetof(struct dev_pm_ops, callback))
203 * resume/suspend callback of any one of its ancestors(or the
359 * __rpm_callback - Run a given runtime PM callback for a given device.
360 * @cb: Runtime PM callback to run.
361 * @dev: Device to run the callback for.
400 * If the device is suspending and the callback has returned
431 * run the ->runtime_idle() callback directly. If the ->runtime_idle callback
438 int (*callback)(struct device *);
467 callback = RPM_GET_CALLBACK(dev, runtime_idle);
469 /* If no callback assume success. */
470 if (!callback || dev->power.no_callbacks)
491 retval = callback(dev);
507 * rpm_callback - Run a given runtime PM callback for a given device.
508 * @cb: Runtime PM callback to run.
509 * @dev: Device to run the callback for.
551 * otherwise run the ->runtime_suspend() callback directly. When
553 * the callback was running then carry it out, otherwise send an idle
565 int (*callback)(struct device *);
671 callback = RPM_GET_CALLBACK(dev, runtime_suspend);
674 retval = rpm_callback(callback, dev);
734 * If the callback routine failed an autosuspend, and
760 * ->runtime_resume() callback directly. Queue an idle notification for the
768 int (*callback)(struct device *);
906 callback = RPM_GET_CALLBACK(dev, runtime_resume);
909 retval = rpm_callback(callback, dev);
1826 * if it is active, invoke its ->runtime_suspend callback to suspend it and
1833 * Typically this function may be invoked from a system suspend callback to make
1840 int (*callback)(struct device *);
1847 callback = RPM_GET_CALLBACK(dev, runtime_suspend);
1849 ret = callback ? callback(dev) : 0;
1884 * Typically this function may be invoked from a system resume callback.
1888 int (*callback)(struct device *);
1900 callback = RPM_GET_CALLBACK(dev, runtime_resume);
1902 ret = callback ? callback(dev) : 0;