Lines Matching refs:opp_dev

36 	struct opp_device *opp_dev;  in _find_opp_dev()  local
38 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
39 if (opp_dev->dev == dev) in _find_opp_dev()
40 return opp_dev; in _find_opp_dev()
910 static void _remove_opp_dev(struct opp_device *opp_dev, in _remove_opp_dev() argument
913 opp_debug_unregister(opp_dev, opp_table); in _remove_opp_dev()
914 list_del(&opp_dev->node); in _remove_opp_dev()
915 kfree(opp_dev); in _remove_opp_dev()
921 struct opp_device *opp_dev; in _add_opp_dev_unlocked() local
923 opp_dev = kzalloc(sizeof(*opp_dev), GFP_KERNEL); in _add_opp_dev_unlocked()
924 if (!opp_dev) in _add_opp_dev_unlocked()
928 opp_dev->dev = dev; in _add_opp_dev_unlocked()
930 list_add(&opp_dev->node, &opp_table->dev_list); in _add_opp_dev_unlocked()
933 opp_debug_register(opp_dev, opp_table); in _add_opp_dev_unlocked()
935 return opp_dev; in _add_opp_dev_unlocked()
941 struct opp_device *opp_dev; in _add_opp_dev() local
944 opp_dev = _add_opp_dev_unlocked(dev, opp_table); in _add_opp_dev()
947 return opp_dev; in _add_opp_dev()
953 struct opp_device *opp_dev; in _allocate_opp_table() local
971 opp_dev = _add_opp_dev(dev, opp_table); in _allocate_opp_table()
972 if (!opp_dev) { in _allocate_opp_table()
1046 struct opp_device *opp_dev, *temp; in _opp_table_kref_release() local
1056 list_for_each_entry_safe(opp_dev, temp, &opp_table->dev_list, node) { in _opp_table_kref_release()
1062 dev_pm_genpd_set_performance_state((struct device *)(opp_dev->dev), 0); in _opp_table_kref_release()
1064 _remove_opp_dev(opp_dev, opp_table); in _opp_table_kref_release()