Lines Matching refs:fnic
8 #include "fnic.h"
31 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
34 * When Debugfs is configured this routine sets up the fnic debugfs
36 * fnic directory and statistics directory for trace buffer and
41 fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL);
66 * elements that are specific to fnic.
114 pr_err("fnic: Cannot read to any debugfs file\n");
165 pr_err("fnic: cannot write to any debugfs file\n");
180 * fnic_trace_debugfs_open - Open the fnic trace log
315 * fnic_trace_debugfs_init - Initialize debugfs for fnic trace logging
318 * When Debugfs is configured this routine sets up the fnic debugfs
320 * create file trace to log fnic trace buffer output into debugfs and
344 * elements that are specific to fnic trace logging.
357 * Initialize debugfs for fnic control frame trace logging
362 * create file trace to log fnic fc trace buffer output into debugfs and
467 struct fnic *fnic = (struct fnic *)debug->i_private;
471 len = sprintf(buf, "%u\n", fnic->reset_stats);
485 * resets cumulative stats of fnic.
495 struct fnic *fnic = (struct fnic *)debug->i_private;
496 struct fnic_stats *stats = &fnic->fnic_stats;
515 fnic->reset_stats = val;
517 if (fnic->reset_stats) {
522 atomic64_set(&fnic->io_cmpl_skip,
564 * and get fnic stats.
570 * fnic stats.
578 struct fnic *fnic = inode->i_private;
579 struct fnic_stats *fnic_stats = &fnic->fnic_stats;
669 * fnic_stats_init - Initialize stats struct and create stats file per fnic
672 * When Debugfs is configured this routine sets up the stats file per fnic
674 * to log per fnic stats.
676 void fnic_stats_debugfs_init(struct fnic *fnic)
680 snprintf(name, sizeof(name), "host%d", fnic->lport->host->host_no);
682 fnic->fnic_stats_debugfs_host = debugfs_create_dir(name,
685 fnic->fnic_stats_debugfs_file = debugfs_create_file("stats",
687 fnic->fnic_stats_debugfs_host,
688 fnic,
691 fnic->fnic_reset_debugfs_file = debugfs_create_file("reset_stats",
693 fnic->fnic_stats_debugfs_host,
694 fnic,
703 * elements that are specific to fnic stats.
705 void fnic_stats_debugfs_remove(struct fnic *fnic)
707 if (!fnic)
710 debugfs_remove(fnic->fnic_stats_debugfs_file);
711 fnic->fnic_stats_debugfs_file = NULL;
713 debugfs_remove(fnic->fnic_reset_debugfs_file);
714 fnic->fnic_reset_debugfs_file = NULL;
716 debugfs_remove(fnic->fnic_stats_debugfs_host);
717 fnic->fnic_stats_debugfs_host = NULL;