Lines Matching refs:e

352 	struct b43legacy_dfsentry *e = dev->dfsentry;  in b43legacy_remove_dynamic_debug()  local
356 debugfs_remove(e->dyn_debug_dentries[i]); in b43legacy_remove_dynamic_debug()
361 struct b43legacy_dfsentry *e = dev->dfsentry; in b43legacy_add_dynamic_debug() local
365 e->dyn_debug[id] = (initstate); \ in b43legacy_add_dynamic_debug()
366 d = debugfs_create_bool(name, 0600, e->subdir, \ in b43legacy_add_dynamic_debug()
367 &(e->dyn_debug[id])); \ in b43legacy_add_dynamic_debug()
369 e->dyn_debug_dentries[id] = d; \ in b43legacy_add_dynamic_debug()
383 struct b43legacy_dfsentry *e; in b43legacy_debugfs_add_device() local
388 e = kzalloc(sizeof(*e), GFP_KERNEL); in b43legacy_debugfs_add_device()
389 if (!e) { in b43legacy_debugfs_add_device()
393 e->dev = dev; in b43legacy_debugfs_add_device()
394 log = &e->txstatlog; in b43legacy_debugfs_add_device()
399 kfree(e); in b43legacy_debugfs_add_device()
405 dev->dfsentry = e; in b43legacy_debugfs_add_device()
408 e->subdir = debugfs_create_dir(devdir, rootdir); in b43legacy_debugfs_add_device()
409 if (!e->subdir || IS_ERR(e->subdir)) { in b43legacy_debugfs_add_device()
410 if (e->subdir == ERR_PTR(-ENODEV)) { in b43legacy_debugfs_add_device()
419 kfree(e); in b43legacy_debugfs_add_device()
427 mode, e->subdir, dev, \ in b43legacy_debugfs_add_device()
429 e->file_##name.dentry = NULL; \ in b43legacy_debugfs_add_device()
431 e->file_##name.dentry = d; \ in b43legacy_debugfs_add_device()
448 struct b43legacy_dfsentry *e; in b43legacy_debugfs_remove_device() local
452 e = dev->dfsentry; in b43legacy_debugfs_remove_device()
453 if (!e) in b43legacy_debugfs_remove_device()
457 debugfs_remove(e->file_tsf.dentry); in b43legacy_debugfs_remove_device()
458 debugfs_remove(e->file_ucode_regs.dentry); in b43legacy_debugfs_remove_device()
459 debugfs_remove(e->file_shm.dentry); in b43legacy_debugfs_remove_device()
460 debugfs_remove(e->file_txstat.dentry); in b43legacy_debugfs_remove_device()
461 debugfs_remove(e->file_restart.dentry); in b43legacy_debugfs_remove_device()
463 debugfs_remove(e->subdir); in b43legacy_debugfs_remove_device()
464 kfree(e->txstatlog.log); in b43legacy_debugfs_remove_device()
465 kfree(e); in b43legacy_debugfs_remove_device()
471 struct b43legacy_dfsentry *e = dev->dfsentry; in b43legacy_debugfs_log_txstat() local
476 if (!e) in b43legacy_debugfs_log_txstat()
478 log = &e->txstatlog; in b43legacy_debugfs_log_txstat()