Lines Matching refs:dbg
202 struct btmrvl_debugfs_data *dbg; in btmrvl_debugfs_init() local
207 dbg = kzalloc(sizeof(*dbg), GFP_KERNEL); in btmrvl_debugfs_init()
208 priv->debugfs_data = dbg; in btmrvl_debugfs_init()
210 if (!dbg) { in btmrvl_debugfs_init()
215 dbg->config_dir = debugfs_create_dir("config", hdev->debugfs); in btmrvl_debugfs_init()
217 debugfs_create_u8("psmode", 0644, dbg->config_dir, in btmrvl_debugfs_init()
219 debugfs_create_file("pscmd", 0644, dbg->config_dir, in btmrvl_debugfs_init()
221 debugfs_create_x16("gpiogap", 0644, dbg->config_dir, in btmrvl_debugfs_init()
223 debugfs_create_u8("hsmode", 0644, dbg->config_dir, in btmrvl_debugfs_init()
225 debugfs_create_file("hscmd", 0644, dbg->config_dir, in btmrvl_debugfs_init()
227 debugfs_create_file("hscfgcmd", 0644, dbg->config_dir, in btmrvl_debugfs_init()
229 debugfs_create_file("fw_dump", 0200, dbg->config_dir, in btmrvl_debugfs_init()
232 dbg->status_dir = debugfs_create_dir("status", hdev->debugfs); in btmrvl_debugfs_init()
233 debugfs_create_u8("curpsmode", 0444, dbg->status_dir, in btmrvl_debugfs_init()
235 debugfs_create_u8("psstate", 0444, dbg->status_dir, in btmrvl_debugfs_init()
237 debugfs_create_u8("hsstate", 0444, dbg->status_dir, in btmrvl_debugfs_init()
239 debugfs_create_u8("txdnldready", 0444, dbg->status_dir, in btmrvl_debugfs_init()
246 struct btmrvl_debugfs_data *dbg = priv->debugfs_data; in btmrvl_debugfs_remove() local
248 if (!dbg) in btmrvl_debugfs_remove()
251 debugfs_remove_recursive(dbg->config_dir); in btmrvl_debugfs_remove()
252 debugfs_remove_recursive(dbg->status_dir); in btmrvl_debugfs_remove()
254 kfree(dbg); in btmrvl_debugfs_remove()