Lines Matching refs:required_opp_tables
134 struct opp_table **required_opp_tables = opp_table->required_opp_tables; in _opp_table_free_required_tables() local
137 if (!required_opp_tables) in _opp_table_free_required_tables()
141 if (IS_ERR_OR_NULL(required_opp_tables[i])) in _opp_table_free_required_tables()
144 dev_pm_opp_put_opp_table(required_opp_tables[i]); in _opp_table_free_required_tables()
147 kfree(required_opp_tables); in _opp_table_free_required_tables()
150 opp_table->required_opp_tables = NULL; in _opp_table_free_required_tables()
165 struct opp_table **required_opp_tables; in _opp_table_alloc_required_tables() local
182 size = sizeof(*required_opp_tables) + sizeof(*opp_table->required_devs); in _opp_table_alloc_required_tables()
183 required_opp_tables = kcalloc(count, size, GFP_KERNEL); in _opp_table_alloc_required_tables()
184 if (!required_opp_tables) in _opp_table_alloc_required_tables()
187 opp_table->required_opp_tables = required_opp_tables; in _opp_table_alloc_required_tables()
188 opp_table->required_devs = (void *)(required_opp_tables + count); in _opp_table_alloc_required_tables()
196 required_opp_tables[i] = _find_table_of_opp_np(required_np); in _opp_table_alloc_required_tables()
199 if (IS_ERR(required_opp_tables[i])) in _opp_table_alloc_required_tables()
367 required_table = opp_table->required_opp_tables[i]; in _of_opp_alloc_required_opps()
405 struct opp_table *opp_table, *temp, **required_opp_tables; in lazy_link_required_opp_table() local
419 required_opp_tables = opp_table->required_opp_tables; in lazy_link_required_opp_table()
422 if (!IS_ERR(required_opp_tables[i])) in lazy_link_required_opp_table()
441 required_opp_tables[i] = new_table; in lazy_link_required_opp_table()