Lines Matching full:async
30 #include <linux/async.h>
238 * @async: If unset, wait only if the device's power.async_suspend flag is set.
240 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument
245 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait()
255 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument
257 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children()
260 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument
276 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers()
281 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument
303 dpm_wait(parent, async); in dpm_wait_for_superior()
306 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior()
315 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument
333 dpm_wait(link->consumer, async); in dpm_wait_for_consumers()
338 static void dpm_wait_for_subordinate(struct device *dev, bool async) in dpm_wait_for_subordinate() argument
340 dpm_wait_for_children(dev, async); in dpm_wait_for_subordinate()
341 dpm_wait_for_consumers(dev, async); in dpm_wait_for_subordinate()
589 * @async: If true, the device is being resumed asynchronously.
594 static int device_resume_noirq(struct device *dev, pm_message_t state, bool async) in device_resume_noirq() argument
610 if (!dpm_wait_for_superior(dev, async)) in device_resume_noirq()
691 pm_dev_err(dev, pm_transition, " async", error); in async_resume_noirq()
706 * Advanced the async threads upfront, in dpm_noirq_resume_devices()
707 * in case the starting of async threads is in dpm_noirq_resume_devices()
708 * delayed by non-async resuming devices. in dpm_noirq_resume_devices()
761 * @async: If true, the device is being resumed asynchronously.
765 static int device_resume_early(struct device *dev, pm_message_t state, bool async) in device_resume_early() argument
780 if (!dpm_wait_for_superior(dev, async)) in device_resume_early()
828 pm_dev_err(dev, pm_transition, " async", error); in async_resume_early()
847 * Advanced the async threads upfront, in dpm_resume_early()
848 * in case the starting of async threads is in dpm_resume_early()
849 * delayed by non-async resuming devices. in dpm_resume_early()
895 * @async: If true, the device is being resumed asynchronously.
897 static int device_resume(struct device *dev, pm_message_t state, bool async) in device_resume() argument
916 if (!dpm_wait_for_superior(dev, async)) in device_resume()
989 pm_dev_err(dev, pm_transition, " async", error); in async_resume()
1188 * @async: If true, the device is being suspended asynchronously.
1193 static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool async) in __device_suspend_noirq() argument
1202 dpm_wait_for_subordinate(dev, async); in __device_suspend_noirq()
1274 pm_dev_err(dev, pm_transition, " async", error); in async_suspend_noirq()
1376 * @async: If true, the device is being suspended asynchronously.
1380 static int __device_suspend_late(struct device *dev, pm_message_t state, bool async) in __device_suspend_late() argument
1391 dpm_wait_for_subordinate(dev, async); in __device_suspend_late()
1455 pm_dev_err(dev, pm_transition, " async", error); in async_suspend_late()
1594 * @async: If true, the device is being suspended asynchronously.
1596 static int __device_suspend(struct device *dev, pm_message_t state, bool async) in __device_suspend() argument
1606 dpm_wait_for_subordinate(dev, async); in __device_suspend()
1729 pm_dev_err(dev, pm_transition, " async", error); in async_suspend()