Lines Matching refs:async

31 #include <linux/async.h>
233 * @async: If unset, wait only if the device's power.async_suspend flag is set.
235 static void dpm_wait(struct device *dev, bool async)
240 if (async || (pm_async_enabled && dev->power.async_suspend))
250 static void dpm_wait_for_children(struct device *dev, bool async)
252 device_for_each_child(dev, &async, dpm_wait_fn);
255 static void dpm_wait_for_suppliers(struct device *dev, bool async)
271 dpm_wait(link->supplier, async);
276 static bool dpm_wait_for_superior(struct device *dev, bool async)
298 dpm_wait(parent, async);
301 dpm_wait_for_suppliers(dev, async);
310 static void dpm_wait_for_consumers(struct device *dev, bool async)
328 dpm_wait(link->consumer, async);
333 static void dpm_wait_for_subordinate(struct device *dev, bool async)
335 dpm_wait_for_children(dev, async);
336 dpm_wait_for_consumers(dev, async);
613 * @async: If true, the device is being resumed asynchronously.
618 static void device_resume_noirq(struct device *dev, pm_message_t state, bool async)
634 if (!dpm_wait_for_superior(dev, async))
690 pm_dev_err(dev, state, async ? " async noirq" : " noirq", error);
715 * Trigger the resume of "async" devices upfront so they don't have to
716 * wait for the "non-async" ones they don't depend on.
765 * @async: If true, the device is being resumed asynchronously.
769 static void device_resume_early(struct device *dev, pm_message_t state, bool async)
784 if (!dpm_wait_for_superior(dev, async))
826 pm_dev_err(dev, state, async ? " async early" : " early", error);
855 * Trigger the resume of "async" devices upfront so they don't have to
856 * wait for the "non-async" ones they don't depend on.
901 * @async: If true, the device is being resumed asynchronously.
903 static void device_resume(struct device *dev, pm_message_t state, bool async)
922 if (!dpm_wait_for_superior(dev, async))
988 pm_dev_err(dev, state, async ? " async" : "", error);
1021 * Trigger the resume of "async" devices upfront so they don't have to
1022 * wait for the "non-async" ones they don't depend on.
1198 * @async: If true, the device is being suspended asynchronously.
1203 static int device_suspend_noirq(struct device *dev, pm_message_t state, bool async)
1212 dpm_wait_for_subordinate(dev, async);
1249 pm_dev_err(dev, state, async ? " async noirq" : " noirq", error);
1372 * @async: If true, the device is being suspended asynchronously.
1376 static int device_suspend_late(struct device *dev, pm_message_t state, bool async)
1387 dpm_wait_for_subordinate(dev, async);
1429 pm_dev_err(dev, state, async ? " async late" : " late", error);
1581 * @async: If true, the device is being suspended asynchronously.
1583 static int device_suspend(struct device *dev, pm_message_t state, bool async)
1593 dpm_wait_for_subordinate(dev, async);
1700 pm_dev_err(dev, state, async ? " async" : "", error);