• Home
  • Raw
  • Download

Lines Matching refs:dev

61 	struct device		*dev;  member
77 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() argument
79 return dev->power.can_wakeup; in device_can_wakeup()
82 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() argument
84 return dev->power.can_wakeup && !!dev->power.wakeup; in device_may_wakeup()
87 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() argument
89 return dev->power.wakeup_path; in device_wakeup_path()
92 static inline void device_set_wakeup_path(struct device *dev) in device_set_wakeup_path() argument
94 dev->power.wakeup_path = true; in device_set_wakeup_path()
102 extern struct wakeup_source *wakeup_source_register(struct device *dev,
109 extern int device_wakeup_enable(struct device *dev);
110 extern void device_wakeup_disable(struct device *dev);
111 extern void device_set_wakeup_capable(struct device *dev, bool capable);
112 extern int device_set_wakeup_enable(struct device *dev, bool enable);
114 extern void pm_stay_awake(struct device *dev);
116 extern void pm_relax(struct device *dev);
118 extern void pm_wakeup_dev_event(struct device *dev, unsigned int msec, bool hard);
122 static inline void device_set_wakeup_capable(struct device *dev, bool capable) in device_set_wakeup_capable() argument
124 dev->power.can_wakeup = capable; in device_set_wakeup_capable()
127 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() argument
129 return dev->power.can_wakeup; in device_can_wakeup()
143 static inline struct wakeup_source *wakeup_source_register(struct device *dev, in wakeup_source_register() argument
151 static inline int device_wakeup_enable(struct device *dev) in device_wakeup_enable() argument
153 dev->power.should_wakeup = true; in device_wakeup_enable()
157 static inline void device_wakeup_disable(struct device *dev) in device_wakeup_disable() argument
159 dev->power.should_wakeup = false; in device_wakeup_disable()
162 static inline int device_set_wakeup_enable(struct device *dev, bool enable) in device_set_wakeup_enable() argument
164 dev->power.should_wakeup = enable; in device_set_wakeup_enable()
168 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() argument
170 return dev->power.can_wakeup && dev->power.should_wakeup; in device_may_wakeup()
173 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() argument
178 static inline void device_set_wakeup_path(struct device *dev) {} in device_set_wakeup_path() argument
182 static inline void pm_stay_awake(struct device *dev) {} in pm_stay_awake() argument
186 static inline void pm_relax(struct device *dev) {} in pm_relax() argument
191 static inline void pm_wakeup_dev_event(struct device *dev, unsigned int msec, in pm_wakeup_dev_event() argument
196 static inline bool device_awake_path(struct device *dev) in device_awake_path() argument
198 return device_wakeup_path(dev); in device_awake_path()
201 static inline void device_set_awake_path(struct device *dev) in device_set_awake_path() argument
203 device_set_wakeup_path(dev); in device_set_awake_path()
211 static inline void pm_wakeup_event(struct device *dev, unsigned int msec) in pm_wakeup_event() argument
213 return pm_wakeup_dev_event(dev, msec, false); in pm_wakeup_event()
216 static inline void pm_wakeup_hard_event(struct device *dev) in pm_wakeup_hard_event() argument
218 return pm_wakeup_dev_event(dev, 0, true); in pm_wakeup_hard_event()
232 static inline int device_init_wakeup(struct device *dev, bool enable) in device_init_wakeup() argument
235 device_set_wakeup_capable(dev, true); in device_init_wakeup()
236 return device_wakeup_enable(dev); in device_init_wakeup()
238 device_wakeup_disable(dev); in device_init_wakeup()
239 device_set_wakeup_capable(dev, false); in device_init_wakeup()