Lines Matching refs:opp_table
36 struct opp_table *opp_table, in opp_debug_create_supplies() argument
42 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies()
64 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
66 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
80 id = _get_opp_count(opp_table); in opp_debug_create_one()
96 opp_debug_create_supplies(opp, opp_table, d); in opp_debug_create_one()
102 struct opp_table *opp_table) in opp_list_debug_create_dir() argument
107 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir()
110 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir()
113 opp_table->dentry = d; in opp_list_debug_create_dir()
117 struct opp_table *opp_table) in opp_list_debug_create_link() argument
125 opp_table->dentry_name); in opp_list_debug_create_link()
137 void opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) in opp_debug_register() argument
139 if (opp_table->dentry) in opp_debug_register()
140 opp_list_debug_create_link(opp_dev, opp_table); in opp_debug_register()
142 opp_list_debug_create_dir(opp_dev, opp_table); in opp_debug_register()
146 struct opp_table *opp_table) in opp_migrate_dentry() argument
153 list_for_each_entry(new_dev, &opp_table->dev_list, node) in opp_migrate_dentry()
161 opp_set_dev_name(dev, opp_table->dentry_name); in opp_migrate_dentry()
164 opp_table->dentry_name); in opp_migrate_dentry()
172 opp_table->dentry = dentry; in opp_migrate_dentry()
183 struct opp_table *opp_table) in opp_debug_unregister() argument
185 if (opp_dev->dentry == opp_table->dentry) { in opp_debug_unregister()
187 if (!list_is_singular(&opp_table->dev_list)) { in opp_debug_unregister()
188 opp_migrate_dentry(opp_dev, opp_table); in opp_debug_unregister()
191 opp_table->dentry = NULL; in opp_debug_unregister()