Lines Matching full:device
22 struct device;
35 * @u_amp: Maximum current drawn by the device in microamperes
36 * @u_watt: Power used by the device in microwatts
49 typedef int (*config_regulators_t)(struct device *dev,
53 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table,
57 * struct dev_pm_opp_config - Device OPP configuration values
71 * This structure contains platform specific OPP configurations for the device.
83 struct device ***virt_devs;
84 struct device **required_devs;
106 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
124 int dev_pm_opp_get_opp_count(struct device *dev);
125 unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev);
126 unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev);
127 unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev);
128 unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev);
130 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
135 dev_pm_opp_find_freq_exact_indexed(struct device *dev, unsigned long freq,
138 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
141 struct dev_pm_opp *dev_pm_opp_find_freq_floor_indexed(struct device *dev,
144 struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
147 struct dev_pm_opp *dev_pm_opp_find_freq_ceil_indexed(struct device *dev,
150 struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
153 struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
156 struct dev_pm_opp *dev_pm_opp_find_level_floor(struct device *dev,
159 struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
162 struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev,
167 int dev_pm_opp_add_dynamic(struct device *dev, struct dev_pm_opp_data *opp);
169 void dev_pm_opp_remove(struct device *dev, unsigned long freq);
170 void dev_pm_opp_remove_all_dynamic(struct device *dev);
172 int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq,
176 int dev_pm_opp_enable(struct device *dev, unsigned long freq);
178 int dev_pm_opp_disable(struct device *dev, unsigned long freq);
180 int dev_pm_opp_register_notifier(struct device *dev, struct notifier_block *nb);
181 int dev_pm_opp_unregister_notifier(struct device *dev, struct notifier_block *nb);
183 int dev_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config);
184 int devm_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config);
186 int dev_pm_opp_config_clks_simple(struct device *dev,
192 int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq);
193 int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp);
194 int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask);
195 int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask);
196 void dev_pm_opp_remove_table(struct device *dev);
198 int dev_pm_opp_sync_regulators(struct device *dev);
200 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table()
205 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()
249 static inline int dev_pm_opp_get_opp_count(struct device *dev) in dev_pm_opp_get_opp_count()
254 static inline unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev) in dev_pm_opp_get_max_clock_latency()
259 static inline unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev) in dev_pm_opp_get_max_volt_latency()
264 static inline unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev) in dev_pm_opp_get_max_transition_latency()
269 static inline unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev) in dev_pm_opp_get_suspend_opp_freq()
274 static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, in dev_pm_opp_find_freq_exact()
281 dev_pm_opp_find_freq_exact_indexed(struct device *dev, unsigned long freq, in dev_pm_opp_find_freq_exact_indexed()
287 static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, in dev_pm_opp_find_freq_floor()
294 dev_pm_opp_find_freq_floor_indexed(struct device *dev, unsigned long *freq, u32 index) in dev_pm_opp_find_freq_floor_indexed()
299 static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev, in dev_pm_opp_find_freq_ceil()
306 dev_pm_opp_find_freq_ceil_indexed(struct device *dev, unsigned long *freq, u32 index) in dev_pm_opp_find_freq_ceil_indexed()
311 static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev, in dev_pm_opp_find_level_exact()
317 static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, in dev_pm_opp_find_level_ceil()
323 static inline struct dev_pm_opp *dev_pm_opp_find_level_floor(struct device *dev, in dev_pm_opp_find_level_floor()
329 static inline struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, in dev_pm_opp_find_bw_ceil()
335 static inline struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev, in dev_pm_opp_find_bw_floor()
344 dev_pm_opp_add_dynamic(struct device *dev, struct dev_pm_opp_data *opp) in dev_pm_opp_add_dynamic()
349 static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq) in dev_pm_opp_remove()
353 static inline void dev_pm_opp_remove_all_dynamic(struct device *dev) in dev_pm_opp_remove_all_dynamic()
358 dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq, in dev_pm_opp_adjust_voltage()
365 static inline int dev_pm_opp_enable(struct device *dev, unsigned long freq) in dev_pm_opp_enable()
370 static inline int dev_pm_opp_disable(struct device *dev, unsigned long freq) in dev_pm_opp_disable()
375 static inline int dev_pm_opp_register_notifier(struct device *dev, struct notifier_block *nb) in dev_pm_opp_register_notifier()
380 static inline int dev_pm_opp_unregister_notifier(struct device *dev, struct notifier_block *nb) in dev_pm_opp_unregister_notifier()
385 static inline int dev_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config) in dev_pm_opp_set_config()
390 static inline int devm_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config) in devm_pm_opp_set_config()
397 static inline int dev_pm_opp_config_clks_simple(struct device *dev, in dev_pm_opp_config_clks_simple()
415 static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) in dev_pm_opp_set_rate()
420 static inline int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp) in dev_pm_opp_set_opp()
425 static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask) in dev_pm_opp_set_sharing_cpus()
430 static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) in dev_pm_opp_get_sharing_cpus()
435 static inline void dev_pm_opp_remove_table(struct device *dev) in dev_pm_opp_remove_table()
443 static inline int dev_pm_opp_sync_regulators(struct device *dev) in dev_pm_opp_sync_regulators()
451 int dev_pm_opp_init_cpufreq_table(struct device *dev, struct cpufreq_frequency_table **table);
452 void dev_pm_opp_free_cpufreq_table(struct device *dev, struct cpufreq_frequency_table **table);
454 static inline int dev_pm_opp_init_cpufreq_table(struct device *dev, struct cpufreq_frequency_table … in dev_pm_opp_init_cpufreq_table()
459 static inline void dev_pm_opp_free_cpufreq_table(struct device *dev, struct cpufreq_frequency_table… in dev_pm_opp_free_cpufreq_table()
466 int dev_pm_opp_of_add_table(struct device *dev);
467 int dev_pm_opp_of_add_table_indexed(struct device *dev, int index);
468 int devm_pm_opp_of_add_table_indexed(struct device *dev, int index);
469 void dev_pm_opp_of_remove_table(struct device *dev);
470 int devm_pm_opp_of_add_table(struct device *dev);
473 int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask);
474 struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev);
477 bool dev_pm_opp_of_has_required_opp(struct device *dev);
478 int dev_pm_opp_of_find_icc_paths(struct device *dev, struct opp_table *opp_table);
479 int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus);
480 int dev_pm_opp_calc_power(struct device *dev, unsigned long *uW,
482 static inline void dev_pm_opp_of_unregister_em(struct device *dev) in dev_pm_opp_of_unregister_em()
487 static inline int dev_pm_opp_of_add_table(struct device *dev) in dev_pm_opp_of_add_table()
492 static inline int dev_pm_opp_of_add_table_indexed(struct device *dev, int index) in dev_pm_opp_of_add_table_indexed()
497 static inline int devm_pm_opp_of_add_table_indexed(struct device *dev, int index) in devm_pm_opp_of_add_table_indexed()
502 static inline void dev_pm_opp_of_remove_table(struct device *dev) in dev_pm_opp_of_remove_table()
506 static inline int devm_pm_opp_of_add_table(struct device *dev) in devm_pm_opp_of_add_table()
520 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()
525 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()
535 static inline int dev_pm_opp_of_register_em(struct device *dev, in dev_pm_opp_of_register_em()
541 static inline void dev_pm_opp_of_unregister_em(struct device *dev) in dev_pm_opp_of_unregister_em()
545 static inline int dev_pm_opp_calc_power(struct device *dev, unsigned long *uW, in dev_pm_opp_calc_power()
556 static inline bool dev_pm_opp_of_has_required_opp(struct device *dev) in dev_pm_opp_of_has_required_opp()
561 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()
569 static inline int dev_pm_opp_add(struct device *dev, unsigned long freq, in dev_pm_opp_add()
581 static inline int dev_pm_opp_set_regulators(struct device *dev, in dev_pm_opp_set_regulators()
596 static inline int devm_pm_opp_set_regulators(struct device *dev, in devm_pm_opp_set_regulators()
607 static inline int dev_pm_opp_set_supported_hw(struct device *dev, in dev_pm_opp_set_supported_hw()
624 static inline int devm_pm_opp_set_supported_hw(struct device *dev, in devm_pm_opp_set_supported_hw()
637 static inline int dev_pm_opp_set_clkname(struct device *dev, const char *name) in dev_pm_opp_set_clkname()
652 static inline int devm_pm_opp_set_clkname(struct device *dev, const char *name) in devm_pm_opp_set_clkname()
663 static inline int dev_pm_opp_set_config_regulators(struct device *dev, in dev_pm_opp_set_config_regulators()
679 static inline int dev_pm_opp_attach_genpd(struct device *dev, in dev_pm_opp_attach_genpd()
681 struct device ***virt_devs) in dev_pm_opp_attach_genpd()
696 static inline int devm_pm_opp_attach_genpd(struct device *dev, in devm_pm_opp_attach_genpd()
698 struct device ***virt_devs) in devm_pm_opp_attach_genpd()
709 static inline int dev_pm_opp_set_prop_name(struct device *dev, const char *name) in dev_pm_opp_set_prop_name()