12 static struct dentry *qla2x00_dfs_root;
13 static atomic_t qla2x00_dfs_root_count;
30 seq_printf(s,
"%08x %08x %08x %08x %08x %08x\n",
35 fce_start = (
unsigned long long) ha->
fce_dma;
39 (
unsigned long long)((cnt * 4) + fce_start));
59 if (!ha->
flags.fce_enabled)
68 "DebugFS: Unable to disable FCE (%d).\n", rval);
70 ha->
flags.fce_enabled = 0;
74 return single_open(file, qla2x00_dfs_fce_show, vha);
78 qla2x00_dfs_fce_release(
struct inode *inode,
struct file *file)
84 if (ha->
flags.fce_enabled)
90 ha->
flags.fce_enabled = 1;
96 "DebugFS: Unable to reinitialize FCE (%d).\n", rval);
97 ha->
flags.fce_enabled = 0;
106 .open = qla2x00_dfs_fce_open,
109 .release = qla2x00_dfs_fce_release,
122 if (qla2x00_dfs_root)
127 if (!qla2x00_dfs_root) {
129 "Unable to create debugfs root directory.\n");
141 "Unable to create debugfs ha directory.\n");
152 "Unable to create debugfs fce node.\n");
177 qla2x00_dfs_root =
NULL;