Lines Matching refs:device

3  * pm_domain.h - Definitions and headers related to device power domains.
11 #include <linux/device.h>
23 * Flags to control the behaviour when attaching a device to its PM domains.
25 * PD_FLAG_NO_DEV_LINK: As the default behaviour creates a device-link
31 * device-links.
44 struct device **pd_devs;
119 bool (*suspend_ok)(struct device *dev);
123 int (*start)(struct device *dev);
124 int (*stop)(struct device *dev);
151 struct device dev;
166 unsigned int suspended_count; /* System suspend device counter */
179 struct device *dev);
181 struct device *dev);
228 struct device *dev;
249 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
254 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev);
255 int pm_genpd_remove_device(struct device *dev);
263 int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state);
264 int dev_pm_genpd_add_notifier(struct device *dev, struct notifier_block *nb);
265 int dev_pm_genpd_remove_notifier(struct device *dev);
266 void dev_pm_genpd_set_next_wakeup(struct device *dev, ktime_t next);
267 ktime_t dev_pm_genpd_get_next_hrtimer(struct device *dev);
268 void dev_pm_genpd_synced_poweroff(struct device *dev);
277 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
282 struct device *dev)
286 static inline int pm_genpd_remove_device(struct device *dev)
310 static inline int dev_pm_genpd_set_performance_state(struct device *dev,
316 static inline int dev_pm_genpd_add_notifier(struct device *dev,
322 static inline int dev_pm_genpd_remove_notifier(struct device *dev)
327 static inline void dev_pm_genpd_set_next_wakeup(struct device *dev, ktime_t next)
330 static inline ktime_t dev_pm_genpd_get_next_hrtimer(struct device *dev)
334 static inline void dev_pm_genpd_synced_poweroff(struct device *dev)
342 void dev_pm_genpd_suspend(struct device *dev);
343 void dev_pm_genpd_resume(struct device *dev);
345 static inline void dev_pm_genpd_suspend(struct device *dev) {}
346 static inline void dev_pm_genpd_resume(struct device *dev) {}
367 int of_genpd_add_device(const struct of_phandle_args *args, struct device *dev);
376 int genpd_dev_pm_attach(struct device *dev);
377 struct device *genpd_dev_pm_attach_by_id(struct device *dev,
379 struct device *genpd_dev_pm_attach_by_name(struct device *dev,
397 struct device *dev)
420 static inline int genpd_dev_pm_attach(struct device *dev)
425 static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev,
431 static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev,
445 int dev_pm_domain_attach(struct device *dev, bool power_on);
446 struct device *dev_pm_domain_attach_by_id(struct device *dev,
448 struct device *dev_pm_domain_attach_by_name(struct device *dev,
450 int dev_pm_domain_attach_list(struct device *dev,
453 void dev_pm_domain_detach(struct device *dev, bool power_off);
455 int dev_pm_domain_start(struct device *dev);
456 void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd);
457 int dev_pm_domain_set_performance_state(struct device *dev, unsigned int state);
459 static inline int dev_pm_domain_attach(struct device *dev, bool power_on)
463 static inline struct device *dev_pm_domain_attach_by_id(struct device *dev,
468 static inline struct device *dev_pm_domain_attach_by_name(struct device *dev,
473 static inline int dev_pm_domain_attach_list(struct device *dev,
479 static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {}
481 static inline int dev_pm_domain_start(struct device *dev)
485 static inline void dev_pm_domain_set(struct device *dev,
487 static inline int dev_pm_domain_set_performance_state(struct device *dev,