Lines Matching refs:opp_dev
45 struct opp_device *opp_dev; in _find_opp_dev() local
49 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
50 if (opp_dev->dev == dev) { in _find_opp_dev()
1272 static void _remove_opp_dev(struct opp_device *opp_dev, in _remove_opp_dev() argument
1275 opp_debug_unregister(opp_dev, opp_table); in _remove_opp_dev()
1276 list_del(&opp_dev->node); in _remove_opp_dev()
1277 kfree(opp_dev); in _remove_opp_dev()
1283 struct opp_device *opp_dev; in _add_opp_dev() local
1285 opp_dev = kzalloc(sizeof(*opp_dev), GFP_KERNEL); in _add_opp_dev()
1286 if (!opp_dev) in _add_opp_dev()
1290 opp_dev->dev = dev; in _add_opp_dev()
1293 list_add(&opp_dev->node, &opp_table->dev_list); in _add_opp_dev()
1297 opp_debug_register(opp_dev, opp_table); in _add_opp_dev()
1299 return opp_dev; in _add_opp_dev()
1305 struct opp_device *opp_dev; in _allocate_opp_table() local
1326 opp_dev = _add_opp_dev(dev, opp_table); in _allocate_opp_table()
1327 if (!opp_dev) { in _allocate_opp_table()
1351 _remove_opp_dev(opp_dev, opp_table); in _allocate_opp_table()
1491 struct opp_device *opp_dev, *temp; in _opp_table_kref_release() local
1515 list_for_each_entry_safe(opp_dev, temp, &opp_table->dev_list, node) { in _opp_table_kref_release()
1521 dev_pm_genpd_set_performance_state((struct device *)(opp_dev->dev), 0); in _opp_table_kref_release()
1523 _remove_opp_dev(opp_dev, opp_table); in _opp_table_kref_release()