Lines Matching refs:snic
22 #include "snic.h"
25 * snic_debugfs_init - Initialize debugfs for snic debug logging
35 snic_glob->trc_root = debugfs_create_dir("snic", NULL);
46 * elements that are specific to snic
91 struct snic *snic = (struct snic *) filp->private_data;
95 len = sprintf(buf, "%u\n", snic->reset_stats);
109 * resets cumulative stats of snic.
120 struct snic *snic = (struct snic *) filp->private_data;
121 struct snic_stats *stats = &snic->s_stats;
140 snic->reset_stats = val;
142 if (snic->reset_stats) {
147 atomic64_set(&snic->io_cmpl_skip,
162 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n");
181 struct snic *snic = (struct snic *) sfp->private;
182 struct snic_stats *stats = &snic->s_stats;
367 * per snic
370 * When debugfs is cofigured this routine sets up the stats file per snic
372 * to log per snic stats
374 void snic_stats_debugfs_init(struct snic *snic)
378 snprintf(name, sizeof(name), "host%d", snic->shost->host_no);
380 snic->stats_host = debugfs_create_dir(name, snic_glob->stats_root);
382 snic->stats_file = debugfs_create_file("stats", S_IFREG|S_IRUGO,
383 snic->stats_host, snic,
386 snic->reset_stats_file = debugfs_create_file("reset_stats",
388 snic->stats_host, snic,
397 * elements that are specific to to snic stats
400 snic_stats_debugfs_remove(struct snic *snic)
402 debugfs_remove(snic->stats_file);
403 snic->stats_file = NULL;
405 debugfs_remove(snic->reset_stats_file);
406 snic->reset_stats_file = NULL;
408 debugfs_remove(snic->stats_host);
409 snic->stats_host = NULL;