Lines Matching refs:drvr
53 int brcms_debugfs_attach(struct brcms_pub *drvr) in brcms_debugfs_attach() argument
58 drvr->dbgfs_dir = debugfs_create_dir( in brcms_debugfs_attach()
59 dev_name(&drvr->wlc->hw->d11core->dev), root_folder); in brcms_debugfs_attach()
60 return PTR_ERR_OR_ZERO(drvr->dbgfs_dir); in brcms_debugfs_attach()
63 void brcms_debugfs_detach(struct brcms_pub *drvr) in brcms_debugfs_detach() argument
65 if (!IS_ERR_OR_NULL(drvr->dbgfs_dir)) in brcms_debugfs_detach()
66 debugfs_remove_recursive(drvr->dbgfs_dir); in brcms_debugfs_detach()
69 struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr) in brcms_debugfs_get_devdir() argument
71 return drvr->dbgfs_dir; in brcms_debugfs_get_devdir()
77 struct brcms_pub *drvr = s->private; in brcms_debugfs_hardware_read() local
78 struct brcms_hardware *hw = drvr->wlc->hw; in brcms_debugfs_hardware_read()
101 drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2, in brcms_debugfs_hardware_read()
102 drvr->wlc->ucode_rev, hw->band->radiorev, in brcms_debugfs_hardware_read()
110 struct brcms_pub *drvr = s->private; in brcms_debugfs_macstat_read() local
111 struct brcms_info *wl = drvr->ieee_hw->priv; in brcms_debugfs_macstat_read()
116 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
181 struct brcms_pub *drvr; member
188 return single_open(f, entry->read, entry->drvr); in brcms_debugfs_entry_open()
200 brcms_debugfs_add_entry(struct brcms_pub *drvr, const char *fn, in brcms_debugfs_add_entry() argument
203 struct device *dev = &drvr->wlc->hw->d11core->dev; in brcms_debugfs_add_entry()
204 struct dentry *dentry = drvr->dbgfs_dir; in brcms_debugfs_add_entry()
215 entry->drvr = drvr; in brcms_debugfs_add_entry()
223 void brcms_debugfs_create_files(struct brcms_pub *drvr) in brcms_debugfs_create_files() argument
225 if (IS_ERR_OR_NULL(drvr->dbgfs_dir)) in brcms_debugfs_create_files()
228 brcms_debugfs_add_entry(drvr, "hardware", brcms_debugfs_hardware_read); in brcms_debugfs_create_files()
229 brcms_debugfs_add_entry(drvr, "macstat", brcms_debugfs_macstat_read); in brcms_debugfs_create_files()