Lines Matching refs:fnic

21 #include "fnic.h"
44 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
47 * When Debugfs is configured this routine sets up the fnic debugfs
49 * fnic directory and statistics directory for trace buffer and
55 fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL);
63 "fnic root directory doesn't exist in debugfs\n");
95 * elements that are specific to fnic.
162 pr_err("fnic: Cannot read to any debugfs file\n");
213 pr_err("fnic: cannot write to any debugfs file\n");
228 * fnic_trace_debugfs_open - Open the fnic trace log
366 * fnic_trace_debugfs_init - Initialize debugfs for fnic trace logging
369 * When Debugfs is configured this routine sets up the fnic debugfs
371 * create file trace to log fnic trace buffer output into debugfs and
415 * elements that are specific to fnic trace logging.
428 * Initialize debugfs for fnic control frame trace logging
433 * create file trace to log fnic fc trace buffer output into debugfs and
443 pr_err("fnic:Debugfs root directory doesn't exist\n");
454 pr_err("fnic: Failed create fc_trace_enable file\n");
465 pr_err("fnic: Failed to create fc_trace_enable file\n");
477 pr_err("fnic: Failed create fc_rdata_trace file\n");
489 pr_err("fnic: Failed to create fc_trace file\n");
567 struct fnic *fnic = (struct fnic *)debug->i_private;
571 len = sprintf(buf, "%u\n", fnic->reset_stats);
585 * resets cumulative stats of fnic.
595 struct fnic *fnic = (struct fnic *)debug->i_private;
596 struct fnic_stats *stats = &fnic->fnic_stats;
615 fnic->reset_stats = val;
617 if (fnic->reset_stats) {
622 atomic64_set(&fnic->io_cmpl_skip,
663 * and get fnic stats.
669 * fnic stats.
677 struct fnic *fnic = inode->i_private;
678 struct fnic_stats *fnic_stats = &fnic->fnic_stats;
768 * fnic_stats_init - Initialize stats struct and create stats file per fnic
771 * When Debugfs is configured this routine sets up the stats file per fnic
773 * to log per fnic stats.
775 int fnic_stats_debugfs_init(struct fnic *fnic)
780 snprintf(name, sizeof(name), "host%d", fnic->lport->host->host_no);
786 fnic->fnic_stats_debugfs_host = debugfs_create_dir(name,
788 if (!fnic->fnic_stats_debugfs_host) {
793 fnic->fnic_stats_debugfs_file = debugfs_create_file("stats",
795 fnic->fnic_stats_debugfs_host,
796 fnic,
798 if (!fnic->fnic_stats_debugfs_file) {
803 fnic->fnic_reset_debugfs_file = debugfs_create_file("reset_stats",
805 fnic->fnic_stats_debugfs_host,
806 fnic,
808 if (!fnic->fnic_reset_debugfs_file) {
821 * elements that are specific to fnic stats.
823 void fnic_stats_debugfs_remove(struct fnic *fnic)
825 if (!fnic)
828 debugfs_remove(fnic->fnic_stats_debugfs_file);
829 fnic->fnic_stats_debugfs_file = NULL;
831 debugfs_remove(fnic->fnic_reset_debugfs_file);
832 fnic->fnic_reset_debugfs_file = NULL;
834 debugfs_remove(fnic->fnic_stats_debugfs_host);
835 fnic->fnic_stats_debugfs_host = NULL;