Lines Matching refs:opp_table

55 				struct opp_table *opp_table,  in opp_debug_create_bw()  argument
62 for (i = 0; i < opp_table->path_count; i++) { in opp_debug_create_bw()
68 debugfs_create_file("name", S_IRUGO, d, opp_table->paths[i], in opp_debug_create_bw()
78 struct opp_table *opp_table, in opp_debug_create_clks() argument
84 if (opp_table->clk_count == 1) { in opp_debug_create_clks()
89 for (i = 0; i < opp_table->clk_count; i++) { in opp_debug_create_clks()
96 struct opp_table *opp_table, in opp_debug_create_supplies() argument
102 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies()
127 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
129 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
141 if (likely(opp_table->clk_count == 1 && opp->rates[0])) in opp_debug_create_one()
144 id = _get_opp_count(opp_table); in opp_debug_create_one()
163 opp_debug_create_clks(opp, opp_table, d); in opp_debug_create_one()
164 opp_debug_create_supplies(opp, opp_table, d); in opp_debug_create_one()
165 opp_debug_create_bw(opp, opp_table, d); in opp_debug_create_one()
171 struct opp_table *opp_table) in opp_list_debug_create_dir() argument
176 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir()
179 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir()
182 opp_table->dentry = d; in opp_list_debug_create_dir()
186 struct opp_table *opp_table) in opp_list_debug_create_link() argument
194 opp_table->dentry_name); in opp_list_debug_create_link()
206 void opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) in opp_debug_register() argument
208 if (opp_table->dentry) in opp_debug_register()
209 opp_list_debug_create_link(opp_dev, opp_table); in opp_debug_register()
211 opp_list_debug_create_dir(opp_dev, opp_table); in opp_debug_register()
215 struct opp_table *opp_table) in opp_migrate_dentry() argument
222 list_for_each_entry(iter, &opp_table->dev_list, node) in opp_migrate_dentry()
234 opp_set_dev_name(dev, opp_table->dentry_name); in opp_migrate_dentry()
237 opp_table->dentry_name); in opp_migrate_dentry()
245 opp_table->dentry = dentry; in opp_migrate_dentry()
256 struct opp_table *opp_table) in opp_debug_unregister() argument
258 if (opp_dev->dentry == opp_table->dentry) { in opp_debug_unregister()
260 if (!list_is_singular(&opp_table->dev_list)) { in opp_debug_unregister()
261 opp_migrate_dentry(opp_dev, opp_table); in opp_debug_unregister()
264 opp_table->dentry = NULL; in opp_debug_unregister()