Lines Matching refs:dbg
163 * @dbg: A pointer to debugfs related data (if any)
189 struct scmi_debug_info *dbg;
2838 struct scmi_debug_info *dbg = d;
2840 if (!dbg)
2843 debugfs_remove_recursive(dbg->top_dentry);
2844 kfree(dbg->name);
2845 kfree(dbg->type);
2852 struct scmi_debug_info *dbg;
2855 dbg = devm_kzalloc(info->dev, sizeof(*dbg), GFP_KERNEL);
2856 if (!dbg)
2859 dbg->name = kstrdup(of_node_full_name(info->dev->of_node), GFP_KERNEL);
2860 if (!dbg->name) {
2861 devm_kfree(info->dev, dbg);
2866 dbg->type = kstrdup(c_ptr, GFP_KERNEL);
2867 if (!dbg->type) {
2868 kfree(dbg->name);
2869 devm_kfree(info->dev, dbg);
2877 dbg->is_atomic = info->desc->atomic_enabled &&
2881 (char **)&dbg->name);
2886 debugfs_create_str("type", 0400, trans, (char **)&dbg->type);
2888 debugfs_create_bool("is_atomic", 0400, trans, &dbg->is_atomic);
2902 dbg->top_dentry = top_dentry;
2905 scmi_debugfs_common_cleanup, dbg)) {
2906 scmi_debugfs_common_cleanup(dbg);
2910 return dbg;
2920 if (!info->dbg)
2941 info->raw = scmi_raw_mode_init(&info->handle, info->dbg->top_dentry,
3040 info->dbg = scmi_debugfs_common_setup(info);
3041 if (!info->dbg)