Lines Matching refs:dev_pm_opp
118 unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) in dev_pm_opp_get_voltage()
140 int dev_pm_opp_get_supplies(struct dev_pm_opp *opp, in dev_pm_opp_get_supplies()
163 unsigned long dev_pm_opp_get_power(struct dev_pm_opp *opp) in dev_pm_opp_get_power()
188 unsigned long dev_pm_opp_get_freq_indexed(struct dev_pm_opp *opp, u32 index) in dev_pm_opp_get_freq_indexed()
206 unsigned int dev_pm_opp_get_level(struct dev_pm_opp *opp) in dev_pm_opp_get_level()
226 unsigned int dev_pm_opp_get_required_pstate(struct dev_pm_opp *opp, in dev_pm_opp_get_required_pstate()
259 bool dev_pm_opp_is_turbo(struct dev_pm_opp *opp) in dev_pm_opp_is_turbo()
302 struct dev_pm_opp *opp; in dev_pm_opp_get_max_volt_latency()
405 struct dev_pm_opp *opp; in _get_opp_count()
448 static unsigned long _read_freq(struct dev_pm_opp *opp, int index) in _read_freq()
453 static unsigned long _read_level(struct dev_pm_opp *opp, int index) in _read_level()
458 static unsigned long _read_bw(struct dev_pm_opp *opp, int index) in _read_bw()
464 static bool _compare_exact(struct dev_pm_opp **opp, struct dev_pm_opp *temp_opp, in _compare_exact()
475 static bool _compare_ceil(struct dev_pm_opp **opp, struct dev_pm_opp *temp_opp, in _compare_ceil()
486 static bool _compare_floor(struct dev_pm_opp **opp, struct dev_pm_opp *temp_opp, in _compare_floor()
497 static struct dev_pm_opp *_opp_table_find_key(struct opp_table *opp_table, in _opp_table_find_key()
499 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _opp_table_find_key()
500 bool (*compare)(struct dev_pm_opp **opp, struct dev_pm_opp *temp_opp, in _opp_table_find_key()
504 struct dev_pm_opp *temp_opp, *opp = ERR_PTR(-ERANGE); in _opp_table_find_key()
530 static struct dev_pm_opp *
532 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _find_key()
533 bool (*compare)(struct dev_pm_opp **opp, struct dev_pm_opp *temp_opp, in _find_key()
538 struct dev_pm_opp *opp; in _find_key()
555 static struct dev_pm_opp *_find_key_exact(struct device *dev, in _find_key_exact()
557 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _find_key_exact()
568 static struct dev_pm_opp *_opp_table_find_key_ceil(struct opp_table *opp_table, in _opp_table_find_key_ceil()
570 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _opp_table_find_key_ceil()
577 static struct dev_pm_opp *_find_key_ceil(struct device *dev, unsigned long *key, in _find_key_ceil()
579 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _find_key_ceil()
586 static struct dev_pm_opp *_find_key_floor(struct device *dev, in _find_key_floor()
588 unsigned long (*read)(struct dev_pm_opp *opp, int index), in _find_key_floor()
618 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, in dev_pm_opp_find_freq_exact()
646 struct dev_pm_opp *
654 static noinline struct dev_pm_opp *_find_freq_ceil(struct opp_table *opp_table, in _find_freq_ceil()
679 struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev, in dev_pm_opp_find_freq_ceil()
706 struct dev_pm_opp *
732 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, in dev_pm_opp_find_freq_floor()
759 struct dev_pm_opp *
782 struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev, in dev_pm_opp_find_level_exact()
804 struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, in dev_pm_opp_find_level_ceil()
808 struct dev_pm_opp *opp; in dev_pm_opp_find_level_ceil()
844 struct dev_pm_opp *dev_pm_opp_find_level_floor(struct device *dev, in dev_pm_opp_find_level_floor()
848 struct dev_pm_opp *opp; in dev_pm_opp_find_level_floor()
875 struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, unsigned int *bw, in dev_pm_opp_find_bw_ceil()
879 struct dev_pm_opp *opp; in dev_pm_opp_find_bw_ceil()
906 struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev, in dev_pm_opp_find_bw_floor()
910 struct dev_pm_opp *opp; in dev_pm_opp_find_bw_floor()
945 struct dev_pm_opp *opp, void *data, bool scaling_down) in _opp_config_clk_single()
977 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data, in dev_pm_opp_config_clks_simple()
1007 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in _opp_config_regulator_single()
1037 struct dev_pm_opp *opp, struct device *dev) in _set_opp_bw()
1064 static int _set_opp_level(struct device *dev, struct dev_pm_opp *opp) in _set_opp_level()
1087 struct dev_pm_opp *opp, bool up) in _set_required_opps()
1090 struct dev_pm_opp *required_opp; in _set_required_opps()
1128 struct dev_pm_opp *opp = ERR_PTR(-ENODEV); in _find_current_opp()
1143 opp = list_first_entry(&opp_table->opp_list, struct dev_pm_opp, node); in _find_current_opp()
1185 struct dev_pm_opp *opp, void *clk_data, bool forced) in _set_opp()
1187 struct dev_pm_opp *old_opp; in _set_opp()
1305 struct dev_pm_opp *opp = NULL; in dev_pm_opp_set_rate()
1378 int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp) in dev_pm_opp_set_opp()
1655 void _opp_free(struct dev_pm_opp *opp) in _opp_free()
1662 struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref); in _opp_kref_release()
1678 void dev_pm_opp_get(struct dev_pm_opp *opp) in dev_pm_opp_get()
1683 void dev_pm_opp_put(struct dev_pm_opp *opp) in dev_pm_opp_put()
1698 struct dev_pm_opp *opp = NULL, *iter; in dev_pm_opp_remove()
1735 static struct dev_pm_opp *_opp_get_next(struct opp_table *opp_table, in _opp_get_next()
1738 struct dev_pm_opp *opp = NULL, *temp; in _opp_get_next()
1763 struct dev_pm_opp *opp; in _opp_remove_all()
1816 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table) in _opp_allocate()
1818 struct dev_pm_opp *opp; in _opp_allocate()
1848 static bool _opp_supported_by_regulators(struct dev_pm_opp *opp, in _opp_supported_by_regulators()
1874 struct dev_pm_opp *opp1, struct dev_pm_opp *opp2) in _opp_compare_rate()
1887 static int _opp_compare_bw(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_bw()
1888 struct dev_pm_opp *opp2) in _opp_compare_bw()
1907 int _opp_compare_key(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_key()
1908 struct dev_pm_opp *opp2) in _opp_compare_key()
1927 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate()
1931 struct dev_pm_opp *opp; in _opp_is_duplicate()
1966 void _required_opps_available(struct dev_pm_opp *opp, int count) in _required_opps_available()
1991 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add()
2053 struct dev_pm_opp *new_opp; in _opp_add_v1()
2739 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, in dev_pm_opp_xlate_required_opp()
2741 struct dev_pm_opp *src_opp) in dev_pm_opp_xlate_required_opp()
2743 struct dev_pm_opp *opp, *dest_opp = ERR_PTR(-ENODEV); in dev_pm_opp_xlate_required_opp()
2797 struct dev_pm_opp *opp; in dev_pm_opp_xlate_performance_state()
2903 struct dev_pm_opp *tmp_opp, *opp = ERR_PTR(-ENODEV); in _opp_set_availability()
2979 struct dev_pm_opp *tmp_opp, *opp = ERR_PTR(-ENODEV); in dev_pm_opp_adjust_voltage()