17 #include <linux/if_ether.h>
20 #include <linux/module.h>
29 static struct dentry *root_folder;
34 if (IS_ERR(root_folder))
53 return PTR_RET(drvr->dbgfs_dir);
58 if (!IS_ERR_OR_NULL(drvr->dbgfs_dir))
64 return drvr->dbgfs_dir;
69 size_t count, loff_t *ppos)
80 "intrcount: %u\nlastintrs: %u\n"
81 "pollcnt: %u\nregfails: %u\n"
82 "tx_sderrs: %u\nfcqueued: %u\n"
83 "rxrtx: %u\nrx_toolong: %u\n"
84 "rxc_errors: %u\nrx_hdrfail: %u\n"
85 "rx_badhdr: %u\nrx_badseq: %u\n"
86 "fc_rcvd: %u\nfc_xoff: %u\n"
87 "fc_xon: %u\nrxglomfail: %u\n"
88 "rxglomframes: %u\nrxglompkts: %u\n"
89 "f2rxhdrs: %u\nf2rxdata: %u\n"
90 "f2txdata: %u\nf1regdata: %u\n"
91 "tickcnt: %u\ntx_ctlerrs: %lu\n"
92 "tx_ctlpkts: %lu\nrx_ctlerrs: %lu\n"
93 "rx_ctlpkts: %lu\nrx_readahead: %lu\n",
115 .read = brcmf_debugfs_sdio_counter_read
123 if (!IS_ERR_OR_NULL(dentry))
125 sdcnt, &brcmf_debugfs_sdio_counter_ops);