Lines Matching defs:async
31 #include <linux/async.h>
234 * @async: If unset, wait only if the device's power.async_suspend flag is set.
236 static void dpm_wait(struct device *dev, bool async)
241 if (async || (pm_async_enabled && dev->power.async_suspend))
251 static void dpm_wait_for_children(struct device *dev, bool async)
253 device_for_each_child(dev, &async, dpm_wait_fn);
256 static void dpm_wait_for_suppliers(struct device *dev, bool async)
272 dpm_wait(link->supplier, async);
277 static bool dpm_wait_for_superior(struct device *dev, bool async)
299 dpm_wait(parent, async);
302 dpm_wait_for_suppliers(dev, async);
311 static void dpm_wait_for_consumers(struct device *dev, bool async)
329 dpm_wait(link->consumer, async);
334 static void dpm_wait_for_subordinate(struct device *dev, bool async)
336 dpm_wait_for_children(dev, async);
337 dpm_wait_for_consumers(dev, async);
585 * @async: If true, the device is being resumed asynchronously.
590 static void __device_resume_noirq(struct device *dev, pm_message_t state, bool async)
606 if (!dpm_wait_for_superior(dev, async))
663 pm_dev_err(dev, state, async ? " async noirq" : " noirq", error);
753 * @async: If true, the device is being resumed asynchronously.
757 static void __device_resume_early(struct device *dev, pm_message_t state, bool async)
772 if (!dpm_wait_for_superior(dev, async))
815 pm_dev_err(dev, state, async ? " async early" : " early", error);
882 * @async: If true, the device is being resumed asynchronously.
884 static void __device_resume(struct device *dev, pm_message_t state, bool async)
903 if (!dpm_wait_for_superior(dev, async))
970 pm_dev_err(dev, state, async ? " async" : "", error);
1182 * @async: If true, the device is being suspended asynchronously.
1187 static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool async)
1196 dpm_wait_for_subordinate(dev, async);
1266 pm_dev_err(dev, pm_transition, " async", error);
1370 * @async: If true, the device is being suspended asynchronously.
1374 static int __device_suspend_late(struct device *dev, pm_message_t state, bool async)
1385 dpm_wait_for_subordinate(dev, async);
1447 pm_dev_err(dev, pm_transition, " async", error);
1592 * @async: If true, the device is being suspended asynchronously.
1594 static int __device_suspend(struct device *dev, pm_message_t state, bool async)
1604 dpm_wait_for_subordinate(dev, async);
1724 pm_dev_err(dev, pm_transition, " async", error);