Lines Matching refs:required_opp_tables
131 struct opp_table **required_opp_tables = opp_table->required_opp_tables; in _opp_table_free_required_tables() local
134 if (!required_opp_tables) in _opp_table_free_required_tables()
138 if (IS_ERR_OR_NULL(required_opp_tables[i])) in _opp_table_free_required_tables()
141 dev_pm_opp_put_opp_table(required_opp_tables[i]); in _opp_table_free_required_tables()
144 kfree(required_opp_tables); in _opp_table_free_required_tables()
147 opp_table->required_opp_tables = NULL; in _opp_table_free_required_tables()
159 struct opp_table **required_opp_tables; in _opp_table_alloc_required_tables() local
176 required_opp_tables = kcalloc(count, sizeof(*required_opp_tables), in _opp_table_alloc_required_tables()
178 if (!required_opp_tables) in _opp_table_alloc_required_tables()
181 opp_table->required_opp_tables = required_opp_tables; in _opp_table_alloc_required_tables()
189 required_opp_tables[i] = _find_table_of_opp_np(required_np); in _opp_table_alloc_required_tables()
192 if (IS_ERR(required_opp_tables[i])) in _opp_table_alloc_required_tables()
297 required_table = opp_table->required_opp_tables[i]; in _of_opp_alloc_required_opps()
356 struct opp_table *opp_table, *temp, **required_opp_tables; in lazy_link_required_opp_table() local
370 required_opp_tables = opp_table->required_opp_tables; in lazy_link_required_opp_table()
373 if (!IS_ERR(required_opp_tables[i])) in lazy_link_required_opp_table()
392 required_opp_tables[i] = new_table; in lazy_link_required_opp_table()