Lines Matching refs:device
37 struct device; /* we have a circular dep with device.h */
39 extern void pm_vt_switch_required(struct device *dev, bool required);
40 extern void pm_vt_switch_unregister(struct device *dev);
42 static inline void pm_vt_switch_required(struct device *dev, bool required) in pm_vt_switch_required()
45 static inline void pm_vt_switch_unregister(struct device *dev) in pm_vt_switch_unregister()
54 struct device;
291 int (*prepare)(struct device *dev);
292 void (*complete)(struct device *dev);
293 int (*suspend)(struct device *dev);
294 int (*resume)(struct device *dev);
295 int (*freeze)(struct device *dev);
296 int (*thaw)(struct device *dev);
297 int (*poweroff)(struct device *dev);
298 int (*restore)(struct device *dev);
299 int (*suspend_late)(struct device *dev);
300 int (*resume_early)(struct device *dev);
301 int (*freeze_late)(struct device *dev);
302 int (*thaw_early)(struct device *dev);
303 int (*poweroff_late)(struct device *dev);
304 int (*restore_early)(struct device *dev);
305 int (*suspend_noirq)(struct device *dev);
306 int (*resume_noirq)(struct device *dev);
307 int (*freeze_noirq)(struct device *dev);
308 int (*thaw_noirq)(struct device *dev);
309 int (*poweroff_noirq)(struct device *dev);
310 int (*restore_noirq)(struct device *dev);
311 int (*runtime_suspend)(struct device *dev);
312 int (*runtime_resume)(struct device *dev);
313 int (*runtime_idle)(struct device *dev);
640 void (*set_latency_tolerance)(struct device *, s32);
644 extern void update_pm_runtime_accounting(struct device *dev);
645 extern int dev_pm_get_subsys_data(struct device *dev);
646 extern void dev_pm_put_subsys_data(struct device *dev);
663 void (*detach)(struct device *dev, bool power_off);
664 int (*activate)(struct device *dev);
665 void (*sync)(struct device *dev);
666 void (*dismiss)(struct device *dev);
751 extern int device_pm_wait_for_dev(struct device *sub, struct device *dev);
752 extern void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *));
754 extern int pm_generic_prepare(struct device *dev);
755 extern int pm_generic_suspend_late(struct device *dev);
756 extern int pm_generic_suspend_noirq(struct device *dev);
757 extern int pm_generic_suspend(struct device *dev);
758 extern int pm_generic_resume_early(struct device *dev);
759 extern int pm_generic_resume_noirq(struct device *dev);
760 extern int pm_generic_resume(struct device *dev);
761 extern int pm_generic_freeze_noirq(struct device *dev);
762 extern int pm_generic_freeze_late(struct device *dev);
763 extern int pm_generic_freeze(struct device *dev);
764 extern int pm_generic_thaw_noirq(struct device *dev);
765 extern int pm_generic_thaw_early(struct device *dev);
766 extern int pm_generic_thaw(struct device *dev);
767 extern int pm_generic_restore_noirq(struct device *dev);
768 extern int pm_generic_restore_early(struct device *dev);
769 extern int pm_generic_restore(struct device *dev);
770 extern int pm_generic_poweroff_noirq(struct device *dev);
771 extern int pm_generic_poweroff_late(struct device *dev);
772 extern int pm_generic_poweroff(struct device *dev);
773 extern void pm_generic_complete(struct device *dev);
775 extern void dev_pm_skip_next_resume_phases(struct device *dev);
776 extern bool dev_pm_may_skip_resume(struct device *dev);
777 extern bool dev_pm_smart_suspend_and_suspended(struct device *dev);
791 static inline int device_pm_wait_for_dev(struct device *a, struct device *b) in device_pm_wait_for_dev()
796 static inline void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *)) in dpm_for_each_dev() argument