Lines Matching refs:device

51 	struct device **pd_devs;
132 bool (*suspend_ok)(struct device *dev);
136 int (*start)(struct device *dev);
137 int (*stop)(struct device *dev);
165 struct device dev;
194 struct device *dev, bool enable);
196 struct device *dev);
198 struct device *dev);
200 struct device *dev);
250 struct device *dev;
274 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) in dev_gpd_data()
279 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev);
280 int pm_genpd_remove_device(struct device *dev);
288 struct device *dev_to_genpd_dev(struct device *dev);
289 int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state);
290 int dev_pm_genpd_add_notifier(struct device *dev, struct notifier_block *nb);
291 int dev_pm_genpd_remove_notifier(struct device *dev);
292 void dev_pm_genpd_set_next_wakeup(struct device *dev, ktime_t next);
293 ktime_t dev_pm_genpd_get_next_hrtimer(struct device *dev);
294 void dev_pm_genpd_synced_poweroff(struct device *dev);
295 int dev_pm_genpd_set_hwmode(struct device *dev, bool enable);
296 bool dev_pm_genpd_get_hwmode(struct device *dev);
297 int dev_pm_genpd_rpm_always_on(struct device *dev, bool on);
306 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) in dev_gpd_data()
311 struct device *dev) in pm_genpd_add_device()
315 static inline int pm_genpd_remove_device(struct device *dev) in pm_genpd_remove_device()
339 static inline struct device *dev_to_genpd_dev(struct device *dev) in dev_to_genpd_dev()
344 static inline int dev_pm_genpd_set_performance_state(struct device *dev, in dev_pm_genpd_set_performance_state()
350 static inline int dev_pm_genpd_add_notifier(struct device *dev, in dev_pm_genpd_add_notifier()
356 static inline int dev_pm_genpd_remove_notifier(struct device *dev) in dev_pm_genpd_remove_notifier()
361 static inline void dev_pm_genpd_set_next_wakeup(struct device *dev, ktime_t next) in dev_pm_genpd_set_next_wakeup()
364 static inline ktime_t dev_pm_genpd_get_next_hrtimer(struct device *dev) in dev_pm_genpd_get_next_hrtimer()
368 static inline void dev_pm_genpd_synced_poweroff(struct device *dev) in dev_pm_genpd_synced_poweroff()
371 static inline int dev_pm_genpd_set_hwmode(struct device *dev, bool enable) in dev_pm_genpd_set_hwmode()
376 static inline bool dev_pm_genpd_get_hwmode(struct device *dev) in dev_pm_genpd_get_hwmode()
381 static inline int dev_pm_genpd_rpm_always_on(struct device *dev, bool on) in dev_pm_genpd_rpm_always_on()
391 void dev_pm_genpd_suspend(struct device *dev);
392 void dev_pm_genpd_resume(struct device *dev);
394 static inline void dev_pm_genpd_suspend(struct device *dev) {} in dev_pm_genpd_suspend()
395 static inline void dev_pm_genpd_resume(struct device *dev) {} in dev_pm_genpd_resume()
416 int of_genpd_add_device(const struct of_phandle_args *args, struct device *dev);
425 int genpd_dev_pm_attach(struct device *dev);
426 struct device *genpd_dev_pm_attach_by_id(struct device *dev,
428 struct device *genpd_dev_pm_attach_by_name(struct device *dev,
446 struct device *dev) in of_genpd_add_device()
469 static inline int genpd_dev_pm_attach(struct device *dev) in genpd_dev_pm_attach()
474 static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev, in genpd_dev_pm_attach_by_id()
480 static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev, in genpd_dev_pm_attach_by_name()
494 int dev_pm_domain_attach(struct device *dev, bool power_on);
495 struct device *dev_pm_domain_attach_by_id(struct device *dev,
497 struct device *dev_pm_domain_attach_by_name(struct device *dev,
499 int dev_pm_domain_attach_list(struct device *dev,
502 int devm_pm_domain_attach_list(struct device *dev,
505 void dev_pm_domain_detach(struct device *dev, bool power_off);
507 int dev_pm_domain_start(struct device *dev);
508 void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd);
509 int dev_pm_domain_set_performance_state(struct device *dev, unsigned int state);
511 static inline int dev_pm_domain_attach(struct device *dev, bool power_on) in dev_pm_domain_attach()
515 static inline struct device *dev_pm_domain_attach_by_id(struct device *dev, in dev_pm_domain_attach_by_id()
520 static inline struct device *dev_pm_domain_attach_by_name(struct device *dev, in dev_pm_domain_attach_by_name()
525 static inline int dev_pm_domain_attach_list(struct device *dev, in dev_pm_domain_attach_list()
532 static inline int devm_pm_domain_attach_list(struct device *dev, in devm_pm_domain_attach_list()
539 static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {} in dev_pm_domain_detach()
541 static inline int dev_pm_domain_start(struct device *dev) in dev_pm_domain_start()
545 static inline void dev_pm_domain_set(struct device *dev, in dev_pm_domain_set()
547 static inline int dev_pm_domain_set_performance_state(struct device *dev, in dev_pm_domain_set_performance_state()