Lines Matching refs:drvr
48 void brcms_debugfs_attach(struct brcms_pub *drvr) in brcms_debugfs_attach() argument
50 drvr->dbgfs_dir = debugfs_create_dir( in brcms_debugfs_attach()
51 dev_name(&drvr->wlc->hw->d11core->dev), root_folder); in brcms_debugfs_attach()
54 void brcms_debugfs_detach(struct brcms_pub *drvr) in brcms_debugfs_detach() argument
56 debugfs_remove_recursive(drvr->dbgfs_dir); in brcms_debugfs_detach()
59 struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr) in brcms_debugfs_get_devdir() argument
61 return drvr->dbgfs_dir; in brcms_debugfs_get_devdir()
67 struct brcms_pub *drvr = s->private; in brcms_debugfs_hardware_read() local
68 struct brcms_hardware *hw = drvr->wlc->hw; in brcms_debugfs_hardware_read()
91 drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2, in brcms_debugfs_hardware_read()
92 drvr->wlc->ucode_rev, hw->band->radiorev, in brcms_debugfs_hardware_read()
100 struct brcms_pub *drvr = s->private; in brcms_debugfs_macstat_read() local
101 struct brcms_info *wl = drvr->ieee_hw->priv; in brcms_debugfs_macstat_read()
106 stats = *(drvr->wlc->core->macstat_snapshot); in brcms_debugfs_macstat_read()
171 struct brcms_pub *drvr; member
178 return single_open(f, entry->read, entry->drvr); in brcms_debugfs_entry_open()
190 brcms_debugfs_add_entry(struct brcms_pub *drvr, const char *fn, in brcms_debugfs_add_entry() argument
193 struct device *dev = &drvr->wlc->hw->d11core->dev; in brcms_debugfs_add_entry()
194 struct dentry *dentry = drvr->dbgfs_dir; in brcms_debugfs_add_entry()
202 entry->drvr = drvr; in brcms_debugfs_add_entry()
207 void brcms_debugfs_create_files(struct brcms_pub *drvr) in brcms_debugfs_create_files() argument
209 brcms_debugfs_add_entry(drvr, "hardware", brcms_debugfs_hardware_read); in brcms_debugfs_create_files()
210 brcms_debugfs_add_entry(drvr, "macstat", brcms_debugfs_macstat_read); in brcms_debugfs_create_files()