Lines Matching full:device
21 struct device;
34 * @u_amp: Maximum current drawn by the device in microamperes
35 * @u_watt: Power used by the device in microwatts
60 typedef int (*config_regulators_t)(struct device *dev,
64 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table,
68 * struct dev_pm_opp_config - Device OPP configuration values
80 * This structure contains platform specific OPP configurations for the device.
92 struct device ***virt_devs;
97 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
115 int dev_pm_opp_get_opp_count(struct device *dev);
116 unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev);
117 unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev);
118 unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev);
119 unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev);
121 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
124 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
127 struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
129 struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
132 struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
135 struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
138 struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev,
143 int dev_pm_opp_add(struct device *dev, unsigned long freq,
145 void dev_pm_opp_remove(struct device *dev, unsigned long freq);
146 void dev_pm_opp_remove_all_dynamic(struct device *dev);
148 int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq,
152 int dev_pm_opp_enable(struct device *dev, unsigned long freq);
154 int dev_pm_opp_disable(struct device *dev, unsigned long freq);
156 int dev_pm_opp_register_notifier(struct device *dev, struct notifier_block *nb);
157 int dev_pm_opp_unregister_notifier(struct device *dev, struct notifier_block *nb);
159 int dev_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config);
160 int devm_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config);
162 int dev_pm_opp_config_clks_simple(struct device *dev,
168 int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq);
169 int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp);
170 int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask);
171 int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask);
172 void dev_pm_opp_remove_table(struct device *dev);
174 int dev_pm_opp_sync_regulators(struct device *dev);
176 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table()
181 static inline struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index) in dev_pm_opp_get_opp_table_indexed()
225 static inline int dev_pm_opp_get_opp_count(struct device *dev) in dev_pm_opp_get_opp_count()
230 static inline unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev) in dev_pm_opp_get_max_clock_latency()
235 static inline unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev) in dev_pm_opp_get_max_volt_latency()
240 static inline unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev) in dev_pm_opp_get_max_transition_latency()
245 static inline unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev) in dev_pm_opp_get_suspend_opp_freq()
250 static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev, in dev_pm_opp_find_level_exact()
256 static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, in dev_pm_opp_find_level_ceil()
262 static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, in dev_pm_opp_find_freq_exact()
268 static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, in dev_pm_opp_find_freq_floor()
274 static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev, in dev_pm_opp_find_freq_ceil()
280 static inline struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, in dev_pm_opp_find_bw_ceil()
286 static inline struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev, in dev_pm_opp_find_bw_floor()
294 static inline int dev_pm_opp_add(struct device *dev, unsigned long freq, in dev_pm_opp_add()
300 static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq) in dev_pm_opp_remove()
304 static inline void dev_pm_opp_remove_all_dynamic(struct device *dev) in dev_pm_opp_remove_all_dynamic()
309 dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq, in dev_pm_opp_adjust_voltage()
316 static inline int dev_pm_opp_enable(struct device *dev, unsigned long freq) in dev_pm_opp_enable()
321 static inline int dev_pm_opp_disable(struct device *dev, unsigned long freq) in dev_pm_opp_disable()
326 static inline int dev_pm_opp_register_notifier(struct device *dev, struct notifier_block *nb) in dev_pm_opp_register_notifier()
331 static inline int dev_pm_opp_unregister_notifier(struct device *dev, struct notifier_block *nb) in dev_pm_opp_unregister_notifier()
336 static inline int dev_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config) in dev_pm_opp_set_config()
341 static inline int devm_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config) in devm_pm_opp_set_config()
348 static inline int dev_pm_opp_config_clks_simple(struct device *dev, in dev_pm_opp_config_clks_simple()
366 static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) in dev_pm_opp_set_rate()
371 static inline int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp) in dev_pm_opp_set_opp()
376 static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask) in dev_pm_opp_set_sharing_cpus()
381 static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) in dev_pm_opp_get_sharing_cpus()
386 static inline void dev_pm_opp_remove_table(struct device *dev) in dev_pm_opp_remove_table()
394 static inline int dev_pm_opp_sync_regulators(struct device *dev) in dev_pm_opp_sync_regulators()
402 int dev_pm_opp_of_add_table(struct device *dev);
403 int dev_pm_opp_of_add_table_indexed(struct device *dev, int index);
404 int devm_pm_opp_of_add_table_indexed(struct device *dev, int index);
405 void dev_pm_opp_of_remove_table(struct device *dev);
406 int devm_pm_opp_of_add_table(struct device *dev);
409 int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask);
410 struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev);
413 int dev_pm_opp_of_find_icc_paths(struct device *dev, struct opp_table *opp_table);
414 int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus);
415 static inline void dev_pm_opp_of_unregister_em(struct device *dev) in dev_pm_opp_of_unregister_em()
420 static inline int dev_pm_opp_of_add_table(struct device *dev) in dev_pm_opp_of_add_table()
425 static inline int dev_pm_opp_of_add_table_indexed(struct device *dev, int index) in dev_pm_opp_of_add_table_indexed()
430 static inline int devm_pm_opp_of_add_table_indexed(struct device *dev, int index) in devm_pm_opp_of_add_table_indexed()
435 static inline void dev_pm_opp_of_remove_table(struct device *dev) in dev_pm_opp_of_remove_table()
439 static inline int devm_pm_opp_of_add_table(struct device *dev) in devm_pm_opp_of_add_table()
453 static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) in dev_pm_opp_of_get_sharing_cpus()
458 static inline struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev) in dev_pm_opp_of_get_opp_desc_node()
468 static inline int dev_pm_opp_of_register_em(struct device *dev, in dev_pm_opp_of_register_em()
474 static inline void dev_pm_opp_of_unregister_em(struct device *dev) in dev_pm_opp_of_unregister_em()
483 static inline int dev_pm_opp_of_find_icc_paths(struct device *dev, struct opp_table *opp_table) in dev_pm_opp_of_find_icc_paths()
492 static inline int dev_pm_opp_set_regulators(struct device *dev, in dev_pm_opp_set_regulators()
507 static inline int devm_pm_opp_set_regulators(struct device *dev, in devm_pm_opp_set_regulators()
518 static inline int dev_pm_opp_set_supported_hw(struct device *dev, in dev_pm_opp_set_supported_hw()
535 static inline int devm_pm_opp_set_supported_hw(struct device *dev, in devm_pm_opp_set_supported_hw()
548 static inline int dev_pm_opp_set_clkname(struct device *dev, const char *name) in dev_pm_opp_set_clkname()
563 static inline int devm_pm_opp_set_clkname(struct device *dev, const char *name) in devm_pm_opp_set_clkname()
574 static inline int dev_pm_opp_set_config_regulators(struct device *dev, in dev_pm_opp_set_config_regulators()
590 static inline int dev_pm_opp_attach_genpd(struct device *dev, in dev_pm_opp_attach_genpd()
592 struct device ***virt_devs) in dev_pm_opp_attach_genpd()
607 static inline int devm_pm_opp_attach_genpd(struct device *dev, in devm_pm_opp_attach_genpd()
609 struct device ***virt_devs) in devm_pm_opp_attach_genpd()
620 static inline int dev_pm_opp_set_prop_name(struct device *dev, const char *name) in dev_pm_opp_set_prop_name()