Lines Matching refs:device
9 #include <linux/device.h>
214 struct wakeup_source *wakeup_source_register(struct device *dev,
306 * device_wakeup_attach - Attach a wakeup source object to a device object.
310 * This causes @dev to be treated as a wakeup device.
312 static int device_wakeup_attach(struct device *dev, struct wakeup_source *ws)
327 * device_wakeup_enable - Enable given device to be a wakeup source.
332 int device_wakeup_enable(struct device *dev)
360 * Attach a device wakeirq to the wakeup source so the device
364 * Call under the device's power.lock lock.
366 void device_wakeup_attach_irq(struct device *dev,
385 * Removes a device wakeirq from the wakeup source.
387 * Call under the device's power.lock lock.
389 void device_wakeup_detach_irq(struct device *dev)
401 * Iterates over the list of device wakeirqs to arm them.
417 * Iterates over the list of device wakeirqs to disarm them.
431 * device_wakeup_detach - Detach a device's wakeup source object from it.
434 * After it returns, @dev will not be treated as a wakeup device any more.
436 static struct wakeup_source *device_wakeup_detach(struct device *dev)
448 * device_wakeup_disable - Do not regard a device as a wakeup source any more.
454 int device_wakeup_disable(struct device *dev)
468 * device_set_wakeup_capable - Set/reset device wakeup capability flag.
479 void device_set_wakeup_capable(struct device *dev, bool capable)
499 * device_set_wakeup_enable - Enable or disable a device to wake up the system.
503 int device_set_wakeup_enable(struct device *dev, bool enable)
631 void pm_stay_awake(struct device *dev)
740 void pm_relax(struct device *dev)
829 void pm_wakeup_dev_event(struct device *dev, unsigned int msec, bool hard)