Lines Matching full:async

31 #include <linux/async.h>
235 * @async: If unset, wait only if the device's power.async_suspend flag is set.
237 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument
242 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait()
252 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument
254 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children()
257 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument
273 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers()
278 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument
300 dpm_wait(parent, async); in dpm_wait_for_superior()
303 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior()
312 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument
330 dpm_wait(link->consumer, async); in dpm_wait_for_consumers()
335 static void dpm_wait_for_subordinate(struct device *dev, bool async) in dpm_wait_for_subordinate() argument
337 dpm_wait_for_children(dev, async); in dpm_wait_for_subordinate()
338 dpm_wait_for_consumers(dev, async); in dpm_wait_for_subordinate()
586 * @async: If true, the device is being resumed asynchronously.
591 static int device_resume_noirq(struct device *dev, pm_message_t state, bool async) in device_resume_noirq() argument
607 if (!dpm_wait_for_superior(dev, async)) in device_resume_noirq()
688 pm_dev_err(dev, pm_transition, " async", error); in async_resume_noirq()
703 * Advanced the async threads upfront, in dpm_noirq_resume_devices()
704 * in case the starting of async threads is in dpm_noirq_resume_devices()
705 * delayed by non-async resuming devices. in dpm_noirq_resume_devices()
758 * @async: If true, the device is being resumed asynchronously.
762 static int device_resume_early(struct device *dev, pm_message_t state, bool async) in device_resume_early() argument
777 if (!dpm_wait_for_superior(dev, async)) in device_resume_early()
825 pm_dev_err(dev, pm_transition, " async", error); in async_resume_early()
844 * Advanced the async threads upfront, in dpm_resume_early()
845 * in case the starting of async threads is in dpm_resume_early()
846 * delayed by non-async resuming devices. in dpm_resume_early()
892 * @async: If true, the device is being resumed asynchronously.
894 static int device_resume(struct device *dev, pm_message_t state, bool async) in device_resume() argument
913 if (!dpm_wait_for_superior(dev, async)) in device_resume()
986 pm_dev_err(dev, pm_transition, " async", error); in async_resume()
1184 * @async: If true, the device is being suspended asynchronously.
1189 static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool async) in __device_suspend_noirq() argument
1198 dpm_wait_for_subordinate(dev, async); in __device_suspend_noirq()
1268 pm_dev_err(dev, pm_transition, " async", error); in async_suspend_noirq()
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) in __device_suspend_late() argument
1385 dpm_wait_for_subordinate(dev, async); in __device_suspend_late()
1447 pm_dev_err(dev, pm_transition, " async", error); in async_suspend_late()
1586 * @async: If true, the device is being suspended asynchronously.
1588 static int __device_suspend(struct device *dev, pm_message_t state, bool async) in __device_suspend() argument
1598 dpm_wait_for_subordinate(dev, async); in __device_suspend()
1718 pm_dev_err(dev, pm_transition, " async", error); in async_suspend()