Lines Matching refs:opp_table
37 int opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
39 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
87 struct opp_table *opp_table) in opp_list_debug_create_dir() argument
92 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir()
95 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir()
102 opp_table->dentry = d; in opp_list_debug_create_dir()
108 struct opp_table *opp_table) in opp_list_debug_create_link() argument
117 d = debugfs_create_symlink(name, rootdir, opp_table->dentry_name); in opp_list_debug_create_link()
139 int opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) in opp_debug_register() argument
146 if (opp_table->dentry) in opp_debug_register()
147 return opp_list_debug_create_link(opp_dev, opp_table); in opp_debug_register()
149 return opp_list_debug_create_dir(opp_dev, opp_table); in opp_debug_register()
153 struct opp_table *opp_table) in opp_migrate_dentry() argument
160 list_for_each_entry(new_dev, &opp_table->dev_list, node) in opp_migrate_dentry()
168 opp_set_dev_name(dev, opp_table->dentry_name); in opp_migrate_dentry()
171 opp_table->dentry_name); in opp_migrate_dentry()
179 opp_table->dentry = dentry; in opp_migrate_dentry()
190 struct opp_table *opp_table) in opp_debug_unregister() argument
192 if (opp_dev->dentry == opp_table->dentry) { in opp_debug_unregister()
194 if (!list_is_singular(&opp_table->dev_list)) { in opp_debug_unregister()
195 opp_migrate_dentry(opp_dev, opp_table); in opp_debug_unregister()
198 opp_table->dentry = NULL; in opp_debug_unregister()