#include <linux/debugfs.h>
#include <linux/device.h>
#include "hns_roce_device.h"
static struct dentry *hns_roce_dbgfs_root;
static int hns_debugfs_seqfile_open(struct inode *inode, struct file *f)
{ … }
static const struct file_operations hns_debugfs_seqfile_fops = …;
static void init_debugfs_seqfile(struct hns_debugfs_seqfile *seq,
const char *name, struct dentry *parent,
int (*read_fn)(struct seq_file *, void *),
void *data)
{ … }
static const char * const sw_stat_info[] = …;
static int sw_stat_debugfs_show(struct seq_file *file, void *offset)
{ … }
static void create_sw_stat_debugfs(struct hns_roce_dev *hr_dev,
struct dentry *parent)
{ … }
void hns_roce_register_debugfs(struct hns_roce_dev *hr_dev)
{ … }
void hns_roce_unregister_debugfs(struct hns_roce_dev *hr_dev)
{ … }
void hns_roce_init_debugfs(void)
{ … }
void hns_roce_cleanup_debugfs(void)
{ … }